1import{j as e}from"./ui-vendor-BYzOs8zU.js";import{r as o,u as ge}from"./react-vendor-B7KhMDMw.js";import{C as v,b as Z,c as ee,d as te,a as q}from"./card-BXpeYW9o.js";import{T as ve,a as je,b as se,c as w,d as Ne,e as _}from"./table-BM35uXYT.js";import{s as x,P as ye,B as we,a as _e}from"./index-B-I15DOv.js";import{S as Se,a as ke,b as Ve,c as Pe,d as Te}from"./select-Cbbhry4n.js";import{H as Ce}from"./Header-CEZNr4Rg.js";import{F as Le}from"./Footer-caR_IfqU.js";import{P as Ae}from"./PageTitle-BfSb8w8R.js";import{e as B,ac as Oe,d as Fe,ad as $e,I as ze,h as F,f as ae,A as Me,S as K}from"./icons-vendor-CZhJV7MC.js";import{a as Re}from"./date-vendor-Ct8ks35R.js";import{V as Ie}from"./VaultLeaderboard-IxtsTZou.js";import{u as De}from"./useVaultConfetti-CHJch12T.js";import{S as We}from"./Seo-BNCiZkEs.js";import{R as He,A as Ee,C as Ge,X as Je,Y as Ue,T as Ye,L as qe,a as re,b as le}from"./chart-vendor-Do0sTqhr.js";import"./wallet-adapters-AX5j4BTX.js";import"./solana-vendor-D3FX_7qE.js";import"./data-vendor-A1qslbc5.js";import"./use-mobile-ChOLqvqP.js";import"./arrayUtils-DlJxLAwL.js";const Be=()=>{const[p,h]=o.useState([]),[r,i]=o.useState(null),[j,k]=o.useState(50);o.useEffect(()=>{$(),I();const s=x.channel("vault-winners-ticker").on("postgres_changes",{event:"*",schema:"public",table:"vault_jackpot_payouts"},()=>{$()}).subscribe();return()=>{x.removeChannel(s)}},[]);const I=async()=>{try{const{count:s,error:m}=await x.from("tournament_sessions").select("*",{count:"exact",head:!0}).eq("status","completed").not("id","like","sp-%");if(m)throw m;const N=Math.ceil(((s||0)+1)/50)*50;k(N)}catch{k(50)}},$=async()=>{try{const{data:s,error:m}=await x.from("vault_jackpot_payouts").select("vault_number, session_number, paid_at").order("vault_number",{ascending:!1}).limit(1).maybeSingle();if(m)throw m;if(!s){h([]),i(null);return}const{data:g,error:N}=await x.from("vault_jackpot_payouts").select("wallet_address, display_name, vault_rank, payout_amount").eq("vault_number",s.vault_number).order("vault_rank",{ascending:!0}).limit(10);if(N)throw N;const H=(g==null?void 0:g.reduce((E,G)=>E+Number(G.payout_amount),0))||0;i({vault_number:s.vault_number,session_number:s.session_number,total_payout:H,paid_at:s.paid_at}),h(g||[])}catch{h([]),i(null)}},D=s=>`${s.slice(0,4)}...${s.slice(-4)}`,V=s=>s===1?e.jsx(Oe,{className:"w-3 h-3 md:w-5 md:h-5 text-gold",fill:"currentColor"}):s===2?e.jsx(Fe,{className:"w-3 h-3 md:w-4 md:h-4 text-primary",fill:"currentColor"}):s===3?e.jsx($e,{className:"w-3 h-3 md:w-4 md:h-4 text-accent"}):null,W=s=>s===1?"text-gold":s===2?"text-primary":s===3?"text-accent":"text-muted-foreground",P=p.length>0?[...p,...p]:[];return p.length===0||!r?e.jsxs("div",{className:"relative z-10 w-full overflow-hidden bg-card/30 backdrop-blur-md border-y-2 border-gold/40 py-1.5 md:py-3",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-gold/10 via-primary/10 to-gold/10"}),e.jsxs("div",{className:"relative z-10 flex items-center justify-center gap-1.5 md:gap-3",children:[e.jsx(B,{className:"w-3 h-3 md:w-5 md:h-5 text-gold animate-pulse"}),e.jsxs("span",{className:"font-bold text-xs md:text-lg text-gold",children:["No vault winners yet - First vault releases at session #",j]}),e.jsx(B,{className:"w-3 h-3 md:w-5 md:h-5 text-gold animate-pulse"})]})]}):e.jsxs("div",{className:"relative z-10 w-full overflow-hidden bg-card/30 backdrop-blur-md border-y-2 border-gold/40 py-1.5 md:py-3 shadow-[0_0_30px_rgba(234,179,8,0.2)]",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-gold/10 via-primary/10 to-gold/10 animate-pulse"}),e.jsx("div",{className:"relative z-10 flex items-center",children:e.jsx("div",{className:"flex gap-4 md:gap-8 animate-[scroll_30s_linear_infinite]",children:P.map((s,m)=>{m%p.length;const g=(m+1)%p.length===0;return e.jsxs("div",{className:"flex items-center gap-4 md:gap-8",children:[e.jsxs("div",{className:"flex items-center gap-1.5 md:gap-3 whitespace-nowrap px-2 md:px-4",children:[e.jsxs("div",{className:"flex items-center gap-1 md:gap-2",children:[V(s.vault_rank),e.jsxs("span",{className:`font-bold text-sm md:text-lg ${W(s.vault_rank)}`,children:["#",s.vault_rank]})]}),e.jsx("span",{className:"font-semibold text-xs md:text-base text-gold",children:s.display_name||"Anonymous"}),e.jsx("span",{className:"text-[10px] md:text-sm text-muted-foreground font-mono",children:D(s.wallet_address)}),e.jsxs("span",{className:"text-gold font-bold text-sm md:text-lg",children:["+",Number(s.payout_amount).toFixed(4)," SOL"]}),e.jsx("div",{className:"w-px h-4 md:h-6 bg-border"})]}),g&&e.jsxs("div",{className:"flex items-center gap-1.5 md:gap-3 whitespace-nowrap px-2 md:px-4",children:[e.jsx(B,{className:"w-3 h-3 md:w-5 md:h-5 text-gold animate-pulse"}),e.jsxs("span",{className:"font-bold text-xs md:text-lg",children:[e.jsxs("span",{className:"text-primary",children:["Vault #",r.vault_number," Leaderboard"]})," ⢠",e.jsxs("span",{className:"text-gold",children:[r.total_payout.toFixed(4)," SOL"]})," ⢠",e.jsx("span",{className:"text-muted-foreground text-[10px] md:text-base",children:Re(new Date(r.paid_at),"MMM dd, yyyy")})]}),e.jsx("div",{className:"w-px h-4 md:h-6 bg-border"})]},`vault-info-${m}`)]},`winner-${s.wallet_address}-${m}`)})})}),e.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-10 md:w-20 bg-gradient-to-r from-card/30 to-transparent pointer-events-none z-20"}),e.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-10 md:w-20 bg-gradient-to-l from-card/30 to-transparent pointer-events-none z-20"})]})},Ke=()=>
1{const[p,h]=o.useState([]);return o.useEffect(()=>{const r=Array.from({length:25},(i,j)=>({id:j,startX:Math.random()*100,startY:Math.random()*100,size:Math.random()*8+4,duration:Math.random()*8+6,delay:Math.random()*4,angle:Math.random()*360}));h(r)},[]),e.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[p.map((r,i)=>{const j=i%3===0;return e.jsx("div",{className:"absolute",style:{left:`${r.startX}%`,top:`${r.startY}%`,animation:`float-diagonal-${i%4+1} ${r.duration}s ease-in-out ${r.delay}s infinite`},children:e.jsx(ze,{className:j?"text-green-400/60 animate-pulse":"text-green-500/40",style:{width:`${r.size}px`,height:`${r.size}px`,filter:j?"drop-shadow(0 0 4px rgba(74, 222, 128, 0.6))":void 0}})},r.id)}),p.slice(0,12).map((r,i)=>e.jsx("div",{className:"absolute rounded-full bg-gradient-to-br from-green-300/40 to-green-500/20",style:{left:`${(r.startX+30)%100}%`,top:`${(r.startY+30)%100}%`,width:`${r.size/2}px`,height:`${r.size/2}px`,animation:`float-diagonal-${i%4+1} ${r.duration*1.2}s ease-in-out ${r.delay+1}s infinite, pulse-glow ${r.duration/2}s ease-in-out infinite`,boxShadow:"0 0 12px rgba(74, 222, 128, 0.7)"}},`orb-${r.id}`))]})},ft=()=>{const p=ge(),[h,r]=o.useState([]),[i,j]=o.useState(!0),[k,I]=o.useState(0),[$,D]=o.useState(0),[V,W]=o.useState(0),[P,s]=o.useState(0),[m,g]=o.useState(0),[N,H]=o.useState(0),[E,G]=o.useState(1),[y,ne]=o.useState(window.innerWidth<640),[X,oe]=o.useState(11);De(m,!i);const T=o.useRef(null);o.useEffect(()=>{const t=()=>ne(window.innerWidth<640);return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),o.useEffect(()=>{const t=async(l=0)=>{try{const{data:b}=await x.rpc("get_completed_sessions_count"),f=b||0;g(f);const n=Math.max(1,Math.floor(f/50)+1);G(n);const[d,C]=await Promise.all([x.from("progressive_vault").select("total_amount").eq("competition_number",0).maybeSingle(),x.from("vault_jackpot_payouts").select("vault_number").order("vault_number",{ascending:!1})]);if(d.data&&H(Number(d.data.total_amount)),C.error)throw C.error;const L=C.data,S=[...new Set((L==null?void 0:L.map(c=>c.vault_number))||[])];D(S.length);const A=S.map(async c=>{const Y=c*50,[z,xe,ue]=await Promise.all([x.from("vault_leaderboard").select("*").eq("vault_number",c).order("vault_points",{ascending:!1}).order("vault_wins",{ascending:!1}).order("vault_winnings",{ascending:!1}).order("vault_tournaments",{ascending:!1}).limit(10),x.from("vault_jackpot_payouts").select("wallet_address, payout_amount").eq("vault_number",c),x.from("progressive_vault_releases").select("amount_released, release_timestamp").eq("released_at_session_number",Y).maybeSingle()]),pe=z.data,M=xe.data,Q=ue.data,he=(M||[]).reduce((R,O)=>R+Number(O.payout_amount||0),0),be=(pe||[]).map(R=>{const O=M==null?void 0:M.find(fe=>fe.wallet_address===R.wallet_address);return{...R,vault_payout:(O==null?void 0:O.payout_amount)||null}});return{vaultNumber:c,leaderboard:be,releaseInfo:Q?{...Q,actualPaidOut:he}:void 0}}),J=await Promise.all(A);r(J);const ce=J.reduce((c,Y)=>{var z;return c+(((z=Y.releaseInfo)==null?void 0:z.actualPaidOut)||0)},0);I(ce);const U=J.filter(c=>c.releaseInfo&&c.releaseInfo.actualPaidOut>0).map(c=>c.releaseInfo.actualPaidOut);U.length>0&&(W(Math.max(...U)),s(Math.min(...U)))}catch{if((l??0)<3){const f=(l??0)+1,n=2e3*f;setTimeout(()=>t(f),n);return}}finally{j(!1)}};t();const a=()=>{T.current&&clearTimeout(T.current),T.current=setTimeout(()=>{t()},3e3)},u=x.channel("vault-history-updates").on("postgres_changes",{event:"*",schema:"public",table:"vault_leaderboard"},a).on("postgres_changes",{event:"*",schema:"public",table:"vault_jackpot_payouts"},a).on("postgres_changes",{event:"*",schema:"public",table:"progressive_vault"},a).on("postgres_changes",{event:"*",schema:"public",table:"tournament_sessions"},a).subscribe();return()=>{T.current&&clearTimeout(T.current),x.removeChannel(u)}},[]);const ie=(t,a=!1)=>a&&y?t.slice(-6):`${t.slice(0,4)}...${t.slice(-4)}`,de=t=>t&&t.replace(/ð¤\s*/g,"").replace(/\s*\(AI\)/g,"").trim()||"Player",me=(t,a)=>{const u={2:[66.67,33.33],3:[54.55,27.27,18.18],4:[48,24,16,12],5:[43.79,21.9,14.6,10.95,8.76],6:[40.82,20.41,13.61,10.2,8.16,6.8],7:[38.57,19.29,12.86,9.64,7.71,6.43,5.51],8:[36.79,18.4,12.26,9.2,7.36,6.13,5.26,4.6],9:[35.35,17.68,11.78,8.84,7.07,5.89,5.05,4.42,3.93],10:[34.15,17.07,11.38,8.54,6.83,5.69,4.88,4.27,3.79,3.41],11:[33.11,16.56,11.04,8.28,6.62,5.52,4.73,4.14,3.68,3.31]};return(u[Math.min(t,11)]||u[11]).map((b,f)=>({rank:f+1,percentage:b,amount:a*.75*(b/100)}))};return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(ye,{}
1),e.jsx(We,{title:"J1.JACKPOT History Past Vault Winners",description:"Browse past J1.JACKPOT vault distributions, top vault-point earners, and historical payouts across 50-session cycles.",path:"/jackpot-history",jsonLd:{"@context":"https://schema.org","@type":"CollectionPage",name:"J1.JACKPOT History",description:"Historical record of J1.JACKPOT progressive vault distributions and top vault-point earners across 50-session cycles.",url:"https://j1blackjack.com/jackpot-history"}}),e.jsx(Ce,{}),e.jsx(Be,{}),e.jsxs("main",{className:"flex-1 container mx-auto px-4 py-8 relative z-10 overflow-x-hidden",children:[e.jsxs("div",{className:"mb-8 text-center",children:[e.jsx(Ae,{title:"J1.VAULT HISTORY"}),e.jsx("p",{className:"text-sm sm:text-lg text-muted-foreground",children:"Complete history of all progressive vault releases every 50 sessions"})]}),e.jsxs("div",{className:"grid grid-cols-4 gap-2 sm:gap-4 mb-8",children:[e.jsx(v,{className:"bg-card/40 backdrop-blur-md border-2 hover:scale-[1.02] transition-all duration-300 stat-tile-primary",style:{borderColor:"hsl(var(--primary))"},children:e.jsxs("div",{className:"h-full p-2 sm:p-4 md:p-6 flex flex-col items-center justify-center text-center",children:[e.jsx("div",{className:"text-xs sm:text-2xl md:text-2xl lg:text-3xl font-bold text-primary whitespace-nowrap",children:i?e.jsx(F,{className:"w-4 h-4 sm:w-6 sm:h-6 md:w-8 md:h-8 animate-spin mx-auto"}):$}),e.jsxs("div",{className:"text-[0.5rem] sm:text-sm md:text-xs lg:text-sm font-medium text-primary/70",children:[e.jsx("span",{className:"sm:hidden",children:"Vaults"}),e.jsx("span",{className:"hidden sm:inline",children:"Total Vaults"})]})]})}),e.jsx(v,{className:"bg-card/40 backdrop-blur-md border-2 hover:scale-[1.02] transition-all duration-300 stat-tile-accent",style:{borderColor:"hsl(var(--accent))"},children:e.jsxs("div",{className:"h-full p-2 sm:p-4 md:p-6 flex flex-col items-center justify-center text-center",children:[e.jsx("div",{className:"text-xs sm:text-2xl md:text-xl lg:text-2xl font-bold text-accent whitespace-nowrap",children:i?e.jsx(F,{className:"w-4 h-4 sm:w-6 sm:h-6 md:w-8 md:h-8 animate-spin mx-auto"}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"sm:hidden",children:k.toFixed(2)}),e.jsxs("span",{className:"hidden sm:inline",children:[k.toFixed(4)," SOL"]})]})}),e.jsxs("div",{className:"text-[0.5rem] sm:text-sm md:text-xs lg:text-sm font-medium text-accent/70",children:[e.jsx("span",{className:"sm:hidden",children:"Total"}),e.jsx("span",{className:"hidden sm:inline",children:"Total Distributed"})]})]})}),e.jsx(v,{className:"bg-card/40 backdrop-blur-md border-2 hover:scale-[1.02] transition-all duration-300 stat-tile-orange",style:{borderColor:"hsl(30, 100%, 35%)"},children:e.jsxs("div",{className:"h-full p-2 sm:p-4 md:p-6 flex flex-col items-center justify-center text-center",children:[e.jsx("div",{className:"text-xs sm:text-2xl md:text-xl lg:text-2xl font-bold whitespace-nowrap",style:{color:"hsl(30, 100%, 35%)"},children:i?e.jsx(F,{className:"w-4 h-4 sm:w-6 sm:h-6 md:w-8 md:h-8 animate-spin mx-auto"}):V>0?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"sm:hidden",children:V.toFixed(2)}),e.jsxs("span",{className:"hidden sm:inline",children:[V.toFixed(4)," SOL"]})]}):"-"}),e.jsxs("div",{className:"text-[0.5rem] sm:text-sm md:text-xs lg:text-sm font-medium",style:{color:"hsl(30, 100%, 35%, 0.7)"},children:[e.jsx("span",{className:"sm:hidden",children:"High"}),e.jsx("span",{className:"hidden sm:inline",children:"Highest Payout"})]})]})}),e.jsx(v,{className:"bg-card/40 backdrop-blur-md border-2 hover:scale-[1.02] transition-all duration-300 stat-tile-yellow",style:{borderColor:"hsl(45, 100%, 40%)"},children:e.jsxs("div",{className:"h-full p-2 sm:p-4 md:p-6 flex flex-col items-center justify-center text-center",children:[e.jsx("div",{className:"text-xs sm:text-2xl md:text-xl lg:text-2xl font-bold whitespace-nowrap",style:{color:"hsl(45, 100%, 40%)"},children:i?e.jsx(F,{className:"w-4 h-4 sm:w-6 sm:h-6 md:w-8 md:h-8 animate-spin mx-auto"}):P>0?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"sm:hidden",children:P.toFixed(2)}),e.jsxs("span",{className:"hidden sm:inline",children:[P.toFixed(4)," SOL"]})]}):"-"}),e.jsxs("div",{className:"text-[0.5rem] sm:text-sm md:text-xs lg:text-sm font-medium",style:{color:"hsl(45, 100%, 40%, 0.7)"},children:[e.jsx("span",{className:"sm:hidden",children:"Low"}),e.jsx("span",{className:"hidden sm:inline",children:"Lowest Payout"})]})]})})]}),!i&&e.jsxs(v,{className:"mt-6 p-3 sm:p-4 bg-black backdrop-blur-md border-2 border-primary shadow-[0_0_40px_hsl(var(--primary)/0.3)] relative overflow-hidden transition-all duration-300 hover:shadow-[0_0_60px_hsl(var(--primary)/0.6)] hover:border-primary/80 hover:scale-[1.02] cursor-pointer",children:[e.jsx(Ke,{}),e.jsxs("div",{className:"text-center space-y-2 sm:space-y-3 relative z-10",children:[e.jsx("div",{className:"flex items-center justify-center gap-1 sm:gap-2 px-2",children:e.jsxs("h2",{className:"text-xs sm:text-xl font-bold break-words font-serif text-center md:text-3xl bg-gradient-neon bg-clip-text text-transparent leading-tight",children:["J1.VAULT PROGRESSIVE #",E]})}),e.jsx("div",{className:"text-primary font-bold text-sm sm:text-base",children:"EVERY 50 SESSIONS"}),e.jsxs("div",{className:"bg-background/40 rounded-lg p-2 sm:p-3 border border-primary/30",children:[e.jsx("div",{className:"text-sm text-muted-foreground mb-1",children:"Sessions Completed"}),e.jsxs("div",{className:"text-base sm:text-2xl font-bold text-primary mb-2",children:[m%50," / 50"]}),e.jsx("div",{className:"w-full bg-card/60 rounded-full h-2 overflow-hidden border border-primary/20",children:e.jsx("div",{className:"h-full bg-gradient-neon transition-all duration-500",style:{width:`${m%50/50*100}%`}})})]}),e.jsxs("div",{className:"rounded-lg p-2 sm:p-3 border border-primary/30 bg-inherit",children:[e.jsx("div",{className:"text-sm text-muted-foreground mb-1",children:"Next J1.Vault Total"}),e.jsxs("div",{className:"text-base sm:text-3xl font-bold bg-gradient-neon bg-clip-text text-transparent",children:[N.toFixed(4)," SOL"]})]})]})]}),e.jsx("div",{className:"mt-8 mb-8",children:e.jsx(Ie,{})}),!i&&h.length>0&&(()=>{const a=h.filter(n=>n.releaseInfo).sort((n,d)=>n.vaultNumber-d.vaultNumber).map(n=>({vaultNumber:n.vaultNumber,payout:Number((n.releaseInfo.actualPaidOut||0).toFixed(4)),totalVault:Number(n.releaseInfo.amount_released.toFixed(4))})),u=Math.max(1,Math.floor(a.length/50)),l=[];for(let n=0;n<a.length;n+=u){const d=a.slice(n,n+u),C=d.reduce((S,A)=>S+A.payout,0)/d.length,L=d.reduce((S,A)=>S+A.totalVault,0)/d.length;l.push({vaultNumber:d[Math.floor(d.length/2)].vaultNumber,payout:parseFloat(C.toFixed(4)),totalVault:parseFloat(L.toFixed(4))})}const b=l.length>0?l.reduce((n,d)=>n+d.payout,0)/l.length:0,f=l.length>0?l.reduce((n,d)=>n+d.totalVault,0)/l.length:0;return e.jsxs(v,{className:"bg-card/40 backdrop-blur-md border-2 border-primary/40 overflow-hidden mb-8 hover:shadow-[0_0_30px_hsl(var(--primary)/0.5)] transition-all",children:[e.jsxs(Z,{className:"border-b border-primary/20 bg-primary/5 text-center sm:text-left",children:[e.jsx(ee,{className:"text-base sm:text-2xl font-bold bg-gradient-neon bg-clip-text text-transparent",children:"Vault Payout Trends"}),e.jsx(te,{className:"text-sm sm:text-base",children:y?"Historical Vault Payouts":"Historical progression of vault payouts over time"})]}),e.jsxs(q,{className:"pt-6",children:[e.jsxs("div",{className:"relative",children:[e.jsx(He,{width:"100%",height:y?250:400,children:e.jsxs(Ee,{data:l,children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"vaultAreaGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:"hsl(var(--primary))",stopOpacity:.4}),e.jsx("stop",{offset:"100%",stopColor:"hsl(var(--primary))",stopOpacity:.05})]}),e.jsxs("linearGradient",{id:"totalVaultGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:"hsl(280 100% 70%)",stopOpacity:.3}),e.jsx("stop",{offset:"100%",stopColor:"hsl(280 100% 70%)",stopOpacity:.05})]})]}),e.jsx(Ge,{strokeDasharray:"3 3",stroke:"hsl(var(--border))",opacity:.2,vertical:!1}),e.jsx(Je,{dataKey:"vaultNumber",stroke:"hsl(var(--muted-foreground))",tick:{fill:"hsl(var(--muted-foreground))",fontSize:y?10:12},label:{value:"Vault Number",position:"insideBottom",offset:-5,fill:"hsl(var(--muted-foreground))",fontSize:y?10:12}
1,tickLine:!1,axisLine:{stroke:"hsl(var(--border))"}}),e.jsx(Ue,{stroke:"hsl(var(--muted-foreground))",tick:{fill:"hsl(var(--muted-foreground))",fontSize:y?10:12},label:{value:"Payout (SOL)",angle:-90,position:"insideLeft",fill:"hsl(var(--muted-foreground))",fontSize:y?10:12},tickLine:!1,axisLine:{stroke:"hsl(var(--border))"}}),e.jsx(Ye,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"2px solid hsl(var(--primary))",borderRadius:"12px",padding:"12px 16px",boxShadow:"0 8px 24px rgba(0,0,0,0.3)"},labelStyle:{color:"hsl(var(--foreground))",fontWeight:"bold",fontSize:"14px"},itemStyle:{fontSize:"13px"},labelFormatter:n=>`Vault ${n}`}),e.jsx(qe,{verticalAlign:"top",height:36,iconType:"line",wrapperStyle:{paddingBottom:"10px",fontSize:y?"11px":"13px"}}),e.jsx(re,{y:b,stroke:"hsl(var(--primary))",strokeDasharray:"8 4",strokeWidth:1.5}),e.jsx(re,{y:f,stroke:"hsl(280 100% 70%)",strokeDasharray:"8 4",strokeWidth:1.5}),e.jsx(le,{type:"monotone",dataKey:"totalVault",stroke:"hsl(280 100% 70%)",strokeWidth:2.5,fill:"url(#totalVaultGradient)",dot:!1,activeDot:{r:5,fill:"hsl(280 100% 70%)",stroke:"hsl(var(--background))",strokeWidth:2},name:"Total Vault Payout",animationDuration:1500,animationEasing:"ease-in-out"}),e.jsx(le,{type:"monotone",dataKey:"payout",stroke:"hsl(var(--primary))",strokeWidth:2.5,fill:"url(#vaultAreaGradient)",dot:!1,activeDot:{r:5,fill:"hsl(var(--primary))",stroke:"hsl(var(--background))",strokeWidth:2},name:"Average Vault Payout per Player",animationDuration:1500,animationEasing:"ease-in-out"})]})}),e.jsxs("div",{className:"hidden lg:block",children:[e.jsx("div",{className:"pointer-events-none absolute right-3 top-2 text-[11px] sm:text-[13px] font-semibold",style:{color:"hsl(280 100% 70%)",textShadow:"0 0 8px hsl(280 100% 70% / 0.6)"},children:`--- AVG VAULT TOTAL: ${f.toFixed(4)} SOL`}),e.jsx("div",{className:"pointer-events-none absolute right-3 bottom-10 text-[11px] sm:text-[13px] font-semibold",style:{color:"hsl(var(--primary))",textShadow:"0 0 8px hsl(var(--primary) / 0.6)"},children:`--- AVG PAYOUT AMOUNT: ${b.toFixed(4)} SOL`})]})]}),e.jsx("div",{className:"text-sm text-muted-foreground mt-4 text-center",children:e.jsxs("div",{className:"lg:hidden flex flex-col md:flex-row items-center justify-center gap-1 md:gap-4 text-[11px] md:text-[13px]",children:[e.jsx("span",{className:"font-semibold",style:{color:"hsl(280 100% 70%)",textShadow:"0 0 8px hsl(280 100% 70% / 0.6)"},children:`--- AVG VAULT TOTAL: ${f.toFixed(4)} SOL`}),e.jsx("span",{className:"font-semibold",style:{color:"hsl(var(--primary))",textShadow:"0 0 8px hsl(var(--primary) / 0.6)"},children:`--- AVG PAYOUT AMOUNT: ${b.toFixed(4)} SOL`})]})})]})]})})(),e.jsxs(v,{className:"mt-8 p-4 sm:p-6 bg-card/40 backdrop-blur-md border-2 border-cyan-500/40 shadow-[0_0_30px_rgba(6,182,212,0.2)] hover:shadow-[0_0_50px_rgba(6,182,212,0.3)] transition-all",children:[e.jsxs(Z,{className:"pb-4",children:[e.jsx(ee,{className:"text-base sm:text-2xl font-bold text-center flex items-center justify-center gap-2",children:e.jsx("span",{className:"bg-gradient-neon bg-clip-text text-transparent",children:"Harmonic Distribution Vault Series Payout Model"})}),e.jsx(te,{className:"text-center text-sm sm:text-base",children:"Vault Series Interactive Table"})]}),e.jsxs(q,{className:"space-y-4 pl-[5px] pt-0 pr-[5px]",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm sm:text-sm font-medium",children:"Select Number of Players:"}),e.jsxs(Se,{value:X.toString(),onValueChange:t=>oe(Number(t)),children:[e.jsx(ke,{className:"w-full bg-background/95 backdrop-blur-sm border-primary/40 text-sm sm:text-sm",children:e.jsx(Ve,{})}),e.jsx(Pe,{className:"bg-background/95 backdrop-blur-sm border-primary/40 z-50",children:[2,3,4,5,6,7,8,9,10,11].map(t=>e.jsxs(Te,{value:t.toString(),className:"text-sm sm:text-sm",children:[t," Players"]},t))})]})]}),e.jsx("div",{className:"space-y-3 mt-6",children:(()=>{var u;const t=me(X,N),a=((u=t[0])==null?void 0:u.percentage)||100;return t.map(l=>{const b=l.percentage/a*100;return e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex justify-between text-sm sm:text-sm",children:[e.jsx("span",{className:"font-medium",children:l.rank===1?"1st":l.rank===2?"2nd":l.rank===3?"3rd":`${l.rank}th`}),e.jsxs("span",{className:"text-gold font-semibold",children:[l.amount.toFixed(4)," SOL"]})]}),e.jsxs("div",{className:"h-6 sm:h-8 bg-black/60 rounded-md overflow-hidden relative",children:[e.jsx("div",{className:"h-full bg-gradient-to-r from-cyan-500 to-purple-500 transition-all duration-300",style:{width:`${b}%`}}),e.jsxs("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-xs sm:text-xs font-bold text-gray-400 drop-shadow-lg",children:[l.percentage.toFixed(2),"%"]})]})]},l.rank)})})()}),e.jsx("div",{className:"mt-6 p-3 bg-muted/50 rounded-lg border border-cyan-500/30",children:e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(ae,{className:"w-4 h-4 sm:w-5 sm:h-5 text-cyan-500 mt-0.5 flex-shrink-0"}),e.jsxs("p",{className:"text-sm sm:text-sm text-muted-foreground",children:[e.jsx("span",{className:"font-semibold text-foreground",children:"Payouts grow as vault grows!"}
1)," These amounts are based on the current vault balance of"," ",e.jsxs("span",{className:"text-gold font-bold",children:[N.toFixed(4)," SOL"]}),". As more sessions complete, the vault increases and so do the payouts."]})]})}),e.jsxs("div",{className:"mt-6 p-4 bg-gradient-to-br from-primary/10 to-accent/10 rounded-lg border-2 border-primary/40 text-center",children:[e.jsx("p",{className:"text-sm sm:text-base text-muted-foreground mb-3",children:"Want to understand the mathematical foundation behind vault payouts?"}),e.jsxs(we,{onClick:()=>p("/faq#vault-math-framework"),variant:"outline",className:"bg-gradient-to-r from-primary/20 to-accent/20 border-primary/40 hover:border-primary/60 hover:bg-primary/10 text-foreground font-semibold text-sm sm:text-sm",children:[e.jsx(ae,{className:"w-3 h-3 sm:w-4 sm:h-4 mr-1 sm:mr-2 flex-shrink-0"}),e.jsx("span",{className:"hidden sm:inline",children:"View Complete Mathematical Derivation in FAQ"}),e.jsx("span",{className:"sm:hidden",children:"View Math in FAQ"}),e.jsx(Me,{className:"w-3 h-3 sm:w-4 sm:h-4 ml-1 sm:ml-2 flex-shrink-0"})]})]})]})]}),!i&&h.filter(t=>t.releaseInfo).length>0&&e.jsxs("div",{className:"flex items-center justify-center gap-3 mb-4 mt-12",children:[e.jsx(K,{className:"w-6 h-6 sm:w-8 sm:h-8 text-primary flex-shrink-0 animate-pulse drop-shadow-[0_0_8px_hsl(var(--primary)/0.6)]",fill:"currentColor"}),e.jsx("h2",{className:"text-base sm:text-4xl font-bold bg-gradient-neon bg-clip-text text-transparent",children:"All Vault Results"}),e.jsx(K,{className:"w-6 h-6 sm:w-8 sm:h-8 text-primary flex-shrink-0 animate-pulse drop-shadow-[0_0_8px_hsl(var(--primary)/0.6)]",fill:"currentColor"})]}),e.jsx("div",{className:"space-y-8",children:i?e.jsx("div",{className:"flex justify-center items-center py-12",children:e.jsx(F,{className:"w-12 h-12 animate-spin text-primary"})}):h.filter(t=>t.releaseInfo).length===0?e.jsx(v,{className:"bg-card/40 backdrop-blur-md border-2 border-primary/40",children:e.jsx(q,{className:"py-12",children:e.jsxs("div",{className:"text-center",children:[e.jsx(K,{className:"w-16 h-16 text-muted-foreground mx-auto mb-4 opacity-50"}),e.jsx("p",{className:"text-sm sm:text-lg text-muted-foreground font-medium",children:"No completed vaults yet"}),e.jsx("p",{className:"text-sm sm:text-sm text-muted-foreground mt-2",children:"Historical vault leaderboards will appear after payouts are completed"})]})})}):h.filter(t=>t.releaseInfo).sort((t,a)=>a.vaultNumber-t.vaultNumber).map(t=>e.jsxs(v,{className:"p-3 sm:p-6 bg-card/40 backdrop-blur-md relative overflow-hidden border-2 border-purple-400/40 shadow-[0_0_30px_rgba(168,85,247,0.2)] hover:shadow-[0_0_50px_rgba(168,85,247,0.3)] transition-all duration-300",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-purple-400/10 via-violet-400/5 to-purple-400/10"}),e.jsx("div",{className:"relative z-10 pb-3 sm:pb-6",children:e.jsxs("div",{className:"flex flex-col items-center sm:flex-row sm:items-center gap-2 sm:gap-3",children:[e.jsxs("h2",{className:"text-sm sm:text-2xl font-bold bg-gradient-neon bg-clip-text text-transparent whitespace-nowrap text-center",children:["Vault #",t.vaultNumber," Leaderboard"]}),e.jsxs(_e,{variant:"outline",className:"text-xs sm:text-sm bg-gold text-black border-gold",children:["Paid Out: ",(t.releaseInfo.actualPaidOut||0).toFixed(4)," SOL"]})]})}),e.jsx("div",{className:"relative z-10",children:e.jsx("div",{className:"overflow-x-auto -mx-3 sm:mx-0",children:e.jsx("div",{className:"min-w-0 sm:min-w-[650px]",children:e.jsxs(ve,{className:"table-fixed",children:[e.jsx(je,{children:e.jsxs(se,{children:[e.jsx(w,{className:"w-[10%] text-center text-xs sm:text-sm px-1",children:"Rank"}),e.jsx(w,{className:"w-[15%] text-left text-xs sm:text-sm px-1",children:"Player"}),e.jsx(w,{className:"w-[15%] text-center text-xs sm:text-sm px-1",children:"Wallet"}),e.jsx(w,{className:"w-[18%] text-center text-xs sm:text-sm px-1",children:"Winnings"}),e.jsx(w,{className:"w-[14%] text-center text-xs sm:text-sm px-1",children:"Wins"}),e.jsx(w,{className:"w-[14%] text-center text-xs sm:text-sm px-1",children:"Points"}),e.jsx(w,{className:"w-[14%] text-center text-xs sm:text-sm px-1",children:"Payout"})]})}),e.jsx(Ne,{children:t.leaderboard.map((a,u)=>{const l=u+1;return e.jsxs(se,{className:"hover:bg-purple-500/10",children:[e.jsx(_,{className:"font-bold text-center px-1 py-2",children:e.jsxs("span",{className:"text-xs sm:text-sm text-gold",children:["#",l]})}),e.jsx(_,{className:"text-left px-1 py-2",children:e.jsx("span",{className:"font-medium text-xs sm:text-sm truncate block text-primary",children:de(a.display_name)})}),e.jsx(_,{className:"text-center px-1 py-2",children:e.jsx("span",{className:"text-xs sm:text-sm text-muted-foreground",children:ie(a.wallet_address,!0)})}),e.jsx(_,{className:"text-center text-gold px-1 py-2",children:e.jsx("span",{className:"text-xs sm:text-sm font-semibold",children:a.vault_winnings.toFixed(4)})}),e.jsx(_,{className:"text-center px-1 py-2",children:e.jsxs("span",{className:"text-xs sm:text-sm text-accent",children:[a.vault_wins,"/",a.vault_tournaments]})}),e.jsx(_,{className:"text-center font-semibold text-cyan-500 px-1 py-2",children:e.jsx("span",{className:"text-xs sm:text-sm",children:a.vault_points.toLocaleStr
1ing()})}),e.jsx(_,{className:"text-center px-1 py-2",children:a.vault_payout?e.jsx("span",{className:"text-xs sm:text-lg font-bold text-gold",children:a.vault_payout.toFixed(4)}):e.jsx("span",{className:"text-muted-foreground text-xs sm:text-sm",children:"-"})})]},a.wallet_address)})})]})})})})]},t.vaultNumber))})]}),e.jsx(Le,{})]})};export{ft 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.