1import{r as j,j as e,L as l,B as p}from"./index-BWKVl_8M.js";import{C as c,a as d}from"./card-249XDqvi.js";import{B as w}from"./badge-5lgR0cpA.js";import{L as g,S as N,k as y,d as F}from"./SEOHead-DxGnaOqv.js";import{u as v,b as L}from"./useFundraiseGroups-DEgsKCF7.js";import{A as _}from"./arrow-left-BwvT5i13.js";import{m as r}from"./proxy-CQRMKxsv.js";import{T as u}from"./trophy-BcHYmQPE.js";import{M as b}from"./map-pin-GkS6aPAQ.js";import{S as E}from"./star-CW-vI8cx.js";import"./index-tpdW2Qs0.js";import"./useQuery-D48NDIgt.js";import"./useMutation-Wui2UGTd.js";const m={initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6}},o=["#FFD700","#C0C0C0","#CD7F32"],k=["ð¥","ð¥","ð¥"];function U(){const{data:x=[]}=v("approved"),{data:h=[]}=L(),n=j.useMemo(()=>{const a={};return h.forEach(t=>{a[t.group_id]=(a[t.group_id]||0)+Number(t.total_amount)}),x.map(t=>({...t,totalEarnings:a[t.id]||0})).sort((t,s)=>s.totalEarnings-t.totalEarnings)},[x,h]),i=n.slice(0,3);return n.slice(3),e.jsxs(g,{children:[e.jsx(N,{title:"Fundraise Leaderboard | EventLab",description:"See which groups are raising the most money through EventLab volunteer fundraising.",canonicalPath:"/fundraise/leaderboard",schemas:[y("Fundraise Leaderboard","See which groups are raising the most money through EventLab volunteer fundraising.","/fundraise/leaderboard"),F([{name:"Home",path:"/"},{name:"Fundraise",path:"/fundraise"},{name:"Leaderboard",path:"/fundraise/leaderboard"}])]}),e.jsxs("section",{className:"relative bg-[hsl(213,80%,10%)] py-16 md:py-24 overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-[#39FF14]/5 via-transparent to-transparent"}),e.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[e.jsxs(l,{to:"/fundraise",className:"text-[#39FF14] hover:text-[#00E676] text-sm font-medium mb-6 inline-flex items-center",children:[e.jsx(_,{className:"mr-1 h-4 w-4"})," Back to Fundraise"]}),e.jsxs(r.div,{...m,className:"text-center",children:[e.jsx(u,{className:"h-16 w-16 mx-auto mb-4 text-[#39FF14] drop-shadow-[0_0_20px_rgba(57,255,20,0.4)]"}),e.jsx("h1",{className:"text-3xl md:text-6xl font-black text-white mb-4",children:"Fundraise Leaderboard"}),e.jsxs("p",{className:"text-white/70 text-lg max-w-2xl mx-auto",children:["The top-performing groups raising money through EventLab. Think your group can compete? ",e.jsx(l,{to:"/fundraise",className:"text-[#39FF14] underline hover:text-[#00E676]",children:"Apply now"}),"."]})]})]})]}),i.length>0&&e.jsx("section",{className:"bg-[hsl(213,80%,10%)] pb-16",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("div",{className:"flex flex-col md:flex-row items-end justify-center gap-4 md:gap-6 max-w-3xl mx-auto",children:[i[1],i[0],i[2]].filter(Boolean).map((a,t)=>{const s=t===0?1:t===1?0:2,f=["h-48 md:h-64","h-36 md:h-48","h-28 md:h-40"];return e.jsx(r.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.15,duration:.6},className:"flex-1 w-full md:w-auto",children:e.jsx(c,{className:`bg-white/5 border-white/10 overflow-hidden ${s===0?"border-[#FFD700]/40 shadow-[0_0_30px_rgba(255,215,0,0.15)]":""}`,children:e.jsxs(d,{className:`p-5 text-center flex flex-col items-center justify-end ${f[s]}`,children:[e.jsx("span",{className:"text-4xl mb-2",children:k[s]}),e.jsx("p",{className:"text-white font-black text-base md:text-lg mb-1 line-clamp-2",children:a.org_name}),e.jsxs("p",{className:"text-white/50 text-xs mb-2",children:[e.jsx(b,{className:"inline h-3 w-3 mr-0.5"}),a.city,", ",a.state]}),e.jsxs("p",{className:"text-2xl md:text-3xl font-black",style:{color:o[s]},children:["$",a.totalEarnings.toLocaleString()]}),e.jsx(w,{className:"mt-2 border-0 text-xs",style:{backgroundColor:`${o[s]}20`,color:o[s]},children:a.org_type.replace(/-/g," ")})]})})},a.id)})})})}),e.jsx("section",{className:"bg-[hsl(213,80%,10%)] py-12 border-t border-white/10",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[e.jsx(r.h2,{...m,className:"text-2xl font-black text-white mb-6",children:"Full Rankings"}),n.length===0?e.jsx(c,{className:"bg-white/5 border-white/10",children:e.jsxs(d,{className:"py-12 text-center text-white/50",children:[e.jsx(u,{className:"h-10 w-10 mx-auto mb-3 opacity-30"}),e.jsx("p",{children:"No groups on the leaderboard yet. Be the first!"}),e.jsx(l,{to:"/fundraise",children:e.jsx(p,{className:"mt-4 bg-[#39FF14] text-[#0A2540] font-bold border-0",children:"Apply Now"})})]})}):e.jsx("div",{className:"space-y-3",children:n.map((a,t)=>e.jsx(r.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:Math.min(t*.05,.5)},children:e.jsx(c,{className:`bg-white/5 border-white/10 ${t<3?"border-l-4":""}`,style:t<3?{borderLeftColor:o[t]}:{},children:e.jsxs(d,{className:"py-4 px-5 flex items-center gap-4",children:[e.jsx("span",{className:`text-lg font-black w-8 text-center ${t<3?"":"text-white/40"}`,style:t<3?{color:o[t]}:{},children:t+1}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-white font-bold truncate",children:a.org_name}),e.jsxs("p",{className:"text-white/40 text-xs",children:[e.jsx(b,{className:"inline h-3 w-3 mr-0.5"}),a.city,", ",a.state," · ",a.org_type.replace(/-/g," ")]})]}),e.jsxs("p",{className:"text-[#39FF14] font-black text-lg",children:["$",a.totalEarnings.toLocaleStr
1ing()]})]})})},a.id))})]})}),e.jsx("section",{className:"bg-[hsl(213,80%,10%)] py-16 border-t border-white/10",children:e.jsx("div",{className:"container mx-auto px-4 text-center",children:e.jsxs(r.div,{...m,children:[e.jsx(E,{className:"h-10 w-10 mx-auto mb-4 text-[#39FF14]"}),e.jsx("h2",{className:"text-2xl md:text-4xl font-black text-white mb-4",children:"Want to See Your Group on the Board?"}),e.jsx("p",{className:"text-white/60 max-w-lg mx-auto mb-6",children:"Apply now and start raising real money for your organization."}),e.jsx(l,{to:"/fundraise",children:e.jsx(p,{size:"lg",className:"bg-[#39FF14] text-[#0A2540] font-bold border-0 hover:bg-[#00E676] shadow-[0_0_20px_rgba(57,255,20,0.3)]",children:"Apply to Fundraise"})})]})})})]})}export{U 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.