1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[830],{35025:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[city]/game/[id]/mafia/[number]",function(){return n(82888)}])},13729:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var s=n(85893),l=n(33916);function a(e){let{mafiaGames:t,selectedMafiaGame:n,withTotal:a,onSelect:r,className:c,appendComponent:i}=e;return t&&0!=t.length?(0,s.jsx)("div",{className:c,children:(0,s.jsxs)(l.Z,{as:"ul",className:"nav nav-pills justify-content-center",activeKey:n,onSelect:r,children:[t.map(e=>(0,s.jsx)(l.Z.Item,{as:"li",children:(0,s.jsx)(l.Z.Link,{eventKey:e,children:(0,s.jsxs)("span",{children:["РаÑнд ",e]})})},e)),a&&(0,s.jsx)(l.Z.Item,{as:"li",children:(0,s.jsx)(l.Z.Link,{eventKey:0,children:(0,s.jsx)("span",{children:"ÐТÐÐÐ"})})}),i&&(0,s.jsx)(l.Z.Item,{as:"li",children:i})]})}):null}},33916:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var s=n(93967),l=n.n(s),a=n(67294),r=n(15446),c=n(60930),i=n(49225),d=n(38490),o=n(86056),x=n(87126);let u=a.createContext(null);var h=n(52747),m=n(67177),j=n(70861),f=n(85893);let p=["as","active","eventKey"];function b({key:e,onClick:t,active:n,id:s,role:l,disabled:r}){let c=(0,a.useContext)(x.Z),i=(0,a.useContext)(o.Z),d=(0,a.useContext)(u),j=n,f={role:l};if(i){l||"tablist"!==i.role||(f.role="tab");let t=i.getControllerId(null!=e?e:null),a=i.getControlledId(null!=e?e:null);f[(0,h.PB)("event-key")]=e,f.id=t||s,((j=null==n&&null!=e?i.activeKey===e:n)||!(null!=d&&d.unmountOnExit)&&!(null!=d&&d.mountOnEnter))&&(f["aria-controls"]=a)}return"tab"===f.role&&(f["aria-selected"]=j,j||(f.tabIndex=-1),r&&(f.tabIndex=-1,f["aria-disabled"]=!0)),f.onClick=(0,m.Z)(n=>{r||(null==t||t(n),null!=e&&c&&!n.isPropagationStopped()&&c(e,n))}),[f,{isActive:j}]}let v=a.forwardRef((e,t)=>{let{as:n=j.ZP,active:s,eventKey:l}=e,a=function(e,t){if(null==e)return{};var n={};for(var s in e)if(({}).hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}(e,p),[r,c]=b(Object.assign({key:(0,x.h)(l,a.href),active:s},a));return r[(0,h.PB)("active")]=c.isActive,(0,f.jsx)(n,Object.assign({},a,r,{ref:t}))});v.displayName="NavItem";let _=["as","onSelect","activeKey","role","onKeyDown"],N=()=>{},y=(0,h.PB)("event-key"),g=a.forwardRef((e,t)=>{let n,s,{as:l="div",onSelect:r,activeKey:m,role:j,onKeyDown:p}=e,b=function(e,t){if(null==e)return{};var n={};for(var s in e)if(({}).hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}(e,_),v=(0,i.Z)(),g=(0,a.useRef)(!1),w=(0,a.useContext)(x.Z),Z=(0,a.useContext)(u);Z&&(j=j||"tablist",m=Z.activeKey,n=Z.getControlledId,s=Z.getControllerId);let k=(0,a.useRef)(null),C=e=>{let t=k.current;if(!t)return null;let n=(0,c.Z)(t,`[${y}]:not([aria-disabled=true])`),s=t.querySelector("[aria-selected=true]");if(!s||s!==document.activeElement)return null;let l=n.indexOf(s);if(-1===l)return null;let a=l+e;return a>=n.length&&(a=0),a<0&&(a=n.length-1),n[a]},I=(e,t)=>{null!=e&&(null==r||r(e,t),null==w||w(e,t))};(0,a.useEffect)(()=>{if(k.current&&g.current){let e=k.current.querySelector(`[${y}][aria-selected=true]`);null==e||e.focus()}g.current=!1});let X=(0,d.Z)(t,k);return(0,f.jsx)(x.Z.Provider,{value:I,children:(0,f.jsx)(o.Z.Provider,{value:{role:j,activeKey:(0,x.h)(m),getControlledId:n||N,getControllerId:s||N},children:(0,f.jsx)(l,Object.assign({},b,{onKeyDown:e=>{let t;if(null==p||p(e),Z){switch(e.key){case"ArrowLeft":case"ArrowUp":t=C(-1);break;case"ArrowRight":case"ArrowDown":t=C(1);break;default:return}t&&(e.preventDefault(),I(t.dataset[(0,h.$F)("EventKey")]||null,e),g.current=!0,v())}},ref:X,role:j}))})})});g.displayName="Nav";var w=Object.assign(g,{Item:v}),Z=n(97400),k=n(977);let C=a.createContext(null);C.displayName="CardHeaderContext";let I=a.forwardRef((e,t)=>{let{className:n,bsPrefix:s,as:a="div",...r}=e;return s=(0,Z.vE)(s,"nav-item"),(0,f.jsx)(a,{ref:t,className:l()(n,s),...r})});I.displayName="NavItem";var X=n(24079);let E=a.forwardRef((e,t)=>{let{bsPrefix:n,className:s,as:a=X.Z,active:r,eventKey:c,disabled:i=!1,...d}=e;n=(0,Z.vE)(n,"nav-link");let[o,u]=b({key:(0,x.h)(c,d.href),active:r,disabled:i,...d});return(0,f.jsx)(a,{...d,...o,ref:t,disabled:i,className:l()(s,n,i&&"disabled",u.isActive&&"active")})});E.displayName="NavLink";let O=a.forwardRef((e,t)=>
1{let n,s;let{as:c="div",bsPrefix:i,variant:d,fill:o=!1,justify:x=!1,navbar:u,navbarScroll:h,className:m,activeKey:j,...p}=(0,r.Ch)(e,{activeKey:"onSelect"}),b=(0,Z.vE)(i,"nav"),v=!1,_=(0,a.useContext)(k.Z),N=(0,a.useContext)(C);return _?(n=_.bsPrefix,v=null==u||u):N&&({cardHeaderBsPrefix:s}=N),(0,f.jsx)(w,{as:c,ref:t,activeKey:j,className:l()(m,{[b]:!v,["".concat(n,"-nav")]:v,["".concat(n,"-nav-scroll")]:v&&h,["".concat(s,"-").concat(d)]:!!s,["".concat(b,"-").concat(d)]:!!d,["".concat(b,"-fill")]:o,["".concat(b,"-justified")]:x}),...p})});O.displayName="Nav";var P=Object.assign(O,{Item:I,Link:E})},82888:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return w},default:function(){return Z}});var s=n(85893),l=n(12918),a=n.n(l),r=n(41664),c=n.n(r),i=n(9008),d=n.n(i),o=n(11163),x=n(61169),u=n(52974),h=n(16318),m=n(18810),j=n(13729);function f(e){let{game:t}=e;return(0,s.jsxs)("h5",{className:"d-flex align-items-center justify-content-center mt-3",children:[(0,s.jsx)("div",{className:"avatar me-4",children:(0,s.jsx)(m.Z,{player:t.host,size:66})}),(0,s.jsxs)("div",{children:["ÐгÑа:"," ",(0,s.jsx)(c(),{href:t.url,children:t.start_time_tiny})," ","/ ",t.place.short_name,(0,s.jsx)("br",{}),"ÐедÑÑий:"," ",(0,s.jsx)(c(),{href:t.host.url,children:t.host.name})]})]})}function p(e){let{legend:t}=e;return(0,s.jsxs)("table",{className:"table table-bordered",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{className:"text-center",children:[(0,s.jsx)("th",{}),t.map((e,t)=>(0,s.jsx)("th",{children:e.title},t))]})}),(0,s.jsxs)("tbody",{children:[(0,s.jsxs)("tr",{className:"text-center",children:[(0,s.jsx)("td",{children:"Ðив"}),t.map((e,t)=>(0,s.jsx)("td",{children:e.score_alive},t))]}),(0,s.jsxs)("tr",{className:"text-center",children:[(0,s.jsx)("td",{children:"ÐеÑÑв"}),t.map((e,t)=>(0,s.jsx)("td",{children:e.score_dead},t))]})]})]})}function b(e){let{participant:t}=e,n="".concat(t.base_score);t.bonus_score>0?n+="+"+t.bonus_score:t.bonus_score<0&&(n+=t.bonus_score),t.bonus_score&&(n+="="+t.total_score);let l=(0,s.jsx)(u.Z,{id:"popover-log-".concat(t.number),children:(0,s.jsx)(u.Z.Body,{children:(0,s.jsx)("span",{className:"text-preline",children:t.log})})});return(0,s.jsxs)(s.Fragment,{children:[n,t.log&&t.log.length>0&&(0,s.jsx)(x.Z,{trigger:["hover","focus"],placement:"bottom",overlay:l,children:(0,s.jsx)("a",{tabIndex:"0",className:"info-button ms-2",role:"button",children:"?"})})]})}function v(e){let{day:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("td",{className:"text-center "+(t.useful_action?"table-success":"bg-light"),title:t.night_actions,children:[t.number_voted&&!t.already_killed_night&&(0,s.jsx)("span",{className:t.killed_by_mafia||t.saved_by_immunity_night?"me-1":"",children:t.number_voted}),t.killed_by_mafia&&(0,s.jsx)("b",{children:"X"}),t.already_killed_night&&(0,s.jsx)("span",{className:"opacity-25",children:"X"}),t.saved_by_immunity_night&&(0,s.jsx)("span",{className:"text-danger opacity-50",children:"X"})]}),(0,s.jsxs)("td",{className:"text-center",title:t.day_actions,children:[t.killed_by_vote&&(0,s.jsx)("b",{children:"X"}),t.already_killed_day&&(0,s.jsx)("span",{className:"opacity-25",children:"X"}),t.saved_by_immunity_day&&(0,s.jsx)("span",{className:"text-danger opacity-50",children:"X"})]})]})}function _(e){let{mafiaGame:t}=e,n=[];for(let e=1;e<=t.days_played;e++)n.push("Ð".concat(e)),n.push("Ð".concat(e));return(0,s.jsx)("div",{className:"table-responsive",children:(0,s.jsxs)("table",{className:"table table-bordered",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsxs)("th",{children:["Ðалл (Ð²ÐµÑ ",t.points_per_score,")"]}),(0,s.jsx)("th",{children:"РолÑ"}),(0,s.jsx)("th",{children:"Ðив"}),(0,s.jsx)("th",{className:"text-center",children:"â"}),(0,s.jsx)("th",{children:"ÐмÑ"}),(0,s.jsx)("th",{children:"Ðик"}),(0,s.jsx)("th",{colSpan:"4",className:"text-center",children:"ФолÑ"}),n.map((e,t)=>(0,s.jsx)("th",{className:"text-center "+(t%2?"":"bg-light"),children:e},e))]})}),(0,s.jsx)("tbody",{children:t.participants.filter(e=>null!==e.number&&0!=e.number).map(e=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:(0,s.jsx)(b,{participant:e})}),(0,s.jsx)("td",{children:e.role_name}),(0,s.jsx)("td",{className:"text-center",children:e.is_alive?"":"X"}),(0,s.jsx)("td",{className:"text-center",children:e.number}),(0,s.jsx)("td",{children:(0,s.jsx)(c(),{href:e.player.url,children:e.player.name})}),(0,s.jsx)("td",{children:e.mafia_nick}),(0,s.jsx)("td",{className:"text-center",children:e.foul_1?"X":(0,s.jsx)("span",{className:"px-1",children:"\xa0"})}),(0,s.jsx)("td",{className:"text-center",children:e.foul_2?"X":(0,s.jsx)("span",{className:"px-1",children:"\xa0"})}),(0,s.jsx)("td",{className:"text-center",children:e.foul_3?"X":(0,s.jsx)("span",{className:"px-1",children:"\xa0"})}),(0,s.jsx)("td",{className:"text-center",children:e.foul_4?"X":(0,s.jsx)("span",{className:"px-1",children:"\xa0"})}),e.plays_by_day.map((e,t)=>(0,s.jsx)(v,{day:e},t))]},e.number))})]})})}function N(e){let{roleVotes:t}=e;if(!t||0==t.length)return null;let n=Array.apply(null,Array(t[0].votes.length)).map((e,t)=>t+1);return(0,s.jsx)("div",{className:"table-responsive",children:(0,s.jsxs)("table",{className:"table table-bordered",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{className:"text-center",children:"ÐгÑоки"}),(0,s.jsx)("th",{children:"РолÑ"}),n.map(e=>(0,s.jsx)("th",{className:"text-center",children:e},e))]})}),(0,s.jsx)("tbody",{children:t.map(e=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"text-center text-nowrap",children:e.participants.map((e,t)=>(0,s.jsxs)("span",{children:[t>0?", ":"",e]},t))}),(0,s.jsx)("td",{children:e.role.name}),e.votes.map((e,t)=>(0,s.jsx)("td",{className:"text-center "+(e.useful_action?"table-success":""),title:e.useful_action,children:e.is_killed?(0,s.jsx)("span",{className:"opacity-25",children:"X"}):e.number},t))]},e.role.id))})]})})}function y(e){let{votes:t,isExtra:n}=e;if(!t||0==t.length)return null;let l=t.filter(e=>e.left_the_table).length>0;return(0,s.jsxs)(s.Fragment,{children:[n&&(0,s.jsx)("div",{children:"+"}),(0,s.jsx)("table",{className:"table table-bordered w-auto mx-auto mt-2 mb-2",children:(0,s.jsxs)("tbody",{children:[(0,s.jsx)("tr",{className:"bg-light text-center",children:t.map((e,t)=>(0,s.jsx)("td",{className:"px-3 "+(e.left_the_table?"table-danger":""),children:e.number},t))}),(0,s.jsx)("tr",{className:"text-center",children:t.map((e,t)=>(0,s.jsx)("td",{className:e.left_the_table?"table-danger":"",children:null===e.num_votes?(0,s.jsx)(s.Fragment,{children:"\xa0"}):e.num_votes},t))}),l&&(0,s.jsx)("tr",{className:"text-center",children:t.map((e,t)=>(0,s.jsx)("td",{className:e.left_the_table?"table-danger":"",children:e.left_the_table?"X":(0,s.jsx)(s.Fragment,{children:"\xa0"})},t))})]})})]})}function g(e){let{dayVotes:t}=e;return t&&0!=t.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h4",{className:"text-center mt-4",children:"ÐолоÑование"}),(0,s.jsx)("div",{className:"row",children:t.map(e=>(0,s.jsxs)("div",{className:"col-12 col-sm-3 text-center mt-4",children:[(0,s.jsxs)("b",{children:["ÐÐµÐ½Ñ ",e.day]}),(0,s.jsx)(y,{votes:e.votes}),(0,s.jsx)(y,{votes:e.extra_votes,isExtra:!0})]},e.day))})]}):null}var w=!0;function Z(e){let{layoutProps:t,game:n,mafia_game:l,mafia_games:r,mafia_score_legend:c,role_votes:i,day_votes:x,currentCity:u,errorCode:m}=e,b=(0,o.useRouter)();return m?(0,s.jsx)(a(),{statusCode:m}):(0,s.jsxs)(h.Z,{pageClass:"page-game",...t,children:[(0,s.jsxs)(d(),{children:[(0,s.jsxs)("title",{children:["ÐгÑа ",n.game_type.name," ",n.start_time_medium,", ÑаÑнд #",l.number]}),(0,s.jsx)("meta",{name:"description",content:"ÐгÑа ".concat(n.game_type.name," в ").concat(u.name_prepositional," ").concat(n.start_time_medium,". ").concat(n.place?n.place.name:"")})]}),(0,s.jsxs)("div",{className:"container-fluid mt-4 mb-5",children:[(0,s.jsx)(f,{game:n}),(0,s.jsx)(j.Z,{mafiaGames:r,selectedMafiaGame:l.number,onSelect:e=>{b.push("/".concat(u.slug,"/game/").concat(n.id,"/mafia/").concat(e))},className:"mt-3"}),(0,s.jsxs)("div",{className:"row align-items-center",children:[(0,s.jsx)("div",{className:"col-12 col-sm-4"}),(0,s.jsx)("div",{className:"col-12 col-sm-4 mt-3",children:l.winner&&(0,s.jsxs)("h4",{className:"text-center",children:["Ðобеда: ",(0,s.jsx)("b",{children:l.winner})]})}),(0,s.jsx)("div",{className:"col-12 col-sm-4 mt-3",children:(0,s.jsx)(p,{legend:c})})]}),(0,s.jsxs)("div",{className:"d-flex flex-wrap gap-4 mt-3 justify-content-between",children:[(0,s.jsx)("div",{className:"flex-grow-1 mw-100",children:(0,s.jsx)(_,{mafiaGame:l})}),(0,s.jsx)("div",{className:"flex-grow-1 mw-100",children:(0,s.jsx)(N,{roleVotes:i})})]}),(0,s.jsx)(g,{dayVotes:x})]})]})}},12918:function(e,t,n){e.exports=n(2111)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=35025)}),_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.