PageSourceSearch

https://fantasyhoff.com/assets/LeagueDetail-Bhe1CRe7.js

js fantasyhoff.com collected 2026-09-24 14:43:07 UTC 7,503 bytes, 1 lines download raw bytes

1import{j as s,a as q}from"./vendor-react-DCIP6ipm.js";import{j as A,Z as P,a4 as S,N as E}from"./index-5SgQjDr9.js";import{a as M}from"./useLeagueMembers-H_g2BP5T.js";import{u as T,d as z,c as K}from"./useLeagueData-BBHxNK3e.js";import{u as B}from"./useStats-D63dhjCr.js";import{s as W}from"./ingestionStatus-C4iCJ_Fj.js";/* empty css               */import{b as D,L as G}from"./vendor-router-DmCJgN2X.js";import{p as H,Q as O,d as Q}from"./vendor-icons-Cwrlw3JZ.js";import"./vendor-react-dom-CpZ_XJmk.js";import"./vendor-query-Brtv2x_Q.js";function Z({normalization:c}){return c?s.jsxs("span",{className:"hof-pill success",title:`Point values are scaled to ${c.baselineSeason}'s per-game scoring level so seasons compare fairly. Wins/losses and the underlying scores are unchanged.`,children:["Era-adjusted · ",c.baselineSeason," scoring"]}):null}function ns(){var N,f,v,$,w,k;const{leagueId:c}=D(),i=c,[r,u]=q.useState(void 0),t=A(i),d=T(i),R=z(i),h=B(i,r),p=K(i??"");if(!i)return null;if(t.isLoading)return s.jsx(P,{});if(t.isError)return s.jsxs("main",{className:"hofPage hof-sbl hof-sbl-detail",children:[s.jsx(S,{}),s.jsx("div",{className:"sbl-frame",children:s.jsxs("section",{className:"sbl-fault",role:"alert",children:[s.jsx("p",{className:"sbl-eyebrow",children:"Couldn't load"}),s.jsx("h1",{children:"Something broke."}),s.jsx("p",{className:"sbl-dek",children:t.error.message})]})})]});if(!t.data)return null;const{league:C,seasons:n,seasonTeams:g,owners:m}=t.data,o=(N=n[n.length-1])==null?void 0:N.season,j=(f=n[0])==null?void 0:f.season,L=new Map((((v=R.data)==null?void 0:v.champions)??[]).map(a=>[a.season,a.winner.franchiseName??M(a.winner.managerName)??a.winner.name])),I=t.data.accessRole==="owner"||t.data.accessRole==="commissioner",e=($=d.data)==null?void 0:$.summary,x=((e==null?void 0:e.running)??0)>0||((e==null?void 0:e.queued)??0)>0||((e==null?void 0:e.refreshing)??0)>0,b=((w=h.data)==null?void 0:w.matchupRecords.slice(0,10))??[];return s.jsxs("main",{className:"hofPage hof-sbl hof-sbl-detail",children:[s.jsx(S,{}),s.jsxs("div",{className:"sbl-frame",children:[s.jsxs("header",{className:"sbl-head sbl-rise",children:[s.jsxs("div",{className:"sbl-head-main",children:[s.jsx("p",{className:"sbl-eyebrow",children:o&&j?o===j?o:`${o} — ${j}`:"League office"}),s.jsx("h1",{children:C.name}),s.jsx("p",{className:"sbl-dek",children:n.length>0?`${n.length} season${n.length===1?"":"s"} on file · ${g.length} team-seasons · ${m.length} owner${m.length===1?"":"s"}.`:"No seasons imported yet."}),s.jsx("div",{className:"sbl-head-actions",children:s.jsxs(G,{to:E("teams",i),className:"sbl-btn",children:[s.jsx(H,{size:14}),"Manage league"]})})]}),s.jsxs("div",{className:"sbl-meta",children:[s.jsxs("span",{className:"m",children:[s.jsx("strong",{children:n.length}),s.jsx("span",{children:"Seasons"})]}),s.jsxs("span",{className:"m",children:[s.jsx("strong",{children:g.length}),s.jsx("span",{children:"Teams"})]}),s.jsxs("span",{className:"m",children:[s.jsx("strong",{children:m.length}),s.jsx("span",{children:"Owners"})]})]})]}),d.data&&s.jsxs("section",{className:"sbl-board sbl-rise d1","aria-label":"Ingestion status",children:[s.jsx("div",{className:"sbl-bulbs","aria-hidden":"true"}),s.jsxs("div",{className:"sbl-board-top",children:[s.jsx("span",{className:"ttl",children:"Control Room · League Ingestion"}),s.jsx("span",{className:"sum",children:e!=null&&e.isComplete?`All ${e.total} seasons settled${(e.partial??0)>0?` · ${e.partial} limited`:""}${(e.refreshing??0)>0?` · ${e.refreshing} refreshing`:""}`:`${((e==null?void 0:e.succeeded)??0)+((e==null?void 0:e.partial)??0)} of ${(e==null?void 0:e.total)??0} settled${((e==null?void 0:e.partial)??0)>0?` · ${e==null?void 0:e.partial} limited`:""}${((e==null?void 0:e.running)??0)>0?` · ${e==null?void 0:e.running} running`:""}${((e==null?void 0:e.queued)??0)>0?` · ${e==null?void 0:e.queued} queued`:""}${((e==null?void 0:e.failed)??0)>0?` · ${e==null?void 0:e.failed} failed`:""}`}),I&&s.jsxs("button",{type:"button",className:"sbl-switch",onClick:()=>p.mutate(),disabled:p.isPending||x,children:[s.jsx(O,{size:12}),p.isPending?"Re-queuing…":x?"Running":"Re-run all"]})]}),s.jsx("div",{className:"sbl-grid",children:d.data.seasons.map(a=>{const l=a.isRefresh?a.settledStatus==="partial"?"st-partial":"st-ok":a.status==="succeeded"?"st-ok":a.status==="partial"?"st-partial":a.status==="failed"?"st-fail":a.status==="running"||a.status==="queued"?"st-run":"st-idle";return s.jsxs("div",{className:`sbl-cell ${l}`,children:[s.jsxs("div",{className:"row1",children:[s.jsx("span",{className:"sbl-lamp","aria-hidden":"true"}),s.jsx("span",{className:"yr",children:a.season}),s.jsx("span",{className:"st",children:W(a)})]}),a.status==="succeeded"&&s.jsxs("span",{className:"counts",children:[a.teamsCount," teams · ",a.matchupsCount," matchups"]}),a.status==="partial"&&s.jsxs("span",{className:"counts",children:[a.teamsCount," teams · ",a.matchupsCount," matchups ·"," ",a.outcomeKind==="provider-empty"?"no weekly games available":"limited data"]}),!a.isRefresh&&a.outcomeKind!=="provider-empty"&&(a.status==="failed"||a.status==="partial")&&a.error&&s.jsx("span",{className:"err",children:a.error.slice(0,80)})]},a.leagueSeasonId)})}),s.jsxs("div",{className:"sbl-board-foot",children:[s.jsx("span",{children:"Green lamp · done  Amber · working or limited  Red · failed"}),s.jsx("span",{children:"Status refreshes automatically while jobs run"})]})]}),s.jsxs("div",{className:"sbl-lower",children:[s.jsxs("section",{className:"hjb-card sbl-rise d2","aria-label":"Season archive",children:[s.jsx("div",{className:"hjb-card-head",children:s.jsx("h2",{children:"Season Archive"})}),s.jsxs("div",{className:"sbl-archive",children:[s.jsxs("button",{type:"button",className:`sbl-arch-row${r===void 0?" is-active":""}`,onClick:()=>u(void 0),children:[s.jsx("span",{className:"yr",children:"All"}),s.jsx("span",{className:"champ",children:"Every season on file"}),s.jsx("span",{className:"tag",children:"All-time"})]}),n.map(a=>{const l=L.get(a.season);return s.jsxs("button",{type:"button",className:`sbl-arch-row${r===a.season?" is-active":""}`,onClick:()=>u(r===a.season?void 0:a.season),children:[s.jsx("span",{className:"yr",children:a.season}),s.jsx("span",{className:"champ",children:l?`${l} took the title`:a.name}),l&&s.jsx("span",{className:"tag",children:"🏆 Champion"})]},a.id)})]})]}),s.jsxs("section",{className:"hjb-card sbl-rise d3","aria-label":"Matchup records",children:[s.jsxs("div",{className:"hjb-card-head",children:[s.jsxs("h2",{children:[s.jsx(Q,{size:16,style:{verticalAlign:"-2px",marginRight:8}}),"Matchup Records"]}),s.jsx(Z,{normalization:(k=h.data)==null?void 0:k.normalization})]}),s.jsx("p",{className:"sbl-records-dek",children:r?`The ${r} season's bragging rights.`:"The 10 records you'd quote in the group chat."}),h.isLoading?s.jsx("p",{className:"sbl-records-dek",children:"Checking the ledger…"}):b.length===0?s.jsx("p",{className:"sbl-records-dek",children:"No records for this scope yet."}):s.jsx("ol",{className:"sbl-records",children:b.map((a,l)=>s.jsxs("li",{className:"sbl-rec",children:[s.jsx("span",{className:"no",children:String(l+1).padStart(2,"0")}),s.jsxs("div",{children:[s.jsx("div",{className:"t",children:a.title}),s.jsx("div",{className:"d",children:a.description})]}),s.jsxs("span",{className:"when",children:[a.season,a.week?` · WK ${a.week}`:""]})]},`${a.category}-${a.season}-${a.week}-${l}`))})]})]})]})]})}export{ns as LeagueDetail};

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.