1import{r as d,j as e,X as te}from"./index-BFfN_E8V.js";import{d as fe,D as ge,N as be,B as y,f as se,b as je}from"./Footer-Cpid9_jl.js";import{C as A,a as re}from"./card-5HKsGf-x.js";import{I as Ne}from"./input-DPeWhEbM.js";import{B as C}from"./badge-Bxp8fU6f.js";import{S as X,a as J,b as W,c as Z,d as S}from"./select-B13-KWxi.js";import{T as ae,a as ne,b as D,c as p,d as ie,e as f}from"./table-haI3wbfp.js";import{u as ye}from"./useS3Data-CgwCbkrA.js";import{d as le,g as ve,a as we}from"./image-utils-DIguPc5l.js";import{E as ke}from"./jspdf.es.min-M80bkKBH.js";import{u as Se}from"./use-mobile-DGaHsFua.js";import{S as Ce}from"./search-CkzAvxMB.js";import{F as L}from"./file-text-DAhUY_GK.js";import{T as I}from"./trophy-Btd5S85-.js";import{D as M}from"./download-CAIm9n2i.js";import{M as ee}from"./medal-snuHLjVr.js";import{E as De}from"./external-link-DMPc6kha.js";import"./index-at8pNSW4.js";import"./Combination-BcyAp330.js";import"./index-C1gbN8GN.js";import"./check-BGl2lopA.js";const oe=i=>{const u=(i==null?void 0:i.url)||(i==null?void 0:i.key)||(i==null?void 0:i.fileName)||(i==null?void 0:i.displayName);return u?ve(u):""},Fe=({pdf:i,onClose:u})=>{const m=oe(i),x=we(m),h=Se(),[v,w]=d.useState(!1);return e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 backdrop-blur-sm p-4 animate-fade-in",children:e.jsxs("div",{className:"relative w-full max-w-5xl h-[90vh] bg-background rounded-2xl overflow-hidden shadow-2xl flex flex-col border border-border",children:[e.jsxs("div",{className:"px-5 py-3 bg-gradient-to-r from-primary to-primary/90 text-white flex-shrink-0",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[e.jsx(L,{className:"w-5 h-5 flex-shrink-0"}),e.jsx("div",{className:"min-w-0",children:e.jsx("div",{className:"font-poppins font-semibold text-sm whitespace-normal break-words",children:i.title})})]}),e.jsx("div",{className:"flex-shrink-0 ml-3",children:e.jsx("button",{onClick:u,"aria-label":"Close",className:"w-8 h-8 rounded-lg bg-white/20 hover:bg-white/30 flex items-center justify-center transition-colors",children:e.jsx(te,{className:"w-4 h-4"})})})]}),e.jsxs("div",{className:"mt-3 flex items-center justify-start gap-2",children:[e.jsxs("button",{onClick:()=>le(m,i.title||"result.pdf"),className:"flex items-center gap-1.5 text-xs bg-white/20 hover:bg-white/30 px-3 py-1.5 rounded-lg transition-colors font-inter",children:[e.jsx(M,{className:"w-3.5 h-3.5"})," Download"]}),e.jsxs("a",{href:x,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-xs bg-white/20 hover:bg-white/30 px-3 py-1.5 rounded-lg transition-colors font-inter",children:[e.jsx(De,{className:"w-3.5 h-3.5"})," Open"]})]})]}),h?e.jsxs("div",{className:"relative flex flex-col flex-1 w-full min-h-0 overflow-hidden bg-background",children:[!v&&e.jsxs("div",{className:"absolute inset-0 z-10 flex flex-col items-center justify-center gap-3 bg-background/90 text-center p-4",children:[e.jsx("div",{className:"h-12 w-12 rounded-full border-4 border-primary border-t-transparent animate-spin"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-foreground",children:"Loading PDF..."}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"This may take a second on mobile."})]})]}),e.jsx("iframe",{src:`https://docs.google.com/viewer?embedded=true&url=${encodeURIComponent(x)}`,className:"flex-1 h-full w-full border-0 min-h-0",title:i.title,onLoad:()=>w(!0)})]}):e.jsx("iframe",{src:`${x}#toolbar=1`,className:"flex-1 w-full border-0 min-h-0",title:i.title})]})})},Re=({event:i})=>{const[u,m]=d.useState(!1);return e.jsx(A,{className:"border-border hover:border-primary transition-all duration-300 cursor-pointer rounded-xl",children:e.jsxs(re,{className:"p-6",children:[e.jsxs("div",{className:"flex justify-between items-center",onClick:()=>m(!u),children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-poppins text-xl font-bold text-foreground",children:i.eventName}),e.jsxs("p",{className:"font-inter text-muted-foreground text-sm",children:["Date: ",i.date," Â |Â Venue: ",i.venue]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(C,{variant:"outline",className:"font-inter text-primary border-primary/40",children:i.category}),e.jsx(se,{className:`w-4 h-4 text-muted-foreground transition-transform duration-300 ${u?"rotate-180":""}`})]})]}),e.jsx("div",{className:`transition-all duration-500 overflow-hidden ${u?"max-h-[1000px] mt-6 opacity-100":"max-h-0 opacity-0"}`,children:e.jsx("div",{className:"rounded-lg border border-border mt-6 shadow-sm bg-background/50 backdrop-blur-sm",children:e.jsxs(ae,{children:[e.jsx(ne,{className:"bg-muted/60",children:e.jsxs(D,{children:[e.jsx(p,{className:"w-16 font-poppins",children:"Pos"}),e.jsx(p,{className:"font-poppins",children:"Athlete"}),e.jsx(p,{className:"font-poppins",children:"District"}),e.jsx(p,{className:"font-poppins",children:"Discipline"}),e.jsx(p,{className:"font-poppins text-right",children:"Time"})]})}),e.jsx(ie,{children:i.results.map((x,h)=>e.jsxs(D,{className:"hover:bg-muted/40 transition-colors",children:[e.jsx(f,{className:"font-poppins font-semibold text-center",children:x.position}),e.jsx(f,{className:"font-inter",children:x.name}),e.jsx(f,{className:"font-inter",children:x.district}),e.jsx(f,{className:"font-inter",children:x.discipline}),e.jsx(f,{className:"text-right font-poppins",children:x.time})]},h))})]})})})]})})},Je=()=>{var O,V,U,H;const[i,u]=d.useState(""),[m,x]=d.useState("all"),[h,v]=d.useState("all"),[w,T]=d.useState(null),[ce,de]=d.useState({}),{data:me,loading:F,error:P}=ye(ge.results,fe),o=me,E=F,_=r=>{if(!r)return 0;const s=String(r).match(/(\d{4})/);return s?parseInt(s[1],10):0},$=d.useMemo(()=>{const r=[];if(!o||typeof o!="object")return r;if(Array.isArray(o.pdfs)){const s=o.pdfs.map((t,a)=>({...t,championship:t.championship||"Results",title:t.displayName||t.fileName||t.title||"",url:t.url||t.key,year:t.year||_(t.createdAt||o.createdAt||t.displayName||t.fileName||t.championship||"")}));return r.push({championship:"Results",pdfs:s,lastIndex:0}),r}
1return Object.entries(o).forEach(([s,t],a)=>{if(!t||typeof t!="object")return;const n=Array.isArray(t.result_pdfs)?t.result_pdfs:null;if(!n)return;const c=n.map(l=>({...l,championship:s,title:l.displayName||l.fileName||l.title||"",url:l.url||l.key,year:l.year||(typeof t.year<"u"?t.year:_(t.createdAt||s))}));c.length&&r.push({championship:s,pdfs:c,lastIndex:a})}),r},[o]),b=d.useMemo(()=>$.flatMap(r=>r.pdfs),[$]),xe=d.useMemo(()=>[...new Set(b.map(s=>s.year).filter(Boolean))].sort((s,t)=>Number(t)-Number(s)),[b]),ue=d.useMemo(()=>[...new Set(b.map(s=>s.district).filter(Boolean))].sort(),[b]),B=r=>{if(r.year){const s=parseInt(String(r.year),10);if(!isNaN(s))return s}if(r.date){const s=String(r.date).trim(),t=s.match(/^(\d{4})/);if(t)return parseInt(t[1],10);const a=s.match(/(\d{4})$/);if(a)return parseInt(a[1],10)}return 0},k=d.useMemo(()=>{const r=(o.recent_results||[]).filter(s=>{var l,j,g,q;const t=i.toLowerCase(),a=!t||((l=s.eventName)==null?void 0:l.toLowerCase().includes(t))||((j=s.venue)==null?void 0:j.toLowerCase().includes(t))||((g=s.category)==null?void 0:g.toLowerCase().includes(t))||((q=s.results)==null?void 0:q.some(R=>{var K,G,Q;return((K=R.name)==null?void 0:K.toLowerCase().includes(t))||((G=R.district)==null?void 0:G.toLowerCase().includes(t))||((Q=R.discipline)==null?void 0:Q.toLowerCase().includes(t))})),n=m==="all"||s.year===m;return a&&n&&h==="all"});return r.sort((s,t)=>B(t)-B(s)),r},[o,i,m,h]),N=d.useMemo(()=>b.filter(r=>{var c,l;const s=i.toLowerCase(),t=!s||((c=r.title)==null?void 0:c.toLowerCase().includes(s))||((l=r.championship)==null?void 0:l.toLowerCase().includes(s)),a=m==="all"||r.year===m,n=h==="all"||r.district===h;return t&&a&&n}),[b,i,m,h]),he=d.useMemo(()=>{const r=[],s=new Map;return N.forEach((t,a)=>{var l;const n=((l=t.championship)==null?void 0:l.trim())||"Other Results";s.has(n)||s.set(n,{pdfs:[],lastIndex:a});const c=s.get(n);c.pdfs.push(t),c.lastIndex=a}),s.forEach(({pdfs:t,lastIndex:a},n)=>{t.sort((c,l)=>{const j=parseInt(String(c.year||"0"),10);return parseInt(String(l.year||"0"),10)-j}),r.push({championship:n,pdfs:t,lastIndex:a})}),r.sort((t,a)=>{if(t.championship==="Other Results")return 1;if(a.championship==="Other Results")return-1;const n=Math.max(...t.pdfs.map(l=>parseInt(String(l.year||"0"),10))),c=Math.max(...a.pdfs.map(l=>parseInt(String(l.year||"0"),10)));return c!==n?c-n:a.lastIndex-t.lastIndex}),r},[N]),z=k.length>0,Y=N.length>0,pe=r=>{if(!r)return;const s=new ke;let t=20;const a=7,n=10,c=290;s.setFontSize(18),s.text("Kerala Athletics Results & Rankings",105,t,{align:"center"}),t+=a*2,s.setFontSize(16),s.text("Event Results",n,t),t+=a,r.recent_results.forEach((l,j)=>{s.setFontSize(14),s.setFont(void 0,"bold"),s.text(`${j+1}. ${l.eventName} (${l.category})`,n,t),t+=a,s.setFont(void 0,"normal"),s.setFontSize(12),s.text(`Date: ${l.date} | Venue: ${l.venue}`,n,t),t+=a,s.setFont(void 0,"bold"),s.text("Pos",n,t),s.text("Athlete",n+15,t),s.text("District",n+75,t),s.text("Discipline",n+125,t),s.text("Time",n+170,t),s.setFont(void 0,"normal"),t+=a,l.results.forEach(g=>{s.text(String(g.position),n,t),s.text(g.name,n+15,t),s.text(g.district,n+75,t),s.text(g.discipline,n+125,t),s.text(g.time,n+170,t),t+=a,t>c&&(s.addPage(),t=n)}),t+=a,t>c&&(s.addPage(),t=n)}),s.save("Kerala_Athletics_Results.pdf")};return e.jsxs("div",{className:"min-h-screen font-inter",children:[e.jsx(be,{}),e.jsxs("main",{children:[e.jsx("section",{className:"bg-gradient-hero py-16",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-4xl mx-auto text-center animate-fade-in",children:[e.jsx("h1",{className:"font-poppins text-2xl sm:text-3xl md:text-5xl font-bold text-primary-foreground mb-4 whitespace-nowrap",children:"Results & Rankings"}),e.jsx("p",{className:"font-inter text-lg text-primary-foreground/90 mb-8",children:"Access complete results, rankings, and official PDF reports"}),e.jsx("div",{className:"max-w-2xl mx-auto mb-4",children:e.jsxs("div",{className:"relative",children:[e.jsx(Ce,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-primary-foreground
1/60"}),e.jsx(Ne,{type:"text",placeholder:"Search by event, athlete name, district...",value:i,onChange:r=>u(r.target.value),className:"pl-12 h-14 bg-primary-foreground/10 border-primary-foreground/20 text-primary-foreground placeholder:text-primary-foreground/60 font-inter"})]})}),e.jsxs("div",{className:"flex flex-row gap-3 justify-center max-w-2xl mx-auto items-center",children:[e.jsx("div",{className:"flex items-center flex-1",children:e.jsxs(X,{value:m,onValueChange:x,children:[e.jsx(J,{className:"h-11 bg-primary-foreground/10 border-primary-foreground/20 text-primary-foreground font-inter",children:e.jsx(W,{placeholder:"Filter by Year"})}),e.jsxs(Z,{children:[e.jsx(S,{value:"all",children:"All Years"}),xe.map(r=>e.jsx(S,{value:r,children:r},r))]})]})}),e.jsx("div",{className:"flex-1",children:e.jsxs(X,{value:h,onValueChange:v,children:[e.jsx(J,{className:"h-11 bg-primary-foreground/10 border-primary-foreground/20 text-primary-foreground font-inter",children:e.jsx(W,{placeholder:"Filter by District"})}),e.jsxs(Z,{children:[e.jsx(S,{value:"all",children:"All Districts"}),ue.map(r=>e.jsx(S,{value:r,children:r},r))]})]})}),(m!=="all"||h!=="all"||i)&&e.jsxs(y,{variant:"outline",onClick:()=>{x("all"),v("all"),u("")},className:"h-11 border-white/40 text-white hover:bg-white/10 font-inter bg-transparent",children:[e.jsx(te,{className:"w-4 h-4 mr-1"})," Clear"]})]})]})})}),E?e.jsx("section",{className:"py-12 bg-muted/30 border-b border-border/40",children:e.jsxs("div",{className:"container mx-auto px-4 text-center py-10",children:[e.jsx("div",{className:"animate-spin rounded-full h-10 w-10 border-b-2 border-primary mx-auto mb-3"}),e.jsx("p",{className:"text-muted-foreground font-inter text-sm",children:"Loading documents..."})]})}):Y?e.jsx("section",{className:"py-12 bg-muted/30 border-b border-border/40",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"flex justify-between items-center mb-6",children:[e.jsxs("h2",{className:"font-poppins text-2xl font-bold text-foreground flex items-center gap-2",children:[e.jsx(L,{className:"w-6 h-6 text-primary"}),"Result PDFs"]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[N.length," document",N.length!==1?"s":""]})]}),e.jsx("div",{className:"space-y-4",children:he.map(({championship:r,pdfs:s})=>{const t=!!ce[r];return e.jsxs(A,{className:`border border-border hover:border-primary/30 transition-all duration-300 overflow-hidden bg-card shadow-sm ${t?"ring-1 ring-primary/20 shadow-md border-primary/35":""}`,children:[e.jsxs("button",{onClick:()=>{de(a=>({...a,[r]:!a[r]}))},className:"relative w-full flex flex-col sm:flex-row items-start sm:items-center justify-between p-5 sm:p-6 text-left font-poppins focus:outline-none focus:ring-0 group hover:bg-muted/10 transition-colors",children:[e.jsxs("div",{className:"flex items-center gap-3.5 min-w-0 pr-4 w-full",children:[e.jsx(I,{className:`w-6 h-6 text-primary flex-shrink-0 transition-transform duration-300 ${t?"scale-110":""}`}),e.jsx("h3",{className:"font-poppins text-base sm:text-lg font-semibold text-foreground leading-snug whitespace-normal w-full",children:r})]}),e.jsxs("div",{className:"mt-2 sm:mt-0 flex items-center w-full sm:w-auto justify-center sm:justify-end gap-3",children:[e.jsxs(C,{variant:"secondary",className:"text-[11px] whitespace-nowrap px-2 py-0.5 rounded-full font-semibold sm:text-xs sm:px-2.5 sm:py-0.5",children:[s.length," doc",s.length!==1?"s":""]}),e.jsx(se,{className:`w-6 h-6 text-muted-foreground transition-transform duration-300 flex-shrink-0 ${t?"rotate-180 text-primary":""}`})]})]}),t&&e.jsx("div",{className:"border-t border-border bg-muted/5 p-4 space-y-3 animate-fade-in",children:s.map((a,n)=>e.jsxs("div",{className:"group flex flex-col md:flex-row md:items-center justify-between gap-4 p-4 rounded-xl border border-border/80 hover:border-primary/20 bg-card hover:bg-muted/[0.02] hover:shadow-sm transition-all duration-300",children:[e.jsxs("div",{className:"flex items-start md:items-center gap-3.5 min-w-0 flex-1",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0 group-hover:bg-primary/20 transition-colors",children:e.jsx(L,{className:"w-5.5 h-5.5 text-primary"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h4",{className:"font-poppins text-sm sm:text-base font-bold text-foreground leading-snug mb-1",children:a.title}),e.jsxs("div",{className:"flex flex-wrap gap-1.5 items-center",children:[a.year&&e.jsx(C,{variant:"outline",className:"text-[10px] px-2 py-0.5 border-primary/20 text-primary font-medium bg-primary/[0.02]",children:a.year}),a.district&&e.jsx(C,{variant:"outline",className:"text-[10px] px-2 py-0.5 border-muted-foreground
1/20 text-muted-foreground font-medium",children:a.district})]})]})]}),e.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0 w-full md:w-auto",children:[e.jsx(y,{size:"sm",className:"flex-1 md:flex-none h-9 px-4 text-xs bg-primary hover:bg-primary/90 font-inter",onClick:()=>T(a),children:"View"}),e.jsx(y,{size:"icon",variant:"outline",className:"h-9 w-9 border-border hover:border-primary/30 flex-shrink-0",onClick:()=>le(oe(a),a.title||"result.pdf"),children:e.jsx(M,{className:"w-4 h-4"})})]})]},n))})]},r)})})]})}):null,F?e.jsx("section",{className:"py-14",children:e.jsxs("div",{className:"container mx-auto px-4 text-center py-20",children:[e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),e.jsx("p",{className:"text-muted-foreground font-inter",children:"Fetching latest results..."})]})}):P?e.jsx("section",{className:"py-14",children:e.jsxs("div",{className:"container mx-auto px-4 text-center py-20 border border-dashed border-destructive/20 rounded-2xl bg-destructive/5",children:[e.jsxs("p",{className:"font-inter text-destructive mb-4",children:["Error loading results: ",P]}),e.jsx(y,{onClick:()=>window.location.reload(),variant:"outline",children:"Retry"})]})}):z?e.jsx("section",{className:"py-14",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"flex justify-between items-center mb-8",children:[e.jsxs("h2",{className:"font-poppins text-3xl font-bold text-foreground",children:["Event Results ",e.jsx(ee,{className:"text-yellow-500 w-5 h-5 inline"})]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[k.length," result",k.length!==1?"s":""," found"]})]}),e.jsx("div",{className:"space-y-6",children:k.map((r,s)=>e.jsx(Re,{event:r},s))})]})}):null,!F&&!E&&!Y&&!z&&e.jsx("section",{className:"py-20",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"text-center py-16 border border-dashed border-border rounded-2xl bg-background/60 max-w-2xl mx-auto",children:[e.jsx(ee,{className:"w-14 h-14 mx-auto mb-4 text-muted-foreground/30"}),e.jsx("p",{className:"font-poppins text-lg font-semibold text-muted-foreground mb-2",children:"No Results Found"}),e.jsx("p",{className:"font-inter text-sm text-muted-foreground",children:"No official PDF documents or detailed event results match your search and filter criteria. Try adjusting your search query or filters."})]})})}),e.jsx("section",{className:"py-20 bg-background border-t border-border/40",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-10",children:[e.jsx("h2",{className:"font-poppins text-3xl font-bold text-foreground mb-2",children:"District Medal Tally"}),e.jsx("p",{className:"text-muted-foreground font-inter text-sm",children:"Summary of medal distribution across all participating districts"})]}),e.jsx(A,{className:"border border-border/60 shadow-sm rounded-xl overflow-hidden",children:e.jsx(re,{className:"p-0",children:!o.district_medals||o.district_medals.length===0?e.jsxs("div",{className:"text-center py-12 text-muted-foreground font-inter",children:[e.jsx(I,{className:"w-10 h-10 mx-auto mb-3 opacity-20"}),e.jsx("p",{children:"Medal tally will be updated as results are verified."})]}):e.jsx("div",{className:"overflow-x-auto",children:e.jsxs(ae,{children:[e.jsx(ne,{className:"bg-muted/40 border-b border-border/60",children:e.jsxs(D,{children:[e.jsx(p,{className:"font-poppins text-sm uppercase tracking-wide text-muted-foreground",children:"Rank"}),e.jsx(p,{className:"font-poppins text-sm uppercase tracking-wide text-muted-foreground",children:"District"}),e.jsx(p,{className:"text-center font-poppins text-sm uppercase tracking-wide text-muted-foreground",children:"Gold"}),e.jsx(p,{className:"text-center font-poppins text-sm uppercase tracking-wide text-muted-foreground",children:"Silver"}),e.jsx(p,{className:"text-center font-poppins text-sm uppercase tracking-wide text-muted-foreground",children:"Bronze"}),e.jsx(p,{className:"text-center font-poppins text-sm uppercase tracking-wide text-muted-foreground",children:"Total"})]})}),e.jsx(ie,{children:o.district_medals.map((r,s)=>e.jsxs(D,{className:`transition-colors ${s%2===0?"bg-muted/20":"bg-background"} hover:bg-muted/40`,children:[e.jsx(f,{className:"font-poppins font-semibold text-center",children:r.rank}),e.jsx(f,{className:"font-inter font-medium",children:r.district}),e.jsx(f,{className:"text-center font-poppins",children:r.gold}),e.jsx(f,{className:"text-center font-poppins",children:r.silver}),e.jsx(f,{className:"text-center font-poppins",children:r.bronze}),e.jsx(f,{className:"text-center font-poppins font-bold",children:r.total})]},r.rank||s))})]})})})}),((O=o.district_medals)==null?void 0:O.length)>0&&e.jsx("div",{className:"mt-6 text-center text-xs text-muted-foreground font-inter",children:"* Data updated as per latest verified results"})]})})}),e.jsx("section",{className:"py-16 bg-muted/20",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[e.jsx(I,{className:"w-16 h-16 text-secondary mx-auto mb-6 opacity-40"}),e.jsx("h2",{className:"font-poppins text-3xl font-bold mb-4 text-foreground",children:((V=o.recent_results)==null?void 0:V.length)>0?"State Records & Achievements":"Comprehensive Reports Pending Verification"}),e.jsx("p",{className:"font-inter text-muted-foreground mb-8",children:((U=o.recent_results)==null?void 0:U.length)>0?"View complete records, personal bests, and download official reports.":"The official consolidated reports and achievement summaries will be available for download once the current season's results are fully verified."}),((H=o.recent_results)==null?void 0:H.length)>0&&e.jsxs(y,{size:"lg",className:"bg-gradient-hero font-inter shadow-lg hover:shadow-xl transition-all",onClick:()=>pe(o),children:[e.jsx(M,{className:"w-4 h-4 mr-2"})," Download Official Results"]})]})})})]}),e.jsx(je,{}),w&&e.jsx(Fe,{pdf:w,onClose:()=>T(null)})]})};export{Je 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.