1import{j as e,c as ne,u as le,d as q}from"./query-vendor-d1GAYZhm.js";import{r as c,L as b,l as oe,m as ie,u as ce}from"./react-vendor-CD62bmu0.js";import{f as U,a as de,A as Q,s as z,t as ue,d as me,v as xe,e as fe,w as G,x as $,F as O,T as C,y as he}from"./index-CQSftOyI.js";import{F as pe,a as ge,r as be,g as je}from"./favorites-BxnfEqc1.js";import{S as ve,d as Ne,b as we}from"./Seo-Cd1iUGSv.js";import{J as ye}from"./JsonLd-CUaBCFfI.js";import{S as Se}from"./SeasonFilter-BgHXO99-.js";import{f as ke}from"./flags-CRpMZ7BM.js";import{p as Me}from"./playerPhoto-DKiwlwW-.js";import{E as K}from"./EmptyState-B5O-minG.js";import{P as W}from"./PlayerAvatar-CT9Qzh9N.js";import{M as _}from"./MatchDayGroup-C7WIGicv.js";import{g as Z}from"./matchGroups-BXOrjceH.js";import Fe from"./NotFound-Clk-ZB96.js";import{f as $e}from"./players_stats-Bh_BCE4F.js";import{u as Ce}from"./useFixtures-DxYelf8l.js";import{c as Pe}from"./clubFixtures-BDqdfyTP.js";import{f as Te,a as Ee}from"./datetime-IXGFTR5a.js";import{N as Ae}from"./NewsModule-BpMDFoVy.js";import{A as Le}from"./AdBanner-C2wxHAS6.js";import{F as H}from"./MapPinIcon-B5z9vN_z.js";import{F as Re}from"./CalendarDaysIcon-BG-0cP8S.js";import"./utils-vendor-Cd-SvfM0.js";import"./MatchRow-COOn94Vv.js";import"./dayKey-YVv5wkGL.js";import"./fetchCurrentTimezone-pRUnxpCC.js";import"./CategoryBadge-CtEtwoJV.js";import"./ArrowRightIcon-CLPkgb4s.js";function Ie({title:t,titleId:s,...l},n){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":s},l),t?c.createElement("title",{id:s},t):null,c.createElement("path",{d:"M21.721 12.752a9.711 9.711 0 0 0-.945-5.003 12.754 12.754 0 0 1-4.339 2.708 18.991 18.991 0 0 1-.214 4.772 17.165 17.165 0 0 0 5.498-2.477ZM14.634 15.55a17.324 17.324 0 0 0 .332-4.647c-.952.227-1.945.347-2.966.347-1.021 0-2.014-.12-2.966-.347a17.515 17.515 0 0 0 .332 4.647 17.385 17.385 0 0 0 5.268 0ZM9.772 17.119a18.963 18.963 0 0 0 4.456 0A17.182 17.182 0 0 1 12 21.724a17.18 17.18 0 0 1-2.228-4.605ZM7.777 15.23a18.87 18.87 0 0 1-.214-4.774 12.753 12.753 0 0 1-4.34-2.708 9.711 9.711 0 0 0-.944 5.004 17.165 17.165 0 0 0 5.498 2.477ZM21.356 14.752a9.765 9.765 0 0 1-7.478 6.817 18.64 18.64 0 0 0 1.988-4.718 18.627 18.627 0 0 0 5.49-2.098ZM2.644 14.752c1.682.971 3.53 1.688 5.49 2.099a18.64 18.64 0 0 0 1.988 4.718 9.765 9.765 0 0 1-7.478-6.816ZM13.878 2.43a9.755 9.755 0 0 1 6.116 3.986 11.267 11.267 0 0 1-3.746 2.504 18.63 18.63 0 0 0-2.37-6.49ZM12 2.276a17.152 17.152 0 0 1 2.805 7.121c-.897.23-1.837.353-2.805.353-.968 0-1.908-.122-2.805-.353A17.151 17.151 0 0 1 12 2.276ZM10.122 2.43a18.629 18.629 0 0 0-2.37 6.49 11.266 11.266 0 0 1-3.746-2.504 9.754 9.754 0 0 1 6.116-3.985Z"}))}const De=c.forwardRef(Ie);function qe({title:t,titleId:s,...l},n){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":s},l),t?c.createElement("title",{id:s},t):null,c.createElement("path",{fillRule:"evenodd",d:"M7.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3.751 20.105a8.25 8.25 0 0 1 16.498 0 .75.75 0 0 1-.437.695A18.683 18.683 0 0 1 12 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 0 1-.437-.695Z",clipRule:"evenodd"}))}const Ge=c.forwardRef(qe);async function J(t){try{const s=await de(t);return s.ok?await s.json():null}catch{return null}}const B={founded:null,ground:null,coach:null,country:null,description:null};async function Oe(t){if(!t)return B;const s=await U(),l=encodeURIComponent(t),n=await J(`${Q}/v1/seasons/${encodeURIComponent(s)}/competitors/${l}/profile`),r=n?.competitor??n?.data??n;if(!r)return B;const o=r?.coach?.name;return{founded:r?.founded??null,ground:r?.venue?.name??null,coach:(typeof o=="string"?o:o?.name)??null,country:r?.country??null,description:r?.description??null}}async function _e(t){if(!t)return[];const s=await U(),l=await J(`${Q}/v1/seasons/${encodeURIComponent(s)}/competitors/${encodeURIComponent(t)}/players`),n=l?.players??l?.squad??[];return Array.isArray(n)?n.map(r=>({id:r.player_id??r.id??"",name:r.name??"",role:r.type??r.position??"",number:r.jersey_number??r.number??"",photo:r.player_img_path??"",nationality:r.nationality??""})):[]}const Ze=["Goalkeepers","Defenders","Midfielders","Forwards","Other"];function Be(t){const s=(t||"").toLowerCase();return s.includes("keeper")||s.includes("gk")?"Goalkeepers":s.includes("back")||s.includes("defen")||s.includes("cb")||s.includes("wing")?"Defenders":s.includes("mid")?"Midfielders":s.includes("forward")||s.includes("striker")||s.includes("winger")||s.includes("attack")?"Forwards":"Other"}function Ue(t){return Ze.map(s=>({group:s,players:t.filter(l=>Be(l.role)===s)})).filter(s=>s.players.length)}function Qe({player:t}){return e.jsxs(b,{to:z(t)||"/players",state:{player:t},className:"group flex flex-col overflow-hidden rounded-2xl bg-surface ring-1 ring-border shadow-sm transition hover:-translate-y-1 hover:shadow-xl",children:[e.jsxs("div",{className:"relative h-36 bg-gradient-to-br from-brand to-header-2",children:[e.jsx("span",{className:"absolute left-3 top-3 text-2xl font-extrabold text-white/80 tabular-nums",children:t.number}),e.jsx(W,{src:Me(t),alt:t.name,className:"absolute inset-x-0 bottom-0 mx-auto h-32 w-32 object-contain object-bottom rounded-xl"})]}),e.jsxs("div",{className:"p-3",children:[e.jsx("p",{className:"truncate font-bold text-text group-hover:text-brand-2 transition-colors",children:t.name}),e.jsxs("p",{className:"mt-0.5 flex items-center justify-between text-xs text-text-muted",children:[e.jsx("span",{children:t.role||"â"}),t.nationality&&e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx("span",{"aria-hidden":"true",children:ke(t.nationality)}),t.nationality]})]})]})]})}function ze({teamId:t}){const[s,l]=c.useState([]),[n,r]=c.useState(!0);return c.useEffect(()=>{let o=!1;return r(!0),_e(t).then(i=>{o||(l(Ue(i)),r(!1))}),()=>{o=!0}},[t]),n?e.jsx("div",{className:"flex justify-center py-16",children:e.jsx("div",{className:"h-7 w-7 animate-spin rounded-full border-4 border-border border-t-accent"})}):s.length?e.jsx("div",{className:"space-y-8",children:s.map(o=>e.jsxs("section",{children:[e.jsx("h3",{className:"mb-3 text-sm font-extrabold uppercase tracking-wide text-text-muted",children:o.group}),e.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:o.players.map(i=>e.jsx(Qe,{player:i},i.id))})]},o.group))}):e.jsx(K,{title:"Squad not available yet",note:"The full squad list will appear here once roster data is published."})}function Ke({upcoming:t,results:s}){const l=t||[],n=s||[],r=c.useMemo(()=>Z(l,{ascending:!0}),[l]),o=c.useMemo(()=>Z(n,{ascending:!1}),[n]);return e.jsxs("div",{className:"space-y-10",children:[r.length>0&&e.jsxs("div",{children:[e.jsx("h3",{className:"mb-3 text-base font-extrabold text-text",children:"Scheduled matches"}),e.jsx("div",{className:"space-y-6",children:r.map(i=>e.jsx(_,{label:i.label,matches:i.matches},i.key))})]}),o.length>0&&e.jsxs("div",{children:[e.jsx("h3",{className:"mb-3 text-base font-extrabold text-text",children:"Recent results"}),e.jsx("div",{className:"space-y-6",children:o.map(i=>e.jsx(_,{label:i.label,matches:i.matches},i.key))})]}),r.length===0&&o.length===0&&e.jsx(K,{title:"No matches to show",note:"Matches and results for this club will appear here as data becomes available."})]})}const Y=["Overview","Matches","Squad","Stats"];
1function We(t,s){switch(t){case"Matches":return`${s} matches and results â scheduled games and recent scores in the SportPesa League.`;case"Squad":return`${s} squad list by position â full player roster for the SportPesa League.`;case"Stats":return`${s} season statistics â goals, form and league performance in the SportPesa League.`;default:return`${s} â SportPesa League club hub. Matches, results, squad, season stats and the latest club news.`}}function He(){return e.jsxs("div",{className:"bg-bg min-h-screen pt-16 sm:pt-20",children:[e.jsx("div",{className:"text-white",style:{background:"linear-gradient(120deg, var(--header) 0%, var(--header-2) 100%)"},children:e.jsxs("div",{className:"mx-auto max-w-[88%] px-4 py-10 flex items-center gap-5",children:[e.jsx("div",{className:"h-20 w-20 sm:h-24 sm:w-24 rounded-2xl skeleton"}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"h-7 w-48 rounded skeleton"}),e.jsx("div",{className:"h-3 w-32 rounded skeleton"})]})]})}),e.jsx("div",{className:"border-b border-border bg-surface",children:e.jsx("div",{className:"mx-auto max-w-[88%] px-4 flex gap-6 py-4",children:Y.map(t=>e.jsx("div",{className:"h-3 w-14 rounded bg-surface-3"},t))})}),e.jsx("div",{className:"mx-auto max-w-[88%] px-4 py-8",children:e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:Array.from({length:4}).map((t,s)=>e.jsx("div",{className:"h-20 rounded-xl bg-surface ring-1 ring-border"},s))})})]})}function p({label:t,value:s}){return e.jsxs("div",{className:"rounded-xl bg-surface ring-1 ring-border p-4 text-center card-hover",children:[e.jsx("div",{className:"text-2xl font-black tabular-nums",style:{color:"var(--accent)"},children:s??"â"}),e.jsx("div",{className:"mt-1 text-[10px] font-black uppercase tracking-wider text-text-muted",children:t})]})}function Je({results:t}){const s={W:"bg-live text-white",D:"ring-1 ring-border bg-surface-3 text-text-muted",L:"bg-red-500 text-white"},l=(t||[]).slice(0,10).slice().reverse();return e.jsxs("div",{className:"rounded-xl bg-surface ring-1 ring-border p-5",children:[e.jsx("h2",{className:"mb-3 font-bold text-text",children:"Recent form"}),l.length?e.jsx("div",{className:"flex items-center gap-1.5",children:l.map((n,r)=>e.jsx("span",{title:`${n.res} ${n.home?"vs":"@"} ${n.opp} (${n.score})`,className:`grid h-7 w-7 place-items-center rounded-full text-[11px] font-extrabold ${s[n.res]}`,children:n.res},r))}):e.jsx("p",{className:"text-sm text-text-muted",children:"Form will appear here once results are in."})]})}function Ye({club:t,next:s}){if(!s)return e.jsxs("div",{className:"flex flex-col items-center justify-center rounded-2xl bg-surface ring-1 ring-border p-5 text-center",children:[e.jsx("span",{className:"text-[11px] font-bold uppercase tracking-wide text-accent",children:"Next fixture"}),e.jsx("p",{className:"mt-3 text-sm text-text-muted",children:"No match scheduled yet."})]});const l=s.home?.fullName||s.home?.name||t,n=s.away?.fullName||s.away?.name||"TBC",r=s.kickoff?new Date(s.kickoff):null,o=Te(r)||"Scheduled",i=Ee(r)||s.time||"TBC";return e.jsxs(b,{to:"/matches",className:"group flex flex-col rounded-2xl bg-surface ring-1 ring-border p-5 transition hover:-translate-y-0.5 hover:shadow-lg",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold uppercase tracking-wide text-accent",children:"Next fixture"}),e.jsx("span",{className:"text-xs text-text-muted",children:o})]}),e.jsxs("div",{className:"mt-4 flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex flex-1 items-center justify-end gap-2 text-right",children:[e.jsx("span",{className:"truncate text-sm font-bold text-text",children:l}),e.jsx(C,{name:l,className:"h-8 w-8",textClassName:"text-[9px]"})]}),e.jsx("span",{className:"rounded-md bg-brand px-3 py-1 text-sm font-extrabold text-on-brand tabular-nums",children:i}),e.jsxs("div",{className:"flex flex-1 items-center gap-2",children:[e.jsx(C,{name:n,className:"h-8 w-8",textClassName:"text-[9px]"}),e.jsx("span",{className:"truncate text-sm font-bold text-text",children:n})]})]})]})}function Ve({club:t}){const[s,l]=c.useState([]);c.useEffect(()=>{let x=!0;return $e().then(d=>x&&l(d)),()=>{x=!1}},[]);const n=s.filter(x=>x.team===t),r=n.find(x=>x.statType==="Goals"),o=n.find(x=>x.statType==="Assists");if(!r&&!o)return null;const i=({label:x,player:d})=>e.jsxs(b,{to:z(d)||"/players",state:{player:d},className:"flex items-center gap-3 rounded-xl p-2 transition hover:bg-surface-3",children:[e.jsx(W,{src:d.img,alt:d.name,className:"h-10 w-10 rounded-full object-cover object-top bg-surface-3"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-wide text-text-muted",children:x}),e.jsx("p",{className:"truncate font-bold text-text",children:d.name})]}),e.jsx("span",{className:"text-xl font-extrabold text-accent tabular-nums",children:d.value})]});return e.jsxs("div",{className:"rounded-2xl bg-surface ring-1 ring-border p-3",children:[r&&e.jsx(i,{label:"Top scorer",player:r}),o&&e.jsx(i,{label:"Most assists",player:o})]})}function $s(){const{id:t,slug:s,tab:l}=oe(),n=ie(),o=ce().state||null,[i,x]=c.useState(null),d=ue(l),{seasonId:P}=me(),{isAuthenticated:V,token:g,signOut:j}=xe(),T=ne(),[E,v]=c.useState(null),{data:X=[],error:A,isLoading:ee}=le({queryKey:["favorites",g],queryFn:()=>je(g),enabled:!!g,staleTime:6e4,retry:(a,h)=>h?.status!==401&&a<1});c.useEffect(()=>{A?.status===401&&j()},[A,j]);const L=q({mutationFn:a=>ge(g,a),onMutate:()=>v(null),onSuccess:()=>T.invalidateQueries({queryKey:["favorites",g]}),onError:a=>{a?.status===401?j():v("Couldn't follow this team. Please try again.")}}),R=q({mutationFn:a=>be(g,a),onMutate:()=>v(null),onSuccess:()=>T.invalidateQueries({queryKey:["favorites",g]}),onError:a=>{a?.status===401?j():v("Couldn't unfollow this team. Please try again.")}}),{data:N=[],isLoading:se}=fe(P),{fixtures:I}=Ce(0,P),M=c.useMemo(()=>
1{if(!t||!N.length)return null;let a;if(/^\d+$/.test(t)){const h=he(t);a=N.find(re=>re.teamId===h)}return a||(a=N.find(h=>G(h.club)===t||G(h.club)===s)),a?{id:a.teamId||"",name:a.club,fullName:a.club,logo:a.logo,position:a.pos,points:a.pts,played:a.pl,won:a.w,drawn:a.d,lost:a.l,goalsFor:a.gf,goalsAgainst:a.ga,goalDiff:a.gd}:null},[t,s,N]),u=c.useMemo(()=>{const a=o?.name?{id:o.teamId,name:o.name,logo:o.logo}:null;return!M&&!a?null:{...a,...M}},[M,o]),f=u?.id||o?.teamId,w=X.some(a=>String(a.team_id)===String(f)),te=()=>{f&&(w?R.mutate(f):L.mutate({teamId:f,teamName:m,teamLogo:y||""}))};c.useEffect(()=>{if(!f)return;let a=!0;return Oe(f).then(h=>a&&h&&x(h)),()=>{a=!1}},[f]);const m=u?.fullName||u?.name||o?.name||"Team",y=u?.logo||o?.logo,S=s?`/teams/${t}/${s}`:`/teams/${t}`,D=$[d],F=D?`${S}/${D}`:S,ae=c.useMemo(()=>({...u,...i,name:m,logo:y}),[u,i,m,y]),k=c.useMemo(()=>Pe(I,m),[I,m]);return!u&&se?e.jsx(He,{}):d===null?e.jsx(Fe,{}):e.jsxs("div",{className:"bg-bg min-h-screen pt-16 sm:pt-20",children:[e.jsx(ve,{title:d==="Overview"?m:`${m} ${d}`,canonical:F,description:We(d,m)}),e.jsx(ye,{data:[Ne(ae,F),we([{name:"Home",url:"/"},{name:"Clubs",url:"/clubs"},{name:m,url:S},...d!=="Overview"?[{name:d,url:F}]:[]])]}),e.jsxs("nav",{className:"mx-auto max-w-[88%] px-4 py-3 text-xs text-text-muted flex items-center gap-1",children:[e.jsx(b,{to:"/",className:"hover:text-accent",children:"Home"}),e.jsx(O,{className:"h-3 w-3"}),e.jsx(b,{to:"/clubs",className:"hover:text-accent",children:"Clubs"}),e.jsx(O,{className:"h-3 w-3"}),e.jsx("span",{className:"text-text font-semibold capitalize",children:m})]}),e.jsxs("header",{className:"text-white relative",style:{background:"linear-gradient(120deg, var(--header) 0%, var(--header-2) 100%)"},children:[e.jsx("div",{className:"pointer-events-none absolute inset-0 overflow-hidden","aria-hidden":"true",children:e.jsx("div",{className:"absolute -right-16 top-0 h-48 w-48 rounded-full blur-3xl",style:{background:"rgba(200,168,75,0.12)"}})}),e.jsxs("div",{className:"relative mx-auto max-w-[88%] px-4 py-10 flex flex-wrap items-center gap-5",children:[e.jsx("div",{className:"rounded-2xl p-3",style:{background:"rgba(255,255,255,0.08)",border:"1px solid rgba(255,255,255,0.12)"},children:e.jsx(C,{name:m,src:y,teamId:u?.id,className:"h-16 w-16 sm:h-20 sm:w-20",textClassName:"text-3xl"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.3em] mb-1",style:{color:"#C8A84B"},children:"SportPesa League"}),e.jsx("h1",{className:"text-2xl sm:text-4xl font-black capitalize leading-tight",children:m}),e.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-x-5 gap-y-1 text-xs text-white/70",children:[u?.position&&e.jsxs("span",{className:"font-semibold",children:["#",u.position," in table"]}),i?.founded&&e.jsxs("span",{children:["Est. ",i.founded]}),i?.ground&&e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(H,{className:"h-3.5 w-3.5 text-white/40"})," ",i.ground]}),i?.coach&&e.jsxs("span",{children:["Coach: ",i.coach]})]})]}),e.jsxs("div",{className:"ml-auto flex flex-col items-end gap-1.5",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[V&&f&&e.jsxs("button",{onClick:te,disabled:L.isPending||R.isPending||ee,className:`flex items-center gap-1.5 rounded-full px-4 py-2 text-sm font-bold transition disabled:opacity-50 ${w?"bg-white/15 border border-white/30 text-white hover:bg-white/25":"border border-accent/70 text-accent hover:bg-accent/10"}`,children:[e.jsx(pe,{className:"h-4 w-4",style:{opacity:w?1:.4}}),w?"Following":"Follow"]}),e.jsx(Se,{variant:"header"})]}),E&&e.jsx("p",{className:"text-xs font-semibold text-red-300",children:E})]})]})]}),e.jsx(Le,{position:"team-top",className:"bg-surface/80 py-3"}),e.jsx("div",{className:"sticky top-16 sm:top-20 z-30 bg-surface/95 backdrop-blur border-b border-border",children:e.jsx("div",{className:"mx-auto max-w-[88%] px-2 flex gap-1 overflow-x-auto scrollbar-hide",children:Y.map(a=>e.jsx("button",{onClick:h=>{n(`${S}${$[a]?`/${$[a]}`:""}`),h.currentTarget.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},className:`relative whitespace-nowrap px-4 py-3 text-sm font-bold transition-colors ${d===a?"text-accent after:absolute after:inset-x-2 after:bottom-0 after:h-[3px] after:rounded-full after:bg-accent":"text-text-muted hover:text-text"}`,children:a},a))})}),e.jsxs("main",{className:"mx-auto max-w-[88%] px-4 py-8 space-y-8",children:[d==="Overview"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:[e.jsx(p,{label:"Position",value:u?.position}),e.jsx(p,{label:"Points",value:u?.points}),e.jsx(p,{label:"Played",value:u?.played}),e.jsx(p,{label:"Goal Difference",value:u?.goalDiff})]}),e.jsxs("div",{className:"grid gap-6 sm:grid-cols-3",children:[e.jsx(p,{label:"Won",value:u?.won}),e.jsx(p,{label:"Drawn",value:u?.drawn}),e.jsx(p,{label:"Lost",value:u?.lost})]}),e.jsxs("div",{className:"grid gap-6 lg:grid-cols-2",children:[e.jsx(Ye,{club:m,next:k.next}),e.jsx(Ve,{club:m})]}),e.jsx(Je,{results:k.results}),e.jsx(Xe,{profile:i})]}),d==="Matches"&&e.jsx(Ke,{upcoming:k.upcoming,results:k.finished}),d==="Squad"&&e.jsx(ze,{teamId:f}),d==="Stats"&&e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:[e.jsx(p,{label:"Goals for",value:u?.goalsFor}),e.jsx(p,{label:"Goals against",value:u?.goalsAgainst}),e.jsx(p,{label:"Goal Difference",value:u?.goalDiff})]}),f&&e.jsx("div",{className:"mt-10",children:e.jsx(Ae,{title:`${u?.name||"Club"} news`,teamIds:[f],limit:3})})]})]})}function Xe({profile:t}){if(!t)return null;const s=[{icon:H,label:"Ground",value:t.ground},{icon:Ge,label:"Coach",value:t.coach},{icon:Re,label:"Founded",value:t.founded?`Est. ${t.founded}`:null},{icon:De,label:"Country",value:t.country}].filter(l=>l.value);return!s.length&&!t.description?null:e.jsxs("div",{className:"rounded-2xl bg-surface ring-1 ring-border p-5",children:[e.jsx("h3",{className:"text-sm font-bold uppercase tracking-wide text-text-muted mb-4",children:"Club info"}),t.description&&e.jsx("p",{className:"mb-4 text-sm text-text-muted leading-relaxed",children:t.description}),s.length>0&&e.jsx("dl",{className:"grid gap-3 sm:grid-cols-2",children:s.map(({icon:l,label:n,value:r})=>e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(l,{className:"h-4 w-4 text-text-muted shrink-0"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("dt",{className:"text-[10px] font-bold uppercase tracking-wide text-text-muted",children:n}),e.jsx("dd",{className:"text-sm font-semibold text-text truncate",children:r})]})]},n))})]})}export{$s as default};
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.