1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3525],{597:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(65776).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},8593:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>ex});var r=a(6733),s=a(64665),n=a(25195),l=a(46621),i=a(87617),c=a(65776);let o=(0,c.A)("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var d=a(95933),m=a(22051),u=a(81471),x=a(35887),h=a(96321),p=a(61361),b=a(597),f=a(89339),g=a(74466),w=a(71987),j=a(85710),y=a.n(j);function v(e){return e.toLocaleString("es-ES",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",timeZone:"Europe/Madrid"})}let N={days:0,hours:0,minutes:0,seconds:0};function k(e){let{targetDate:t,seasonStatus:a="open",graceEndsAt:n,seasonStartsAt:l,expiredLabel:i,showTargetDate:c=!0}=e,[o,d]=(0,s.useState)(N),m="grace"===a?n:t;if((0,s.useEffect)(()=>{if(!m||"finalized"===a)return void d(N);let e=()=>{let e=m.getTime()-Date.now();if(e<0)return void d(N);d({days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60})};e();let t=setInterval(e,1e3);return()=>clearInterval(t)},[m,a]),i&&m&&m.getTime()<=Date.now())return(0,r.jsx)("p",{role:"status",className:"rounded-xl border border-white/10 bg-white/5 p-4 text-center text-sm text-white/60",children:i});if("finalized"===a){let e=l&&t?"".concat(v(l)," â ").concat(v(t)):null;return(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center gap-1 rounded-xl border border-white/10 bg-white/5 p-3 sm:p-4",children:[(0,r.jsx)("span",{className:"text-sm font-medium text-white/60",children:"Temporada finalizada"}),e&&(0,r.jsx)("span",{className:"text-[0.65rem] font-medium text-white/40 sm:text-xs",children:e})]})}let u=[{label:"D\xcdAS",value:o.days},{label:"HRS",value:o.hours},{label:"MIN",value:o.minutes},{label:"SEG",value:o.seconds}];return(0,r.jsxs)("div",{className:"flex flex-col items-center gap-2",children:["grace"===a&&(0,r.jsx)("span",{className:"text-xs font-medium text-amber-400/80",children:"Ganadores anunciados en"}),(0,r.jsx)("div",{className:"flex items-center justify-center gap-1 rounded-xl border border-white/10 bg-white/5 p-3 sm:gap-3 sm:p-4",children:u.map((e,t)=>(0,r.jsxs)("div",{className:"flex items-center gap-1 sm:gap-3",children:[(0,r.jsxs)("div",{className:"flex min-w-[2.5rem] flex-col items-center sm:min-w-[3rem]",children:[(0,r.jsx)("span",{className:"font-mono text-xl font-black tabular-nums text-white sm:text-2xl",children:e.value.toString().padStart(2,"0")}),(0,r.jsx)("span",{className:"mt-0.5 text-[0.55rem] font-medium text-white/60 sm:mt-1 sm:text-xs",children:e.label})]}),t<u.length-1&&(0,r.jsx)("span",{className:"px-1 text-sm font-light text-white/40 sm:text-xl",children:":"})]},e.label))}),c&&m&&(0,r.jsxs)("span",{className:"text-[0.65rem] font-medium text-white/40 sm:text-xs",children:[m.toLocaleDateString("es-ES",{weekday:"long",day:"numeric",month:"long",year:"numeric",timeZone:"UTC"})," â ",m.toLocaleTimeString("es-ES",{hour:"2-digit",minute:"2-digit",timeZone:"UTC"})," UTC"]})]})}function S(e){let{meta:t,source:a="empiredrop"}=e;if(!t||t.leaderboardSource!==a||"no_active_race"===t.emptyReason)return null;let s=t.seasonEndsAt?new Date(t.seasonEndsAt):null,n=t.seasonStartsAt?new Date(t.seasonStartsAt):null;if(!s||!Number.isFinite(s.getTime()))return null;let l=e=>e.toLocaleString("es-ES",{dateStyle:"medium",timeStyle:"short",timeZone:"UTC"});return(0,r.jsxs)("div",{className:"flex flex-col items-center gap-2",children:["finalized"!==t.seasonStatus&&(0,r.jsx)(k,{targetDate:s,seasonStartsAt:n,showTargetDate:!1,expiredLabel:"La carrera ha finalizado. Esperando la siguiente actualizacion."}),(0,r.jsxs)("p",{className:"text-center text-[0.65rem] text-white/45 sm:text-xs",children:[n&&Number.isFinite(n.getTime())&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("time",{dateTime:t.
1seasonStartsAt,children:l(n)})," â "]}),(0,r.jsx)("time",{dateTime:t.seasonEndsAt,children:l(s)})," UTC"]})]})}let C=(0,c.A)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);var A=a(72087),F=a(63416);function P(e){let{className:t="",quantity:a=100,staticity:n=50,ease:l=50,size:i=.4,refresh:c=!1,color:o="#ffffff",vx:d=0,vy:m=0,...u}=e,x=(0,s.useRef)(null),h=(0,s.useRef)(null),p=(0,s.useRef)(null),b=(0,s.useRef)([]),f=function(){let[e,t]=(0,s.useState)({x:0,y:0});return(0,s.useEffect)(()=>{function e(e){t({x:e.clientX,y:e.clientY})}return window.addEventListener("mousemove",e),()=>window.removeEventListener("mousemove",e)},[]),e}(),g=(0,s.useRef)({x:0,y:0}),w=(0,s.useRef)({w:0,h:0}),j=(0,s.useRef)(null),y=(0,s.useRef)(null),v=window.devicePixelRatio,N=function(e){let t=e.replace("#","");3===t.length&&(t=t.split("").map(e=>e+e).join(""));let a=parseInt(t,16);return[a>>16&255,a>>8&255,255&a]}(o),k=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!p.current)return;let{x:a,y:r,translateX:s,translateY:n,size:l,alpha:i}=e;p.current.translate(s,n),p.current.beginPath(),p.current.arc(a,r,l,0,2*Math.PI),p.current.fillStyle="rgba(".concat(N.join(", "),", ").concat(i,")"),p.current.fill(),p.current.setTransform(v,0,0,v,0,0),t||b.current.push(e)},S=()=>({x:Math.floor(Math.random()*w.current.w),y:Math.floor(Math.random()*w.current.h),translateX:0,translateY:0,size:Math.floor(2*Math.random())+i,alpha:0,targetAlpha:parseFloat((.6*Math.random()+.1).toFixed(1)),dx:(Math.random()-.5)*.1,dy:(Math.random()-.5)*.1,magnetism:.1+4*Math.random()}),C=()=>{if(h.current&&x.current&&p.current){w.current.w=h.current.offsetWidth,w.current.h=h.current.offsetHeight,x.current.width=w.current.w*v,x.current.height=w.current.h*v,x.current.style.width="".concat(w.current.w,"px"),x.current.style.height="".concat(w.current.h,"px"),p.current.scale(v,v),b.current=[];for(let e=0;e<a;e+=1)k(S())}},F=()=>{if(!x.current)return;let e=x.current.getBoundingClientRect(),{w:t,h:a}=w.current,r=f.x-e.left-t/2,s=f.y-e.top-a/2;r<t/2&&r>-t/2&&s<a/2&&s>-a/2&&(g.current.x=r,g.current.y=s)},P=()=>{p.current&&p.current.clearRect(0,0,w.current.w,w.current.h)},E=(e,t,a,r,s)=>(e-t)*(s-r)/(a-t)+r,D=()=>{P(),b.current.forEach((e,t)=>{let a=parseFloat(E([e.x+e.translateX-e.size,w.current.w-e.x-e.translateX-e.size,e.y+e.translateY-e.size,w.current.h-e.y-e.translateY-e.size].reduce((e,t)=>Math.min(e,t)),0,20,0,1).toFixed(2));a>1?(e.alpha+=.02,e.alpha>e.targetAlpha&&(e.alpha=e.targetAlpha)):e.alpha=e.targetAlpha*a,e.x+=e.dx+d,e.y+=e.dy+m,e.translateX+=(g.current.x/(n/e.magnetism)-e.translateX)/l,e.translateY+=(g.current.y/(n/e.magnetism)-e.translateY)/l,e.x<-e.size||e.x>w.current.w+e.size||e.y<-e.size||e.y>w.current.h+e.size?(b.current.splice(t,1),k(S())):k({...e,x:e.x,y:e.y,translateX:e.translateX,translateY:e.translateY,alpha:e.alpha},!0)}),j.current=window.requestAnimationFrame(D)};return(0,s.useEffect)(()=>{function e(){y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{C()},200)}return x.current&&(p.current=x.current.getContext("2d")),C(),D(),window.addEventListener("resize",e),()=>{null!==j.current&&window.cancelAnimationFrame(j.current),y.current&&clearTimeout(y.current),window.removeEventListener("resize",e)}},[o]),(0,s.useEffect)(()=>{F()},[f.x,f.y]),(0,s.useEffect)(()=>{C()},[c]),(0,r.jsx)("div",{className:(0,A.cn)("pointer-events-none",t),ref:h,...u,children:(0,r.jsx)("canvas",{ref:x,className:"h-full w-full"})})}var E=a(63843);function D(e){let{image:t,name:a,className:n,fallback:l}=e,[i,c]=(0,s.useState)(!1);return!t||i?(0,r.jsx)(r.Fragment,{children:l}):(0,r.jsx)("img",{src:t,alt:null!=a?a:"",className:n,loading:"lazy",referrerPolicy:"no-referrer",onError:()=>c(!0)})}function z(e,t,a,r,s){if("money"===r&&"COIN"===s)return"".concat(e.toLocaleString("es-ES",{minimumFractionDigits:2,maximumFractionDigits:2})," Coins");if("money"===r&&s&&!a)return new Intl.NumberFormat("es-ES",{style:"currency",currency:s}).format(e);let n="tickets"===r?0:"money"===r&&s?new Intl.NumberFormat("es-ES",{style:"currency",currency:s}).resolvedOptions().maximumFractionDigits:2*("usd"===t);
1return"".concat(a).concat(e.toLocaleString("es-ES",{minimumFractionDigits:n,maximumFractionDigits:n}))}var L=a(95708);let M=[{rank:2,height:214,compactHeight:176,fill:"text-indigo-300",color:"#a5b4fc",gradient:"linear-gradient(180deg, rgba(0,0,0,0.3), rgba(165,180,252,0.44) 35%, rgba(165,180,252,0.72))"},{rank:1,height:260,compactHeight:222,fill:"text-yellow-500",color:"#eab308",gradient:"linear-gradient(180deg, rgba(0,0,0,0.28), rgba(234,179,8,0.45) 35%, rgba(234,179,8,0.95))"},{rank:3,height:214,compactHeight:176,fill:"text-blue-500",color:"#3b82f6",gradient:"linear-gradient(180deg, rgba(0,0,0,0.3), rgba(59,130,246,0.42) 35%, rgba(59,130,246,0.92))"}];function R(e){let{users:t,metric:a,metricPrefix:s="",metricUnit:n,currency:l,prizePoolHeading:i,emptyMetricLabel:c="0",showTies:o=!1,prizePoolLabel:d,accentColor:m}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"relative flex h-80 w-full items-end justify-center overflow-hidden rounded-2xl border border-white/10 bg-secondary/90 backdrop-blur-md sm:h-96 sm:rounded-4xl lg:h-110",children:[(0,r.jsx)("div",{className:"absolute left-0 top-0 h-full w-full",children:(0,r.jsx)(P,{})}),(0,r.jsx)("div",{className:"absolute left-0 top-0 h-32 w-16 rounded-full bg-radial from-white/5 from-40% to-white/10 blur-2xl sm:h-50 sm:w-20"}),(0,r.jsx)("div",{className:"absolute right-0 top-0 h-20 w-20 rounded-full bg-radial from-white/5 from-40% to-white/10 blur-2xl sm:h-30 sm:w-30"}),(0,r.jsx)("div",{className:"absolute bottom-0 h-20 w-full translate-y-[50%] rounded-full bg-radial from-40% blur-2xl sm:h-30 sm:w-200",style:{"--tw-gradient-from":"".concat(m,"1a var(--tw-gradient-from-position)"),"--tw-gradient-to":"rgba(202,138,4,0.3) var(--tw-gradient-to-position)"}}),(0,r.jsx)("div",{className:"relative z-10 mb-8 flex w-full origin-bottom scale-75 items-end justify-center gap-2 px-2 sm:mb-12 sm:scale-100 sm:gap-4 sm:px-0",children:M.map(e=>{var i;let d=t.find(t=>t.rank===e.rank),m=null!=(i=null==d?void 0:d.name)?i:"---",u=o?t.filter(t=>t.rank===e.rank).length:0,x=d?z(d.points,a,s,n,l):c,h=1===e.rank;return(0,r.jsx)("div",{className:"group relative w-32 cursor-pointer transition-transform duration-300 hover:scale-[1.02] sm:w-40 sm:hover:scale-105 lg:w-50",children:(0,r.jsx)("div",{className:"relative w-32 rounded-b-2xl sm:w-40 sm:rounded-b-4xl lg:w-50",style:{height:"clamp(".concat(e.compactHeight,"px, 22vw, ").concat(e.height,"px)"),boxShadow:"0 10px 0px ".concat(e.color,"66")},children:(0,r.jsxs)("div",{className:"card_leaderboard flex h-full w-32 flex-col items-center justify-end rounded-b-2xl border border-white/50 px-1 pb-0 transition-all duration-300 hover:border-white/70 sm:w-40 sm:rounded-b-3xl sm:border-2 sm:px-2 lg:w-50",style:{background:e.gradient,boxShadow:"0 0 100px ".concat(e.color,"66, -5px -5px 15px #0a0a0a, 5px 5px 15px #000, inset 5px 10px 15px rgba(255,255,255,0.45), inset -5px -5px 10px #222")},children:[(0,r.jsx)(E.Ud,{number:e.rank,className:(0,A.cn)("mb-1 scale-75 sm:mb-2 sm:scale-100",e.fill)}),(0,r.jsxs)("div",{className:(0,A.cn)("flex w-full gap-1 px-1 sm:px-2",n?"flex-col items-center pb-1.5":"flex-row items-center justify-between"),children:[(0,r.jsxs)("div",{className:(0,A.cn)("flex min-w-0 flex-col justify-center",n?"w-full items-center":"items-start"),children:[(!n||u>1)&&(0,r.jsx)("div",{className:"h-[0.9rem] w-full",children:u>1&&(0,r.jsxs)("span",{className:"text-[9px] text-white/75",children:["Empate \xb7 ",u]})}),(0,r.jsx)("h3",{title:m,className:(0,A.cn)("truncate font-semibold text-white",n?"w-full text-center text-sm":"text-xs sm:text-sm"),children:m})]}),(0,r.jsxs)("div",{className:(0,A.cn)("flex shrink-0 flex-col justify-center",n?"w-full items-center":"items-end"),children:[(0,r.jsx)("p",{className:"text-center text-[0.5rem] uppercase sm:text-[0.6rem]",children:"tickets"===n?"Tickets":l||("usd"===a?"â¬"===s?"EUR":"USD":(0,L.Ez)(L.cs))}),(0,r.jsx)("h3",{className:(0,A.cn)("w-max whitespace-nowrap rounded-full bg-green-500/30 px-1.5 text-center font-semibold tabular-nums text-green-500 sm:px-2",n?"text-sm lg:text-base":"text-[0.6rem] sm:text-xs lg:text-sm"),children:x})]})]}),(0,r.jsx)("div",{className:"relative",children:(0,r.jsx)("div",{className:(0,A.cn)("overflow-hidden rounded-2xl ring-2 transition-all duration-300 group-hover:ring-[3px] sm:rou
1nded-3xl",h?"h-14 w-14 sm:h-20 sm:w-20 lg:h-24 lg:w-24":"h-12 w-12 sm:h-16 sm:w-16 lg:h-20 lg:w-20"),style:{"--tw-ring-color":"".concat(e.color,"cc"),boxShadow:"0 0 ".concat(h?"22px":"14px"," ").concat(e.color,"59")},children:(0,r.jsx)(D,{image:null==d?void 0:d.image,name:m,className:"h-full w-full object-cover",fallback:(0,r.jsx)(E.Y9,{className:"h-full w-full p-1.5 opacity-80"})})})})]})})},e.rank)})})]}),(0,r.jsx)("div",{className:"mt-6 flex items-center justify-center",children:(0,r.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-xl border border-white/10 bg-white/5 px-4 py-2",children:[(0,r.jsx)(x.A,{className:"h-4 w-4",style:{color:m}}),(0,r.jsx)("span",{className:"text-[10px] font-medium uppercase tracking-wider text-white/50",children:null!=i?i:"Premio ".concat("usd"===a?"mensual":"semanal")}),(0,r.jsx)("span",{className:"text-base font-black",style:{color:m},children:d})]})})]})}function T(e){let{rows:t=8}=e;return(0,r.jsxs)("div",{className:"w-full",role:"status","aria-label":"Cargando clasificacion",children:[(0,r.jsx)("div",{className:"h-80 w-full animate-pulse rounded-2xl border border-white/10 bg-secondary/90 sm:h-96 sm:rounded-4xl lg:h-110"}),(0,r.jsxs)("div",{className:"mt-6 rounded-2xl border border-white/[0.06] bg-white/[0.02] p-4 sm:mt-10 sm:p-6",children:[(0,r.jsxs)("div",{className:"mb-6 flex items-center gap-3",children:[(0,r.jsx)("div",{className:"h-8 w-8 animate-pulse rounded-xl bg-white/10 sm:h-10 sm:w-10"}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("div",{className:"h-4 w-32 animate-pulse rounded bg-white/10"}),(0,r.jsx)("div",{className:"h-2.5 w-48 animate-pulse rounded bg-white/5"})]})]}),(0,r.jsx)("div",{className:"space-y-2",children:Array.from({length:t}).map((e,t)=>(0,r.jsxs)("div",{className:"flex items-center gap-3 rounded-xl border border-white/[0.04] bg-white/[0.02] px-3 py-4 sm:gap-4 sm:px-5",children:[(0,r.jsx)("div",{className:"h-8 w-8 shrink-0 animate-pulse rounded-full bg-white/10 sm:h-10 sm:w-10"}),(0,r.jsx)("div",{className:"h-4 flex-1 animate-pulse rounded bg-white/5"}),(0,r.jsx)("div",{className:"h-4 w-16 shrink-0 animate-pulse rounded bg-white/5 sm:w-24"}),(0,r.jsx)("div",{className:"h-4 w-12 shrink-0 animate-pulse rounded bg-white/5 sm:w-16"})]},t))})]})]})}let X=(0,c.A)("skull",[["path",{d:"m12.5 17-.5-1-.5 1h1z",key:"3me087"}],["path",{d:"M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20v1a1 1 0 0 0 1 1z",key:"1o5pge"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}]]);var _=a(69908),I=a(31282);function B(e){let{rank:t}=e;return 1===t?(0,r.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-gradient-to-br from-yellow-300 to-yellow-600 shadow-lg shadow-yellow-500/20 sm:h-10 sm:w-10",children:(0,r.jsx)(x.A,{className:"h-4 w-4 text-black sm:h-5 sm:w-5"})}):2===t?(0,r.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-gradient-to-br from-gray-200 to-gray-400 shadow-lg shadow-gray-400/20 sm:h-10 sm:w-10",children:(0,r.jsx)("span",{className:"text-sm font-black text-black",children:"2"})}):3===t?(0,r.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-gradient-to-br from-amber-500 to-amber-700 shadow-lg shadow-amber-600/20 sm:h-10 sm:w-10",children:(0,r.jsx)("span",{className:"text-sm font-black text-black",children:"3"})}):(0,r.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full border border-white/10 bg-white/5 sm:h-10 sm:w-10",children:(0,r.jsx)("span",{className:"text-xs font-bold text-white/50 sm:text-sm",children:t})})}function U(e){let{prize:t,prizeType:a,prizeLabel:s,prizeCurrency:n}=e;return null!=s?(0,r.jsx)("span",{className:"text-xs font-bold text-green-400 sm:text-sm",children:s}):t<=0?(0,r.jsx)("span",{className:"text-xs text-white/20",children:"â"}):n?(0,r.jsx)("span",{className:"text-xs font-bold text-green-400 sm:text-sm",children:z(t,"usd","","money",n)}):(0,L.Xy)(a)===L.cs?(0,r.jsxs)("span",{className:"text-xs font-bold text-[#0a90f0] sm:text-sm",children:[t.toLocaleStr
1ing("es-ES")," ",(0,L.Ez)(a)]}):"COINS"===a?(0,r.jsxs)("span",{className:"text-xs font-bold text-cyan-300 sm:text-sm",children:[t.toLocaleString("es-ES")," Coins"]}):(0,r.jsxs)("span",{className:"text-xs font-bold text-green-400 sm:text-sm",children:["$",t.toLocaleString("es-ES")]})}function Y(e){return"".concat((e/100).toLocaleString("es-ES",{minimumFractionDigits:2,maximumFractionDigits:2})," ").concat((0,L.Ez)(L.cs))}function G(){return(0,r.jsx)(_.m,{content:"Menos de 10 PSX en la Wallet",position:"top",children:(0,r.jsx)("span",{className:"flex h-6 w-6 items-center justify-center rounded-md border border-red-500/25 bg-red-500/10 text-red-400/90","aria-label":"Menos de 10 PSX en la Wallet",children:(0,r.jsx)(X,{className:"h-3.5 w-3.5"})})})}function O(e){var t;let{provider:a,game:s,mult:n,betMinor:l,retMinor:i}=e,c=(0,I.cq)({game:s,provider:a}),o=(0,I.gh)({game:s,provider:a}),d=(0,I.hl)({game:s,provider:a}),m=n&&!(n<1)?"\xd7"+(n>=100?Math.round(n).toLocaleString("es-ES"):n.toFixed(1)):"",u="Apost\xf3 ".concat(Y(l)," \xb7 Gan\xf3 ").concat(Y(i));return(0,r.jsx)(_.m,{content:u,position:"top",children:(0,r.jsxs)(y(),{href:d,onClick:e=>e.stopPropagation(),"aria-label":"Mayor victoria: ".concat(m||"big win"," â ").concat(u),className:"flex items-center gap-1 rounded-md border border-amber-400/30 bg-amber-400/10 py-0.5 pl-0.5 pr-1.5 transition-colors hover:border-amber-400/60 hover:bg-amber-400/20",children:[(0,r.jsxs)("span",{className:"relative flex h-6 w-6 shrink-0 items-center justify-center overflow-hidden rounded bg-white/5",children:[c?(0,r.jsx)("img",{src:c.src,"data-fallback":null!=(t=c.fallback)?t:"",alt:"",className:"absolute inset-0 size-full object-cover",onError:e=>{let t=e.target,a=t.getAttribute("data-fallback");if(a&&t.src!==a){t.removeAttribute("data-fallback"),t.src=a;return}t.style.display="none"}}):null,o?(0,r.jsx)("img",{src:o,alt:"",className:"absolute inset-0 m-auto size-4 object-contain drop-shadow",onError:e=>{e.target.style.display="none"}}):null]}),m?(0,r.jsx)("span",{className:"-rotate-3 font-black tabular-nums text-amber-300 text-[11px] sm:text-xs",children:m}):null]})})}function q(e){let{badges:t}=e;return t&&0!==t.length?(0,r.jsx)("div",{className:"flex shrink-0 items-center gap-1.5",children:t.map((e,t)=>"low_wallet"===e.kind?(0,r.jsx)(G,{},"lw-".concat(t)):"big_win"===e.kind?(0,r.jsx)(O,{provider:e.provider,game:e.game,mult:e.mult,betMinor:e.betMinor,retMinor:e.retMinor},"bw-".concat(t)):null)}):null}function H(e){let{entry:t,highlighted:a,metric:s,metricLabel:n,metricPrefix:l,metricUnit:i,currency:c,prizeCurrency:o}=e,d=t.rank<=3;return(0,r.jsxs)("div",{className:(0,A.cn)("flex items-center gap-3 rounded-xl px-3 py-3 transition-colors sm:gap-4 sm:px-5 sm:py-4",a?"border border-[#00ff7b]/20 bg-[#00ff7b]/5":d?"border border-white/[0.08] bg-white/[0.04]":"border border-white/[0.04] bg-white/[0.02]"),children:[(0,r.jsx)(B,{rank:t.rank}),(0,r.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[(0,r.jsx)(D,{image:t.image,name:t.name,className:"h-7 w-7 shrink-0 rounded-lg object-cover sm:h-8 sm:w-8",fallback:(0,r.jsx)("div",{className:"shrink-0 rounded-lg bg-white/5 p-1",children:(0,r.jsx)(E.ny,{className:"h-3 w-3 text-white/40 sm:h-4 sm:w-4"})})}),(0,r.jsx)("span",{className:"truncate text-sm font-semibold text-white sm:text-base",children:t.name})]}),(0,r.jsx)(q,{badges:t.badges}),(0,r.jsxs)("div",{className:"shrink-0 text-right",children:[(0,r.jsxs)("p",{className:"inline-flex items-center gap-1 font-mono text-xs font-semibold text-white sm:text-sm",children:[z(t.points,s,l,i,c),"points"===s&&!i&&(0,r.jsx)(E.L7,{className:"h-3.5 w-3.5"})]}),(0,r.jsx)("p",{className:"hidden text-[10px] text-white/30 sm:block",children:n})]}),(0,r.jsx)("div",{className:"min-w-[60px] shrink-0 text-right sm:min-w-[80px]",children:(0,r.jsx)(U,{prize:t.prize,prizeType:t.prizeType,prizeLabel:t.prizeLabel,prizeCurrency:o})})]})}function V(e){let{users:t,myPosition:a,metric:s="points",metricLabel:n="puntos",metricPrefix:l="",metricUnit:i,currency:c,prizeCurrency:o,cadenceLabel:d,rankingMetricLabel:m,accentColor:u="#00ff7b"}=e;return(0,r.jsxs)("section",{children:[(0,r.jsxs)("div",{className:"mb-6 flex items-center gap-3",children:[(0,r.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-xl border sm:h-10 sm:w-10",
1style:{background:"".concat(u,"18"),borderColor:"".concat(u,"35")},children:(0,r.jsx)(x.A,{className:"h-4 w-4 sm:h-5 sm:w-5",style:{color:u}})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-base font-bold text-white sm:text-lg",children:"Clasificacion"}),(0,r.jsxs)("p",{className:"text-[11px] text-white/40",children:["Top ",t.length," jugadores por ",null!=m?m:"tickets"===i?"tickets":"wager"," ",null!=d?d:"usd"===s?"mensual":"semanal"]})]})]}),a&&(0,r.jsxs)("div",{className:"mb-4",children:[(0,r.jsx)("p",{className:"mb-2 text-xs text-white/50",children:"Mi posicion"}),(0,r.jsx)(H,{entry:a,highlighted:!0,metric:s,metricLabel:n,metricPrefix:l,metricUnit:i,currency:c,prizeCurrency:o})]}),0===t.length?(0,r.jsx)("div",{className:"py-16 text-center text-sm text-white/30",children:"No hay datos disponibles"}):(0,r.jsx)("div",{className:"space-y-2",children:t.map((e,t)=>(0,r.jsx)(H,{entry:e,metric:s,metricLabel:n,metricPrefix:l,metricUnit:i,currency:c,prizeCurrency:o},"".concat(e.rank,"-").concat(e.name,"-").concat(t)))})]})}function W(e){return"empiredrop"===e||"csdrop"===e}function $(e,t,a){return(null==e?void 0:e.leaderboardSource)===t&&(!W(t)||"service"===e.source&&(!a||e.periodId===a))}function J(e,t){if("source"===t.type)return t.source===e.source?e:{...e,source:t.source,period:void 0,metadata:null};if("period"===t.type)return t.period===e.period?e:{...e,period:t.period,metadata:null};if(t.source!==e.source||t.period!==e.period)return e;let a=$(t.payload,t.source,t.period)?t.payload:null;return{...e,metadata:a,availablePeriods:a?{...e.availablePeriods,[e.source]:a.availablePeriods}:e.availablePeriods}}function Q(e){var t;let{periods:a,selectedPeriod:s,onSelect:n,accentColor:l,showCurrentFallback:i=!1}=e,c=i&&!a.some(e=>e.isCurrent);if(a.length<=1&&!c)return null;let o=null!=s?s:null==(t=a.find(e=>e.isCurrent))?void 0:t.id;return(0,r.jsxs)("div",{className:"mb-4 flex flex-wrap items-center gap-2",children:[c&&(0,r.jsxs)("button",{type:"button",onClick:()=>n(void 0),"aria-pressed":!s,className:(0,A.cn)("inline-flex items-center gap-1.5 rounded-full border px-3 py-1 text-xs font-medium transition",s?"border-white/10 bg-white/5 text-white/45 hover:bg-white/10 hover:text-white":"border-transparent"),style:s?void 0:{backgroundColor:"".concat(l,"26"),borderColor:"".concat(l,"4d"),color:l},children:[(0,r.jsx)(C,{className:"h-3 w-3"})," Actual"]}),a.map(e=>{let t=e.id===o;return(0,r.jsxs)("button",{type:"button","aria-pressed":t,onClick:()=>n(e.isCurrent?void 0:e.id),className:(0,A.cn)("inline-flex items-center gap-1.5 rounded-full border px-3 py-1 text-xs font-medium transition",t?"border-transparent":"border-white/10 bg-white/5 text-white/45 hover:bg-white/10 hover:text-white"),style:t?{backgroundColor:"".concat(l,"26"),borderColor:"".concat(l,"4d"),color:l}:void 0,children:[e.isCurrent&&(0,r.jsx)(C,{className:"h-3 w-3"}),e.label,e.isCurrent&&(0,r.jsx)("span",{className:"ml-0.5 text-[10px] text-white/45",children:"Actual"})]},e.id)})]})}async function Z(e){let t=await fetch(e,{credentials:"include",cache:"no-store"});if(!t.ok)throw Error("Leaderboard request failed: ".concat(t.status));return t.json()}function K(e){var t;let{data:a}=e;return(null==(t=a.freshness)?void 0:t.stale)?(0,r.jsxs)("div",{role:"status",className:"mb-4 rounded-xl border border-amber-500/30 bg-amber-500/5 px-4 py-3 text-sm text-amber-200",children:[(0,r.jsx)("span",{className:"font-semibold",children:"Datos desactualizados. "}),"Las posiciones pueden haber cambiado en ","csdrop"===a.leaderboardSource?"CSDrop":"EmpireDrop","."]}):null}function ee(e){let{userId:t,season:a,source:n="andypsx",period:l,accentColor:i="#00ff7b",onMeta:c}=e,o="csdrop"===n?"CSDrop":"EmpireDrop",d=new URLSearchParams;!W(n)&&a&&d.set("season",String(a)),!W(n)&&t&&d.set("userId",t),n&&d.set("source",n),l&&d.set("period",l);let m=d.toString(),{data:u,error:h,isLoading:p}=(0,F.Ay)("/api/leaderboard".concat(m?"?".concat(m):""),Z,{refreshInterval:3e4,revalidateOnFocus:!1}),b=$(u,n,l)?u:void 0;return((0,s.useEffect)(()=>{null==c||c(!h&&b?b:null,n,l)},[b,h,c,n,l]),p&&!b)?(0,r.jsx)(T,{}):h||!b?(0,r.jsx)("div",{role:"alert",className:"rounded-2xl border border-white/[0.06] bg-white/[0.02] py-16 text-center text-sm text-white/40",children:"No se pudo cargar la clasificacion. Intenta de nuevo mas tarde."}):W(n)&&"no_race_for_period"===b.emptyReason?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(K,{data:b}),(0,r.jsxs)("div",{role:"status",className:"rounded-2xl border border-white/[0.06] bg-white/[0.02] px-5 py-16 text-center",children:[(0,r.jsx)(x.A,{className:"mx-auto mb-4 h-8 w-8",style:{color:i}}),(0,r.jsxs)("p",{className:"font-semibold text-white/80",children:["No hay datos de ",o," para este periodo."]}),(0,r.jsx)("p",{className:"mt-2 text-sm text-white/45",children:"Puedes consultar otro mes desde el selector."})]})]}):W(n)&&"no_active_race"===b.emptyReason?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(K,{data:b}),(0,r.jsxs)("div",{role:"status",className:"rounded-2xl border border-white/[0.06] bg-white/[0.02] px-5 py-16 text-center",children:[(0,r.jsx)(x.A,{className:"mx-auto mb-4 h-8 w-8",style:{color:i}}),(0,r.jsxs)("p",{className:"font-semibold text-white/80",children:["No hay ninguna carrera activa de ",o,"."]}),(0,r.jsxs)("p",{className:"mt-2 text-sm text-white/45",children:["La clasificacion aparecera cuando ",o," publique una nueva carrera."]})]})]}):(0,r.jsxs)(r.Fragment,{children:[W(n)&&(0,r.jsx)(K,{data:b}),W(n)&&0===b.users.length?(0,r.jsxs)("div",{role:"status",className:"rounded-2xl border border-white/[0.06] bg-white/[0.02] px-5 py-12 text-center",children:[(0,r.jsx)("p",{className:"font-semibold text-white/80",children:"finalized"===b.seasonStatus?"No hay participantes registrados en este periodo.":"Todavia no hay participantes en esta carrera."}),(0,r.jsxs)("p",{className:"mt-2 text-sm text-white/45",children:["Premios de la carrera: ",b.prizePoolLabel]})]}):(0,r.jsx)(R,{users:b.users,metric:b.metric,metricPrefix:b.metricPrefix,metricUnit:b.metricUnit,currency:b.currency,prizePoolHeading:W(n)?"Premios de la carrera":void 0,emptyMetricLabel:W(n)?"â":void 0,showTies:W(n),prizePoolLabel:b.prizePoolLabel,accentColor:i}),"gamdom"===b.leaderboardSource?(0,r.jsx)("div",{className:"mt-6 rounded-xl border border-amber-500/30 bg-amber-500/5 px-4 py-3.5 sm:px-5 sm:py-4",children:(0,r.jsxs)("div",{className:"space-y-4 text-left",children:[(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsx)(x.A,{className:"mt-0.5 h-5 w-5 shrink-0 text-amber-400"}),(0,r.jsxs)("p",{className:"text-sm leading-relaxed text-white/70 sm:text-base",children:["Se
1comprobara manualmente que cada usuario cumpla con las reglas de la tabla de clasificacion y no cometa abusos. No se permite apostar en los juegos originales de Gamdom."," ",(0,r.jsx)("span",{className:"font-semibold text-amber-400",children:"Las apuestas totales del 50% o mas en originales daran lugar a la descalificacion."})]})]}),(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsx)(x.A,{className:"mt-0.5 h-5 w-5 shrink-0 text-amber-400"}),(0,r.jsxs)("div",{className:"text-sm leading-relaxed text-white/70 sm:text-base",children:[(0,r.jsx)("p",{children:"Para poder aparecer en esta Leaderboard se deben cumplir los siguientes requisitos:"}),(0,r.jsxs)("ul",{className:"mt-2 list-disc space-y-1 pl-5",children:[(0,r.jsxs)("li",{children:["La cuenta debe haber sido creada bajo los codigos de afiliado ",(0,r.jsx)("span",{className:"font-medium text-amber-400",children:"Andypsx"})," ","o ",(0,r.jsx)("span",{className:"font-medium text-amber-400",children:"Topbonus"}),"."]}),(0,r.jsx)("li",{children:"En usuarios nuevos, la
1informacion puede tardar aproximadamente 24 horas en aparecer."})]})]})]})]})}):b.notices.length>0&&(0,r.jsx)("div",{className:"mt-6 rounded-xl border px-4 py-3.5 sm:px-5 sm:py-4",style:{background:"".concat(i,"0d"),borderColor:"".concat(i,"33")},children:(0,r.jsx)("div",{className:"space-y-3 text-left",children:b.notices.map(e=>(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsx)(x.A,{className:"mt-0.5 h-4 w-4 shrink-0",style:{color:i}}),(0,r.jsx)("p",{className:"text-xs leading-relaxed text-white/65 sm:text-sm",children:e})]},e))})}),(!W(n)||b.users.length>0)&&(0,r.jsx)("div",{className:"mt-6 rounded-2xl border border-white/[0.06] bg-white/[0.02] p-4 sm:mt-10 sm:p-6",children:(0,r.jsx)(V,{users:b.users,myPosition:b.myPosition,metric:b.metric,metricLabel:b.metricLabel,metricPrefix:b.metricPrefix,metricUnit:b.metricUnit,currency:b.currency,prizeCurrency:b.prizeCurrency,cadenceLabel:b.cadenceLabel,rankingMetricLabel:W(n)?b.metricLabel:void 0,accentColor:i})})]})}function et(e){let{availableSeasons:t,currentSeason:a,selectedSeason:s,onSelect:n}=e;if(t.length<=1)return null;let l=null!=s?s:a;return(0,r.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:t.map(e=>{let t=e===l,s=e===a;return(0,r.jsxs)("button",{type:"button",onClick:()=>n(e),className:(0,A.cn)("rounded-lg border px-3 py-1.5 text-xs font-bold uppercase tracking-wide transition",t?"border-[#00ff7b]/40 bg-[#00ff7b]/15 text-[#00ff7b]":"border-white/10 bg-white/5 text-white/60 hover:bg-white/10 hover:text-white"),children:["S",e,s&&(0,r.jsx)("span",{className:"ml-1 text-[9px] text-white/40",children:"actual"})]},e)})})}var ea=a(96416);function er(){return(0,r.jsxs)("div",{className:"flex w-full items-center justify-center gap-2 rounded-lg border border-amber-500/20 bg-amber-500/10 px-3 py-2 text-center text-xs text-amber-200/90 sm:text-sm",children:[(0,r.jsx)(b.A,{className:"h-4 w-4 shrink-0 text-amber-400"}),(0,r.jsxs)("span",{children:["Para una competici\xf3n justa en el Leaderboard, cada cuenta tiene un limite de ",(0,r.jsx)("strong",{className:"text-amber-300",children:"2 slots a la vez"}),"."]})]})}function es(){return(0,r.jsxs)("div",{className:"flex w-full items-center justify-center gap-2 rounded-lg border border-sky-500/20 bg-sky-500/10 px-3 py-2 text-center text-xs text-sky-200/90 sm:text-sm",children:[(0,r.jsx)(b.A,{className:"h-4 w-4 shrink-0 text-sky-400"}),(0,r.jsxs)("span",{children:["El ",(0,r.jsx)("strong",{className:"text-sky-300",children:"leaderboard de temporada"})," est\xe1 en pausa ahora mismo. Volver\xe1 con la pr\xf3xima temporada â tu progreso y tus Mochuelos no se ven afectados."]})]})}var en=a(93665),el=a(10346),ei=a(14474);let ec=["andypsx","gamdom"],eo=[{key:"andypsx",label:"PSXRewards",tab:"#00ff7b",bg:"#181A27",icon:(0,r.jsx)(E.L7,{className:"h-4 w-4"})},{key:"gamdom",label:"Gamdom",tab:"#4BBAFD",bg:"#181D27",icon:(0,r.jsx)(E.hm,{className:"h-4 w-4"})},{key:"empiredrop",label:"EmpireDrop",tab:"#FF4646",bg:"#1F181E",icon:(0,r.jsx)(E.zn,{className:"h-4 w-4"})},{key:"csdrop",label:"CSDrop",tab:"#00C8FF",bg:"#181D22",icon:(0,r.jsx)(E.l$,{className:"h-4 w-4"})}],ed={andypsx:[{number:"01",icon:i.A,title:"Registrate en Gamdom",color:"#4BBAFD",action:{label:"Ir a Gamdom",href:ea.Qo,external:!0},highlights:[{text:"ANDYPSX",accent:!0,color:"#00FF86"}],detail:(0,r.jsxs)(r.Fragment,{children:["Crea tu cuenta en Gamdom.com usando el codigo de referido"," ",(0,r.jsx)("span",{className:"font-bold text-[#00FF86]",children:"ANDYPSX"}),"."]})},{number:"02",icon:o,title:"Valida tu Cuenta",color:"#00ff7b",highlights:[{text:"PSXRewards",accent:!0},{text:"Vincular Gamdom",accent:!0}],detail:"Registrate en PSXRewards y vincula tu cuenta de Gamdom desde Perfil."},{number:"03",icon:d.A,title:"Reclama tus Recompensas",color:"#FFD54B",action:{label:"Ver Recompensas",href:"/bonus",external:!1},highlights:[{text:"Daily Rewards",accent:!0},{text:"Cada dia",accent:!1}],detail:"Reclama recompensas diarias para conseguir saldo y jugar."},{number:"04",icon:m.A,title:"Juega y Compite",color:"#FF6B6B",action:{label:"Ver Juegos",href:"/games",external:!1},highlights:[{text:"Cada apuesta = puntos",accent:!0},{text:"Leaderboard semanal",accent:!1}],detail:"Cada apuesta suma puntos automaticamente. Cuanto mas juegues, mas alto llegas."}],gamdom:[{number:"01",icon:i.A,title:"Registrate en Gamdom",color:"#4BBAFD",action:{label:"Ir a Gamdom",href:ea.Qo,external:!0},highlights:[{text:"ANDYPSX",accent:!0,color:"#00FF86"}],detail:"Crea tu cuenta bajo el codigo de referido ANDYPSX."},{number:"02",icon:u.A,title:"Reclama tu Bonus",color:"#00FF86",action:{label:"Ver Ofertas",href:"/gamdom-exclusive",external:!1},highlights:[{text:"15% de rakeback",accent:!0},{text:"Bonus diarios",accent:!0}],detail:"Recibe ofertas exclusivas desde el primer dia."},{number:"03",icon:m.A,title:"Juega y Acumula",color:"#FFD54B",action:{label:"Ver Juegos",href:"/games",external:!1},highlights:[{text:"Slots & Juegos",accent:!1},{text:"Wager automatico",accent:!0}],detail:"Tu wager en Gamdom se suma a la leaderboard mensual."},{number:"04",icon:x.A,title:"Gana Premios",color:"#FF6B6B",prizes:[{rank:"1\xba",amount:"$6,000",color:"#FFD54B"},{rank:"2\xba",amount:"$3,600",color:"#C0C0C0"},{rank:"3\xba",amount:"$2,400",color:"#CD7F32"}],detail:null}],empiredrop:[{number:"01",icon:i.A,title:"Registrate en EmpireDrop",color:"#FF4646",action:{label:"Ir a EmpireDrop",href:"https://empiredrop.com/r/andypsx",external:!0},highlights:[{text:"ANDYPSX",accent:!0,color:"#FF4646"}],detail:"Accede a EmpireDrop desde nuestro enlace de referido."},{number:"02",icon:m.A,title:"Participa en la carrera",color:"#FF8C32",highlights:[{text:"Periodo publicado",accent:!0}],detail:"Consulta las fechas y la unidad de clasificacion de la carrera activa."},{number:"03",icon:o,title:"Consulta tu posicion",color:"#FFD54B",highlights:[{text:"Datos sincronizados",accent:!0}],detail:"Las posiciones reflejan la ultima sincronizacion con EmpireDrop."},{number:"04",icon:x.A,title:"Premios de la carrera",color:"#FF4646",detail
1:"Consulta el premio de cada posicion en la clasificacion. Las condiciones de la carrera las establece EmpireDrop."}],csdrop:[{number:"01",icon:i.A,title:"Registrate en CSDrop",color:"#00C8FF",action:{label:"Ir a CSDrop",href:"https://csdrop.com/?ref=andypsx",external:!0},highlights:[{text:"ANDYPSX",accent:!0,color:"#00C8FF"}],detail:"Accede a CSDrop desde nuestro enlace de referido."},{number:"02",icon:m.A,title:"Participa en la carrera",color:"#00FFC8",highlights:[{text:"Periodo publicado",accent:!0}],detail:"Consulta las fechas y la unidad de clasificacion de la carrera activa."},{number:"03",icon:o,title:"Consulta tu posicion",color:"#FFD54B",highlights:[{text:"Datos sincronizados",accent:!0}],detail:"Las posiciones reflejan la ultima sincronizacion con CSDrop."},{number:"04",icon:x.A,title:"Premios de la carrera",color:"#00C8FF",detail:"Consulta el premio de cada posicion en la clasificacion. Las condiciones de la carrera las establece CSDrop."}]};function em(e){let{active:t,onSelect:a,sources:s}=e;return(0,r.jsx)("div",{className:"flex flex-wrap gap-1 rounded-xl border border-white/10 bg-white/5 p-1",children:s.map(e=>{let s=t===e.key;return(0,r.jsxs)("button",{type:"button",onClick:()=>a(e.key),className:(0,A.cn)("inline-flex min-h-10 items-center gap-1.5 rounded-lg px-4 text-sm font-medium transition-all",s?"border shadow-lg":"cursor-pointer text-zinc-400 hover:bg-white/5 hover:text-white"),style:s?{backgroundColor:"".concat(e.tab,"18"),borderColor:"".concat(e.tab,"4d"),color:e.tab,boxShadow:"0 4px 15px ".concat(e.tab,"1a")}:void 0,children:[e.icon,(0,r.jsx)("span",{children:e.label})]},e.key)})})}function eu(e){let{source:t,accentColor:a}=e,n=ed[t];return(0,r.jsxs)("div",{className:"mt-4 rounded-xl px-5 py-6",style:{background:"".concat(a,"0a"),border:"1px solid ".concat(a,"22")},children:[(0,r.jsx)("div",{className:"grid grid-cols-1 items-stretch gap-x-0 gap-y-4 lg:grid-cols-[1fr_auto_1fr_auto_1fr_auto_1fr]",children:n.map((e,t)=>(0,r.jsxs)(s.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-col gap-3 rounded-xl p-4",style:{background:"".concat(e.color,"06"),border:"1px solid ".concat(e.color,"15")},children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-xs font-black",style:{background:"".concat(e.color,"15"),border:"2px solid ".concat(e.color,"40"),color:e.color},children:e.number}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(e.icon,{className:"h-4 w-4",style:{color:e.color}}),(0,r.jsx)("h4",{className:"text-sm font-bold text-white",children:e.title})]})]}),e.prizes?(0,r.jsxs)("div",{className:"flex flex-col gap-1.5",children:[e.prizes.map(e=>(0,r.jsxs)("div",{className:"flex items-center justify-between rounded-lg px-3 py-1.5",style:{background:"".concat(e.color,"10"),border:"1px solid ".concat(e.color,"20")},children:[(0,r.jsx)("span",{className:"text-[11px] font-bold uppercase tracking-wider",style:{color:e.color},children:e.rank}),(0,r.jsx)("span",{className:"text-sm font-black",style:{color:e.color},children:e.amount})]},e.rank)),(0,r.jsx)("p",{className:"mt-0.5 text-[10px] text-white/30",children:"+ premios adicionales para el resto del ranking"})]}):(0,r.jsxs)(r.Fragment,{children:[e.highlights&&(0,r.jsx)("div",{className:"flex flex-wrap gap-1.5",children:e.highlights.map(t=>{var a;let s=null!=(a=t.color)?a:e.color;return(0,r.jsx)("span",{className:"rounded-md px-2.5 py-1 text-[11px] font-semibold",style:{background:t.accent?"".concat(s,"15"):"rgba(255,255,255,0.05)",color:t.accent?s:"rgba(255,255,255,0.6)",border:"1px solid ".concat(t.accent?"".concat(s,"25"):"rgba(255,255,255,0.08)")},children:t.text},t.text)})}),(0,r.jsx)("p",{className:"text-xs leading-relaxed text-white/40",children:e.detail})]}),e.action&&(e.action.external?(0,r.jsxs)("a",{href:e.action.href,target:"_blank",rel:"noopener noreferrer",className:"mt-auto inline-flex min-h-9 w-fit items-center gap-1 text-[11px] font-bold uppercase tracking-wider",style:{color:e.color},children:[e.action.label,(0,r.jsx)(h.A,{className:"h-3 w-3"})]}):(0,r.jsxs)(y(),{href:e.action.href,className:"mt-auto inline-flex min-h-9 w-fit items-center gap-1 text-[11px] font-bold uppercase tracking-wider",style:{color:e.color},children:[e.action.label,(0,r.jsx)(p.A,{className:"h-3 w-3"})]}))]}),t<n.length-1&&(0,r.jsx)(el.N,{fromColor:e.color,toColor:n[t+1].color})]},e.number))}),"andypsx"===t&&(0,r.jsx)("div",{className:"mt-5 rounded-xl border border-[#00ff7b]/15 bg-[#00ff7b]/5 p-4",children:(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsx)(b.A,{className:"mt-0.5 h-4 w-4 shrink-0 text-[#00ff7b]"}),(0,r.jsxs)("p",{className:"text-xs leading-relaxed text-white/60",children:[(0,r.jsx)("span",{className:"font-semibold text-[#00ff7b]",children:"Como se calculan los puntos:"})," ","cada apuesta suma puntos. Las ganancias no cuentan, solo las apuestas."]})]})})]})}function ex(){var e,t,a,i,c,o,d;let m=(0,ei.w)(),[u,h]=(0,s.useReducer)(J,{source:"gamdom",period:void 0,metadata:null,availablePerio
1ds:{}}),{source:p,period:b,metadata:j}=u,y=(0,s.useCallback)(e=>{h({type:"source",source:e})},[]),v=(0,s.useCallback)(e=>{h({type:"period",period:e})},[]),[N,C]=(0,s.useState)(void 0),[F,P]=(0,s.useState)(!1),[E,D]=(0,s.useState)({isAdmin:!1,csdropPublic:!1,empiredropPublic:!1});(0,s.useEffect)(()=>{let e=!0;return fetch("/api/leaderboard/sources",{credentials:"include",cache:"no-store"}).then(e=>e.ok?e.json():null).then(t=>{e&&t&&D({isAdmin:!0===t.isAdmin,csdropPublic:!0===t.csdropPublic,empiredropPublic:!0===t.empiredropPublic})}).catch(()=>{}),()=>{e=!1}},[]);let z=(o={csdropPublic:E.csdropPublic,empiredropPublic:E.empiredropPublic},d=E.isAdmin,eo.filter(e=>{var t;return t=e.key,!!ec.includes(t)||!!d||("csdrop"===t?!0===o.csdropPublic:"empiredrop"!==t||!0===o.empiredropPublic)}));(0,s.useEffect)(()=>{if(!z.some(e=>e.key===p)){var e,t;let a=null!=(t=null==(e=z[0])?void 0:e.key)?t:"gamdom";a!==p&&y(a)}},[z,p,y]);let L=null!=(t=eo.find(e=>e.key===p))?t:eo[0],M=null!=(a=null!=N?N:null==j?void 0:j.season)?a:null==j?void 0:j.currentSeason;(0,s.useEffect)(()=>{C(void 0)},[p]);let R=(0,s.useCallback)((e,t,a)=>{h({type:"metadata",source:t,period:a,payload:e})},[]),T=(null==j?void 0:j.seasonEndsAt)?new Date(j.seasonEndsAt):null,X=(null==j?void 0:j.graceEndsAt)?new Date(j.graceEndsAt):null,_=(null==j?void 0:j.seasonStartsAt)?new Date(j.seasonStartsAt):null;return(0,r.jsxs)("div",{className:"relative overflow-hidden text-white transition-colors duration-500",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-[400px]","aria-hidden":!0,style:{background:"radial-gradient(ellipse 70% 60% at 50% 0%, ".concat(L.tab,"14, transparent)")}}),(0,r.jsx)("div",{className:"relative mx-auto flex w-full max-w-7xl flex-col items-center justify-start pb-20 transition-all duration-500",children:(0,r.jsxs)(n.P.div,{className:"relative w-full",initial:!1,animate:{opacity:1,filter:"blur(0)"},transition:{duration:.5,ease:[.76,0,.24,1]},children:[(0,r.jsxs)("div",{className:"px-3 sm:mt-10 sm:px-6",children:[(0,r.jsx)(en.K,{className:"mb-4"}),(null==j?void 0:j.seasonLeaderboardPaused)?(0,r.jsx)("div",{className:"mb-4",children:(0,r.jsx)(es,{})}):null,"andypsx"===p&&(0,r.jsx)("div",{className:"mb-4",children:(0,r.jsx)(er,{})}),(0,r.jsxs)("div",{className:"mb-6 flex w-full flex-col items-start gap-4 sm:mb-8 sm:flex-row sm:items-center",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("h1",{className:"font-asset text-2xl font-bold sm:text-3xl",children:"Leaderboard"}),j&&(0,r.jsx)("span",{className:"flex items-center gap-1.5 rounded-lg border px-2.5 py-1 text-xs font-medium sm:text-sm",style:{backgroundColor:"".concat(L.tab,"15"),borderColor:"".concat(L.tab,"33"),color:L.tab},children:"andypsx"===p?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.A,{className:"h-3 w-3"}),"Season ",M]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.A,{className:"h-3 w-3"}),j.periodLabel]})})]}),(0,r.jsx)(em,{active:p,onSelect:y,sources:z})]}),"andypsx"===p&&j&&(0,r.jsx)("div",{className:"mb-4",children:(0,r.jsx)(et,{availableSeasons:j.availableSeasons,currentSeason:j.currentSeason,selectedSeason:N,onSelect:e=>C(e===j.currentSeason?void 0:e)})}),"andypsx"!==p&&(0,r.jsx)(Q,{periods:null!=(i=u.availablePeriods[p])?i:[],selectedPeriod:b,showCurrentFallback:W(p),onSelect:v,accentColor:L.tab}),(0,r.jsxs)("div",{className:(0,A.cn)("relative flex items-center justify-center",W(p)&&"sm:min-h-20"),children:[(0,r.jsx)("div",{children:W(p)?(0,r.jsx)(S,{meta:j,source:p}):(0,r.jsx)(k,{targetDate:T,seasonStatus:null!=(c=null==j?void 0:j.seasonStatus)?c:"open",graceEndsAt:X,seasonStartsAt:_})}),(0,r.jsxs)("button",{type:"button",onClick:()=>P(e=>!e),className:"absolute right-0 top-1/2 hidden shrink-0 -translate-y-1/2 cursor-pointer items-center gap-2 rounded-xl px-5 py-3 font-bold uppercase tracking-wider text-[#131620] transition-all hover:scale-105 sm:flex",style:{background:F?"linear-gradient(135deg, #FFD54B, #F0A030)":"linear-gradient(135deg, #FFD54BCC, #F0A03099)",boxShadow:"0 0 20px rgba(255,213,75,0.3), 0 4px 12px rgba(255,213,75,0.2)",border:"1px solid rgba(255,213,75,0.5)"},"aria-expanded":F,children:[(0,r.jsxs)("span",{className:"flex flex-col items-start leading-tight",children:[(0,r.jsx)("span",{className:"text-xs",children:"Qu
1iero"}),(0,r.jsx)("span",{className:"text-sm",children:"Participar!"})]}),F?(0,r.jsx)(g.A,{className:"h-4 w-4"}):(0,r.jsx)(w.A,{className:"h-4 w-4"})]})]}),(0,r.jsx)(l.N,{children:F&&(0,r.jsx)(n.P.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"overflow-hidden",children:(0,r.jsx)(eu,{source:p,accentColor:L.tab})})})]}),(0,r.jsx)(l.N,{mode:"wait",children:(0,r.jsx)(n.P.div,{initial:{opacity:0,filter:"blur(4px)"},animate:{opacity:1,filter:"blur(0)"},exit:{opacity:0},transition:{duration:.25},className:"w-full",children:(0,r.jsx)("div",{className:"relative flex h-auto items-center justify-center rounded-lg px-3 py-3 sm:px-6 sm:py-5",children:(0,r.jsx)("div",{className:"w-full text-center text-white",children:(0,r.jsx)(ee,{userId:"authenticated"===m.status?null==(e=m.user)?void 0:e.id:null,season:N,source:p,period:b,accentColor:L.tab,onMeta:R})})})},p)})]})})]})}},10346:(e,t,a)=>{"use strict";a.d(t,{N:()=>l});var r=a(6733),s=a(64665);let n={sm:"hidden items-center justify-center px-2 sm:flex",lg:"hidden items-center justify-center px-2 lg:flex"};function l(e){let{fromColor:t,toColor:a,breakpoint:l="lg"}=e,i=(0,s.useId)();return(0,r.jsx)("div",{className:n[l],"aria-hidden":"true",children:(0,r.jsxs)("div",{className:"relative flex h-8 w-8 items-center justify-center",children:[(0,r.jsx)("div",{className:"absolute inset-0 rounded-full",style:{background:"radial-gradient(circle, ".concat(a,"30, transparent 70%)"),filter:"blur(6px)"}}),(0,r.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",className:"relative z-10",children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:i,x1:"6",y1:"14",x2:"22",y2:"14",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{offset:"0",stopColor:t,stopOpacity:"0.8"}),(0,r.jsx)("stop",{offset:"1",stopColor:a,stopOpacity:"0.9"})]})}),(0,r.jsx)("path",{d:"M10 7l7 7-7 7",stroke:"url(#".concat(i,")"),strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})]})})}},14474:(e,t,a)=>{"use strict";a.d(t,{w:()=>s});var r=a(64665);function s(){let[e,t]=(0,r.useState)({user:null,status:"loading"});return(0,r.useEffect)(()=>{let e=!0;return fetch("/api/auth/get-session",{credentials:"include",cache:"no-store"}).then(e=>e.ok?e.json():null).then(a=>{var r;if(!e)return;let s=null!=(r=null==a?void 0:a.user)?r:null;t({user:s,status:s?"authenticated":"unauthenticated"})}).catch(()=>{e&&t({user:null,status:"unauthenticated"})}),()=>{e=!1}},[]),e}},31282:(e,t,a)=>{"use strict";a.d(t,{cq:()=>c,gh:()=>o,hl:()=>d});var r=a(51633),s=a(76643),n=a(21568),l=a(59946);function i(e){var t,a;return null!=(a=null!=(t=n.x[e])?t:s.Yc[e])?a:""}function c(e){let t=(e.provider||"").toLowerCase();if(!e.game)return null;if("nolimit"===t){let t=i(e.game);return t?{src:t,fallback:(0,l.u)("/games/".concat(e.game,"/bg.png"))}:{src:(0,l.u)("/games/".concat(e.game,"/bg.png")),fallback:null}}if("bgaming"===t)return{src:(0,l.u)("/games/bgaming/".concat(e.game,".webp")),fallback:(0,r.wY)(t,e.game)};if("wickedgames"===t){let t=e.game.replace(/^wicked_/i,"").toLowerCase();return{src:(0,l.u)("/games/wickedgames/".concat(t,".webp")),fallback:null}}return{src:(0,l.u)("/games/".concat(t,"/").concat(e.game,".webp")),fallback:null}}function o(e){let t=(e.provider||"").toLowerCase();return e.game?"nolimit"!==t||i(e.game)?null:(0,l.u)("/games/".concat(e.game,"/icon.png")):null}function d(e){let t=(e.provider||"").toLowerCase();return t&&e.game?"/games/slots/".concat(t,"/").concat(encodeURIComponent(e.game)):"/games"}},43432:(e,t,a)=>{Promise.resolve().then(a.bind(a,8593))},56518:(e,t,a)=>{"use strict";a.d(t,{h:()=>r});let r={enabled:!1,id:"s13-1semana-2026-06",emoji:"\uD83C\uDF89",headline:"Recompensas diarias",body:"1 semana de recompensas PSX diarias.",short:"1 semana de recompensas PSX diarias."}},69908:(e,t,a)=>{"use strict";a.d(t,{m:()=>o});var r=a(6733),s=a(64665),n=a(75052),l=a(46621),i=a(25195),c=a(72087);let o=e=>{let{children:t,content:a,position:o="top",className:d,delay:m=300,coords:u}
1=e,[x,h]=(0,s.useState)(!1),[p,b]=(0,s.useState)(!1),[f,g]=(0,s.useState)({x:0,y:0}),w=(0,s.useRef)(null),j=(0,s.useRef)(null),y=(0,s.useRef)(null),v=()=>{let e=0,t=0;if(u)e=u.x,t=u.y;else if(w.current){var a,r;let s=w.current.getBoundingClientRect(),n=null!=(r=null==(a=j.current)?void 0:a.offsetWidth)?r:0;e=s.left+s.width/2-n/2,t="bottom"===o?s.bottom+10:s.top-10}g({x:e,y:t})};return(0,s.useEffect)(()=>{b(!0)},[]),(0,s.useEffect)(()=>{x&&v()},[x]),(0,s.useEffect)(()=>()=>{y.current&&clearTimeout(y.current)},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{ref:w,onMouseEnter:()=>{y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{h(!0),v()},m)},onMouseLeave:()=>{y.current&&clearTimeout(y.current),h(!1)},className:"inline-block relative",children:t}),p&&(0,n.createPortal)((0,r.jsx)(l.N,{children:x&&(0,r.jsxs)(i.P.section,{ref:j,variants:{hidden:{opacity:0,scale:.8,y:"top"===o?10:"bottom"===o?-10:0,x:"left"===o?10:"right"===o?-10:0},visible:{opacity:1,scale:1,y:0,x:0},exit:{opacity:0,scale:.8,y:"top"===o?10:"bottom"===o?-10:0,x:"left"===o?10:"right"===o?-10:0}},initial:"hidden",animate:"visible",exit:"exit",transition:{duration:.2,ease:"easeOut"},className:(0,c.cn)(u?"!absolute z-[999999] !top-0 !left-1/2 -translate-x-1/2 px-3 py-2 text-sm text-white bg-background-secondary rounded-lg shadow-lg pointer-events-none":"fixed z-[999999] px-3 py-2 text-sm text-white bg-background-secondary rounded-lg shadow-lg pointer-events-none","border border-background-secondary backdrop-blur-sm",!u&&"-top-28",d),style:{left:f.x,top:f.y,transform:u?"translateX(-50%) translateY(-100%)":void 0},children:[a,(0,r.jsx)("span",{className:(0,c.cn)("absolute w-2 h-2 bg-background-secondary border border-white/5 rotate-45","top"===o&&"bottom-[-5px] left-1/2 transform -translate-x-1/2 border-t-0 border-l-0","bottom"===o&&"top-[-5px] left-1/2 transform -translate-x-1/2 border-b-0 border-r-0","left"===o&&"right-[-5px] top-1/2 transform -translate-y-1/2 border-l-0 border-b-0","right"===o&&"left-[-5px] top-1/2 transform -translate-y-1/2 border-r-0 border-t-0")})]})}),document.body)]})}},72087:(e,t,a)=>{"use strict";a.d(t,{a:()=>l,cn:()=>n});var r=a(65210),s=a(36774);function n(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,s.QP)((0,r.$)(t))}let l=e=>{let t=Math.abs(e),a=e<0?"-":"";return t>=1e9?{value:"".concat(a).concat((t/1e9).toFixed(2)),suffix:"B"}:t>=1e6?{value:"".concat(a).concat((t/1e6).toFixed(2)),suffix:"M"}:t>=1e3?{value:"".concat(a).concat((t/1e3).toFixed(2)),suffix:"K"}:{value:new Intl.NumberFormat("es-ES",{minimumFractionDigits:2,maximumFractionDigits:2}).format(e),suffix:""}}},89339:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(65776).A)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},93665:(e,t,a)=>{"use strict";a.d(t,{K:()=>i});var r=a(6733),s=a(70006),n=a(56518),l=a(72087);function i(e){let{className:t}=e;return n.h.enabled?(0,r.jsxs)("div",{className:(0,l.cn)("flex w-full items-center justify-center gap-2 rounded-lg border border-emerald-400/30 bg-emerald-500/10 px-3 py-2 text-center text-xs text-emerald-200/90 sm:text-sm",t),children:[(0,r.jsx)(s.A,{className:"h-4 w-4 shrink-0"}),(0,r.jsxs)("span",{children:[(0,r.jsxs)("span",{"aria-hidden":!0,children:[n.h.emoji," "]}),n.h.short]})]}):null}},95708:(e,t,a)=>{"use strict";a.d(t,{Ez:()=>c,Xy:()=>i,cs:()=>r,rU:()=>s});let r="currency_psx",s="currency_mochuelo",n={[r]:{es:"PSX",en:"PSX"},[s]:{es:"Mochuelos",en:"Mochuelos"},currency_raffle:{es:"Tickets",en:"Tickets"},USD:{es:"USD",en:"USD"}},l={PSX:r,MOCHUELOS:s,Mochuelos:s,COINS:s};function i(e){var t;return e?n[e]?e:null!=(t=l[e])?t:e:null}function c(e){var t,a;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es",s=i(e);return s?null!=(a=null==(t=n[s])?void 0:t[r])?a:s:""}},95933:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(65776).A)("coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]])},96416:(e,t,a)=>{"use strict";a.d(t,{Qo:()=>r,qv:()=>s});
1let r="https://gamdom.io/r/andypsx";function s(e){let{claimed:t,max:a}=function(e){let[t,a]=e.split("/");return{claimed:parseInt(t,10)||0,max:parseInt(a,10)||0}}(e.claims);return a>0&&t>=a}}},e=>{var t=t=>e(e.s=t);e.O(0,[5710,4133,5195,4707,8769,3843,3219,6974,2542,7358],()=>t(43432)),_N_E=e.O()}]);
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.