PageSourceSearch

https://table.coach/_next/static/chunks/21.d2e66c453f356992.js

js table.coach collected 2026-10-09 22:17:48 UTC 9,510 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21],{48314:(e,t,n)=>{n.d(t,{A:()=>l});let l=(0,n(5121).A)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},68922:(e,t,n)=>{n.d(t,{A:()=>c});var l=n(95155),a=n(12115),r=n(99708),o=n(6191),s=n(98500),i=n(88174);function c(e){let{schema:t,seats:n,cells:c,onCell:m,showCites:x=!1,canAddRound:h=!1,highlightSeat:f=null,caption:p}=e,b=t.categories.some(e=>e.per_round)||"rounds"===t.mode,[g,k]=(0,a.useState)(0),y=Math.min(i.JH,Math.max((0,i._N)(t,c),1)+g),j=function(e,t){let n=[];if("rounds"===e.mode){for(let l=0;l<t;l++)e.categories.forEach((t,a)=>{let r=e.categories.length>1;n.push({id:"".concat(t.key,":").concat(l),category:t,index:l,label:r?"Round ".concat(l+1,", ").concat(t.label):"Round ".concat(l+1),groupStart:0===a})});return n}for(let l of e.categories){if(!l.per_round){n.push({id:"".concat(l.key,":0"),category:l,index:0,label:l.label,groupStart:!0});continue}for(let e=0;e<t;e++)n.push({id:"".concat(l.key,":").concat(e),category:l,index:e,label:"Round ".concat(e+1),groupStart:0===e})}return n}(t,y),w=(0,i.Sd)(t,n,c),N=!!m&&n.some(e=>e.canEdit);return(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,l.jsx)("div",{className:"min-w-0 overflow-x-auto rounded-card border border-line bg-surface",children:(0,l.jsxs)("table",{className:"w-full border-collapse text-left",children:[p&&(0,l.jsx)("caption",{className:"sr-only",children:p}),(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{className:"border-b border-line",children:[(0,l.jsx)("th",{scope:"col",className:"sticky left-0 z-10 min-w-[7rem] max-w-[10rem] bg-surface px-3 py-2 text-meta font-semibold text-ink-muted",children:(0,l.jsx)("span",{className:"sr-only",children:"Score line"})}),n.map(e=>(0,l.jsxs)("th",{scope:"col",className:(0,s.cx)("min-w-[3.75rem] px-0.5 py-2 text-center align-bottom text-small font-semibold text-ink",f===e.seat&&"bg-ink/[0.06]"),children:[(0,l.jsx)("span",{className:"block max-w-[6rem] truncate px-0.5",children:e.name}),e.mine&&(0,l.jsx)("span",{className:"block text-meta font-normal text-ink-muted",children:"You"}),!e.mine&&!e.canEdit&&N&&(0,l.jsx)(r.A,{className:"mx-auto mt-0.5 h-3.5 w-3.5 text-ink-subtle","aria-label":"Their column"})]},e.seat))]})}),(0,l.jsx)("tbody",{children:j.map(e=>{let a=e.category,r="categories"===t.mode&&a.per_round;return[r&&e.groupStart?(0,l.jsx)("tr",{className:"border-t border-line",children:(0,l.jsx)("th",{scope:"rowgroup",colSpan:n.length+1,className:"sticky left-0 bg-surface px-3 pb-0.5 pt-2 text-small font-semibold text-ink",children:(0,l.jsx)(u,{category:a,showCite:x})})},"".concat(e.id,":head")):null,(0,l.jsxs)("tr",{className:(0,s.cx)(!r&&"border-t border-line"),children:[(0,l.jsx)("th",{scope:"row",className:(0,s.cx)("sticky left-0 z-10 bg-surface px-3 py-1 align-middle font-normal",r?"pl-6 text-meta text-ink-muted":"text-small text-ink"),children:r||"rounds"===t.mode?(0,l.jsx)("span",{className:"block",children:e.label}):(0,l.jsx)(u,{category:a,showCite:x})}),n.map(t=>(0,l.jsx)("td",{className:(0,s.cx)("px-0.5 py-1 text-center",f===t.seat&&"bg-ink/[0.06]"),children:(0,l.jsx)(d,{value:(0,i.Or)(c,t.seat,a.key,e.index),editable:!!m&&t.canEdit,label:"".concat(r?"".concat(a.label,", ").concat(e.label):e.label," for ").concat(t.name),minus:"minus"===a.sign,onCommit:n=>null==m?void 0:m({seat:t.seat,key:a.key,index:e.index,value:n})})},t.seat))]},e.id)]})}),(0,l.jsx)("tfoot",{children:(0,l.jsxs)("tr",{className:"border-t-2 border-line-control",children:[(0,l.jsx)("th",{scope:"row",className:"sticky left-0 z-10 bg-surface px-3 py-2 text-body font-bold text-ink",children:"Total"}),n.map(e=>{var t;return(0,l.jsx)("td",{className:(0,s.cx)("num px-0.5 py-2 text-center font-display text-h3 font-extrabold text-ink",f===e.seat&&"bg-ink/[0.06]"),"data-total":e.seat,children:null!=(t=w[e.seat])?t:0},e.seat)})]})})]})}),b&&h&&N&&y<i.JH&&(0,l.jsxs)("button",{type:"button",onClick:()=>k(e=>e+1),className:(0,s.cx)(s.L_,"inline-flex min-h-target items-center gap-1.5 self-start rounded-control px-2 text-small font-semibold text-ink hover:bg-ink/[0.06]"),children:[(0,l.jsx)(o.A,{className:"h-4 w-4","aria-hidden":"true"}),"Add a round"]}
1)]})}function u(e){var t;let{category:n,showCite:a}=e;return(0,l.jsxs)("span",{className:"block",children:[(0,l.jsxs)("span",{className:"block leading-snug",children:[n.label,"minus"===n.sign&&(0,l.jsx)("span",{className:"ml-1 text-meta font-normal text-ink-muted",children:"(minus)"})]}),n.help&&(0,l.jsx)("span",{className:"block text-meta font-normal leading-snug text-ink-muted",children:n.help}),a&&(null==(t=n.cite)?void 0:t.page)&&(0,l.jsxs)("span",{className:"block text-meta font-normal text-ink-subtle",children:["Rulebook p.",n.cite.page]}),a&&"user"===n.origin&&(0,l.jsx)("span",{className:"block text-meta font-normal text-ink-subtle",children:"Added by hand"})]})}function d(e){let{value:t,editable:n,label:r,minus:o,onCommit:c}=e,[u,d]=(0,a.useState)(null===t?"":String(t)),[m,x]=(0,a.useState)(!1),h=(0,a.useRef)(!1);return((0,a.useEffect)(()=>{h.current||(d(null===t?"":String(t)),x(!1))},[t]),n)?(0,l.jsx)("input",{type:"text",inputMode:"numeric",autoComplete:"off",enterKeyHint:"next","aria-label":r,"aria-invalid":m||void 0,value:u,onFocus:()=>{h.current=!0},onBlur:()=>{h.current=!1,m&&(d(null===t?"":String(t)),x(!1))},onChange:e=>{let n=e.target.value.slice(0,7);d(n);let l=(0,i.kR)(n);if("invalid"===l)return void x(!0);x(!1),l!==t&&c(l)},className:(0,s.cx)(s.L_,"num min-h-target w-14 rounded-control border bg-bg px-1 text-center font-mono text-body text-ink",m?"border-fail":"border-line-control")}):(0,l.jsx)("span",{className:(0,s.cx)("num inline-block min-w-[2.5rem] font-mono text-body",null===t?"text-ink-subtle":"text-ink"),children:null===t?"":o&&t>0?"−".concat(t):t})}},76111:(e,t,n)=>{n.d(t,{Ay:()=>i});var l=n(95155),a=n(52619),r=n.n(a),o=n(67011);let s={rulebook:"AI-written from the rulebook",voice:"AI voice",music:"AI-generated music",recap:"AI-written from the night's results","recap-edited":"AI-written, then edited by the host"};function i(e){let{kind:t="rulebook",className:n}=e;return(0,l.jsxs)(r(),{href:"/ai","data-ai-label":t,className:(0,o.cx)(o.L,"inline-flex min-h-target items-center gap-1.5 rounded-control text-meta text-ink-subtle underline-offset-2 hover:text-ink hover:underline",n),children:[(0,l.jsx)("span",{"aria-hidden":"true",className:"rounded-token border border-line-control px-1.5 font-mono text-meta font-semibold leading-snug text-ink-muted",children:"AI"}),(0,l.jsx)("span",{children:s[t]}),(0,l.jsx)("span",{className:"sr-only",children:". How we use AI"})]})}},88174:(e,t,n)=>{n.d(t,{JH:()=>l,Jx:()=>o,NK:()=>u,Or:()=>s,Sd:()=>i,Tm:()=>c,Zk:()=>x,_N:()=>r,cr:()=>d,e2:()=>h,kR:()=>a,w7:()=>m});let l=30;function a(e){let t=e.trim().replace(/−/g,"-");if(""===t||"-"===t)return null;if(!/^-?\d+$/.test(t))return"invalid";let n=Number(t);return Math.abs(n)>1e5?"invalid":n}function r(e,t){let n=0;for(let l of e.categories){var a,r;if(l.per_round)for(let o of(n=Math.max(n,function(e,t,n){var l;return t.per_round?Math.max(1,null!=(l=e.rounds)?l:1,0):1}(e,l)),Object.values(t)))n=Math.max(n,null!=(r=null==o||null==(a=o[l.key])?void 0:a.length)?r:0)}return Math.min(n,l)}function o(e,t,n,l,a){var r,o;let s={};for(let[t,n]of Object.entries(e))for(let[e,l]of(s[t]={},Object.entries(null!=n?n:{})))s[t][e]=[...l];let i=null!=(r=s[t])?r:s[t]={},c=null!=(o=i[n])?o:i[n]=[];for(;c.length<=l;)c.push(null);for(c[l]=a;c.length&&null===c[c.length-1];)c.pop();return c.length||delete i[n],Object.keys(i).length||delete s[t],s}function s(e,t,n,l){var a,r;let o=null==(r=e[t])||null==(a=r[n])?void 0:a[l];return"number"==typeof o?o:null}function i(e,t,n){let l={};for(let a of t)l[a.seat]=function(e,t){let n=0;for(let a of e.categories){var l;let e=(null!=(l=null==t?void 0:t[a.key])?l:[]).reduce((e,t)=>e+("number"==typeof t?t:0),0);n+="minus"===a.sign?-e:e}return n}(e,n[a.seat]);return l}function c(e,t,n){let l=i(e,t,n),a=new Map(t.map((e,t)=>[e.seat,t])),r=t.map(e=>({seat:e.seat,name:e.name,total:l[e.seat],placement:null}));if("cooperative"===e.win)return r;let o="highest"===e.win?-1:1;r.sort((e,t)=>o*(e.total-t.total)||a.get(e.seat)-a.get(t.seat));let s=null,c=0;return r.forEach((e,t)=>{e.total!==s&&(c=t+1,s=e.total),e.placement=c}),r}function u(e){return"round"===e.kind?"Best round: ".concat(e.name,", ").concat(e.value," (").concat(e.label.toLowerCase(),")"):"Most points from ".concat(e.label,": ").concat(e.name,", ").concat(e.value)}function d(e){return"".concat(e.seat,"\0").concat(e.key,"\0").concat(e.index)}function m(e,t){let n=e;for(let e of t)n=o(n,e.seat,e.key,e.index,e.value);return n}function x(e){var t;let n=new Set,a=e.lines.filter(e=>e.label.trim()),r=(a.length?a:[{label:"Points",sign:"plus"}]).map(t=>({key:function(e,t){let n=e.normalize("NFKD").replace(/[^\x20-\x7e]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"").slice(0,32)||"category",l=n,a=2;for(;t.has(l)||"win"===l||"tiebreak"===l;)l="".concat(n.slice(0,28),"_").concat(a++);return t.add(l),l}(t.label.trim(),n),label:t.label.trim().slice(0,40),sign:t.sign,per_round:"roun
1ds"===e.mode,cite:null,origin:"user"}));return{mode:e.mode,win:e.win,win_cite:null,rounds:"rounds"===e.mode?Math.min(l,Math.max(1,null!=(t=e.rounds)?t:5)):null,categories:r,tiebreak:null}}let h={highest:"Highest total wins",lowest:"Lowest total wins",cooperative:"Play together"}}}]);

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.