PageSourceSearch

https://andypsx.com/_next/static/chunks/1837-5cdadbfa75c9e2fc.js

js andypsx.com collected 2026-10-02 01:23:16 UTC 43,773 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1837],{11837:(e,t,s)=>{s.d(t,{Header:()=>el});var a=s(6733),n=s(46621),l=s(25195),r=s(71987),i=s(72517),o=s(7995),c=s(64298),d=s(37954),u=s(85710),x=s.n(u),m=s(51971),h=s(64665),p=s(93429);let f="https://live.andypsx.com";function b(e){let{live:t}=e;return(0,a.jsxs)("span",{className:"relative inline-flex h-2 w-2 shrink-0",children:[t&&(0,a.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-red-500/70"}),(0,a.jsx)("span",{className:"relative inline-flex h-2 w-2 rounded-full ".concat(t?"bg-red-500":"bg-white/30")})]})}function g(e){let{mobile:t=!1,onClick:s}=e,{live:n,viewers:l}=function(){let[e,t]=(0,h.useState)(!1),[s,a]=(0,h.useState)(0);return(0,h.useEffect)(()=>{let e=!1,s=async()=>{try{var s;let n=await fetch("/api/live-status",{cache:"no-store"});if(!n.ok)return;let l=await n.json();if(e)return;t(!0===l.isLive),a(null!=(s=l.viewerCount)?s:0)}catch(e){}};s();let n=setInterval(s,6e4);return()=>{e=!0,clearInterval(n)}},[]),{live:e,viewers:s}}(),r="Live";return t?(0,a.jsxs)(x(),{href:f,target:"_blank",rel:"noopener noreferrer",onClick:s,className:"flex items-center justify-between rounded-xl border border-white/[0.06] bg-white/[0.03] px-4 py-3 text-sm font-semibold text-white/75",children:[(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)(b,{live:n}),r]}),n&&l>0&&(0,a.jsx)("span",{className:"text-xs text-white/50",children:l})]}):(0,a.jsxs)(x(),{href:f,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 rounded-lg px-3 py-2 text-[13px] font-semibold text-white/70 transition hover:bg-white/5 hover:text-white",children:[(0,a.jsx)(b,{live:n}),r,n&&l>0&&(0,a.jsxs)("span",{className:"text-white/45",children:["\xb7 ",l]})]})}var w=s(70006),v=s(6242),j=s(71825),y=s(75052),N=s(13656),k=s(63416),C=s(93665),S=s(14197),E=s(69908),M=s(29662),P=s(95708);function L(e){return new Intl.NumberFormat("es-ES",{minimumFractionDigits:2,maximumFractionDigits:2}).format(e)}function _(e){return new Intl.NumberFormat("es-ES",{minimumFractionDigits:0,maximumFractionDigits:0}).format(e)}function T(){return"undefined"!=typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():"".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2))}let B={exchange:{endpoint:"/api/user/exchange",buildBody:(e,t)=>{let{amount:s}=e;return{amount:s,idempotencyKey:t}},mapSuccess:e=>{var t,s,a,n;return{exchanged:null!=(t=e.exchanged)?t:null,psxCredited:null!=(s=e.psxCredited)?s:null,newCoinsBalance:null!=(a=e.newCoinsBalance)?a:null,newPsxBalance:null!=(n=e.newPsxBalance)?n:null}}},shopPurchase:{endpoint:"/api/shop/purchase",buildBody:(e,t)=>{let{itemId:s}=e;return{itemId:s,idempotencyKey:t}},mapSuccess:e=>{var t,s;return{purchaseId:null!=(t=e.purchaseId)?t:null,newCoinsBalance:null!=(s=e.newCoinsBalance)?s:null}}}};async function R(e,t,s){var a,n;let l,r,i=B[e],o=null!=(a=null==s?void 0:s.attemptKey)?a:T();try{l=await fetch(i.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(i.buildBody(t,o))}),r=null!=(n=await l.json().catch(()=>({})))?n:{}}catch(e){return{ok:!1,compensation:!1,errorMessage:"Error de conexi\xf3n.",status:0,supportCode:o}}let c=!0===r.compensation,d="string"==typeof r.idempotencyKey?r.idempotencyKey:o;return c?{ok:!1,compensation:!0,supportCode:d,errorMessage:"string"==typeof r.error?r.error:"Error de compensaci\xf3n. Contacta soporte.",status:l.status}:l.ok&&!1!==r.success?{ok:!0,compensation:!1,supportCode:d,data:i.mapSuccess?i.mapSuccess(r):r,status:l.status}:{ok:!1,compensation:!1,supportCode:d,code:"string"==typeof r.code?r.code:void 0,errorMessage:"string"==typeof r.error?r.error:"No se pudo completar la operaci\xf3n.",status:l.status}}var I=s(72087),z=s(63843),F=s(57265);function A(e){return e>=3?{text:"bg-gradient-to-r from-amber-200 via-yellow-300 to-amber-400 bg-clip-text text-transparent drop-shadow-[0_0_6px_rgba(250,204,21,0.35)]",icon:"text-yellow-300",sparkles:!0}:2===e?{text:"text-white drop-shadow-[0_0_5px_rgba(255,255,255,0.4)]",
1icon:"text-white/90",sparkles:!0}:{text:"text-emerald-300",icon:"text-emerald-300",sparkles:!1}}let D="Conversi\xf3n a PSX bloqueada: tu c\xf3digo de afiliado no est\xe1 habilitado para esto. Contacta soporte si crees que deber\xedas tener acceso.";function U(e){let{status:t}=e,s=A(t.tierNumber);return(0,a.jsx)(E.m,{position:"bottom",delay:0,content:(0,a.jsxs)("div",{className:"w-56 space-y-1 text-left",children:[(0,a.jsx)("p",{className:"mb-1 text-[11px] font-semibold uppercase tracking-wide text-white/60",children:"Niveles de intercambio"}),F.gs.map(e=>{let s=A(e.tier),n=e.tier===t.tierNumber;return(0,a.jsxs)("div",{className:(0,I.cn)("flex items-center justify-between gap-3 rounded-md px-2 py-1",n&&"bg-white/10"),children:[(0,a.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,a.jsxs)("span",{className:(0,I.cn)("inline-flex items-center gap-1 font-semibold",s.text),children:[s.sparkles&&(0,a.jsx)(w.A,{className:(0,I.cn)("h-3 w-3",s.icon)}),e.name]}),(0,a.jsx)("span",{className:"text-[10px] text-white/35",children:e.minBalance>0?"Desde ".concat(_(e.minBalance)," Mochuelos"):"Cualquier saldo"})]}),(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 whitespace-nowrap text-right text-[11px] text-white/60",children:[_(e.cap)," / temp."]})]},e.tier)}),(0,a.jsx)("p",{className:"pt-1 text-[10px] text-white/40",children:"Tu nivel sube seg\xfan tu saldo de Mochuelos."})]}),children:(0,a.jsxs)("span",{className:(0,I.cn)("inline-flex cursor-help items-center gap-1 font-semibold",s.text),children:[s.sparkles&&(0,a.jsx)(w.A,{className:(0,I.cn)("h-3.5 w-3.5 animate-pulse",s.icon)}),t.tierName]})})}function X(e){let{mochuelos:t,onClose:s,onSuccess:n}=e,[r,i]=(0,h.useState)(null);(0,h.useEffect)(()=>{let e=!0;return fetch("/api/user/exchange",{credentials:"include"}).then(e=>e.ok?e.json():null).then(t=>{e&&t&&"number"==typeof t.remaining&&i(t)}).catch(()=>{}),()=>{e=!1}},[]);let o=Math.max(0,Math.min(t,r?r.remaining:F.J5)),c=r&&r.tierCap>0?Math.min(100,r.usedThisSeason/r.tierCap*100):0,d=r?Math.max(0,r.tierCap-r.usedThisSeason):0,u=!!r&&d<=0,x=!!r&&!u&&d<=.1*r.tierCap,m=(null==r?void 0:r.affiliateLocked)===!0,[p,f]=(0,h.useState)(100),[b,g]=(0,h.useState)(!1),[w,j]=(0,h.useState)(!1),k=(0,h.useRef)(T());(0,h.useEffect)(()=>{f(e=>Math.min(e,o))},[o]);let M=p*F.n,B=p>0&&p<=o&&!m,I=async()=>{if(B&&!b){g(!0);try{var e,t,a,l;let r=await R("exchange",{amount:p},{attemptKey:k.current});if(r.compensation){N.oR.error(null!=(t=r.errorMessage)?t:"Error de compensaci\xf3n. Contacta soporte."),s();return}if(!r.ok){if("GAMDOM_NOT_VERIFIED"===r.code)return void j(!0);N.oR.error(null!=(a=r.errorMessage)?a:"No se pudo completar el intercambio.");return}let i=Number(null!=(l=null==(e=r.data)?void 0:e.exchanged)?l:p);N.oR.success("\xa1Intercambiados ".concat(i," ").concat((0,P.Ez)(P.rU)," por ").concat(i," ").concat((0,P.Ez)(P.cs),"!")),k.current=T(),n(i),s()}finally{g(!1)}}};return"undefined"==typeof document?null:(0,y.createPortal)((0,a.jsxs)("div",{className:"fixed inset-0 z-[10001] flex items-center justify-center p-4",children:[(0,a.jsx)(l.P.div,{animate:{opacity:1},className:"absolute inset-0 bg-background/70 backdrop-blur-md",exit:{opacity:0},initial:{opacity:0}
1,onClick:s}),(0,a.jsxs)(l.P.div,{animate:{opacity:1,scale:1,y:0},className:"relative z-10 max-h-[90vh] w-full max-w-lg overflow-y-auto rounded-2xl border border-white/10 bg-background px-4 py-5 shadow-2xl sm:py-7",exit:{opacity:0,scale:.95,y:20},initial:{opacity:0,scale:.95,y:20},children:[(0,a.jsx)("h1",{className:"mb-1 text-lg font-bold uppercase text-white sm:mb-2 sm:text-xl",children:"Intercambio de puntos"}),(0,a.jsx)("p",{className:"mb-3 text-sm text-white/50 sm:mb-4",children:"Convierte tus Mochuelos a PSX (1:1)"}),w&&(0,a.jsxs)("div",{className:"flex flex-col items-center gap-4 rounded-2xl border border-red-500/50 bg-red-500/10 px-5 py-7 text-center",role:"alert",children:[(0,a.jsx)("h2",{className:"text-base font-black uppercase tracking-wide text-red-400",children:"Cuenta no verificada"}),(0,a.jsx)("p",{className:"text-sm leading-relaxed text-white/80",children:"Verifica tu cuenta en live.andypsx.com para canjear Mochuelos por PSX."}),(0,a.jsx)("a",{className:"w-full rounded-2xl bg-red-500 px-6 py-3 text-base font-bold text-white transition-all hover:-translate-y-0.5 hover:bg-red-600 active:translate-y-0",href:"https://live.andypsx.com",rel:"noopener noreferrer",target:"_blank",children:"Verificar en live.andypsx.com"}),(0,a.jsx)("button",{className:"text-xs font-semibold uppercase tracking-wide text-white/40 transition-colors hover:text-white/70",onClick:s,type:"button",children:"Cerrar"})]}),!w&&r&&(0,a.jsxs)("div",{className:"mb-3 flex flex-col gap-1.5 rounded-xl border border-white/10 bg-secondary/40 px-3 py-2 sm:mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,a.jsx)(U,{status:r}),(0,a.jsx)("span",{className:u?"font-semibold text-red-400":x?"font-semibold text-yellow-400":"text-white/60",children:u?"L\xedmite de temporada alcanzado":"Restan ".concat(_(d))})]}),(0,a.jsx)("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-white/10",children:(0,a.jsx)("div",{className:"h-full rounded-full transition-all ".concat(u?"bg-red-500":x?"bg-yellow-400":"bg-accent"),style:{width:"".concat(c,"%")}})}),(0,a.jsxs)("div",{className:"flex items-center justify-between text-[11px] text-white/45 tabular-nums",children:[(0,a.jsxs)("span",{children:["Usado: ",_(r.usedThisSeason)]}),(0,a.jsxs)("span",{className:"inline-flex items-center gap-1",children:["M\xe1x temporada: ",_(r.tierCap)]})]}),(0,a.jsx)(C.K,{className:"mt-1"})]}),!w&&(0,a.jsxs)("div",{className:"relative space-y-1.5",children:[(0,a.jsxs)("div",{className:"space-y-2 rounded-2xl bg-secondary px-2 py-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between px-4",children:[(0,a.jsx)("span",{className:"text-sm text-white/70",children:"Env\xedas"}),(0,a.jsxs)("span",{className:"text-sm text-green-400",children:["Max: ",_(o)]})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between px-4",children:[(0,a.jsx)("input",{className:"w-full border-none bg-transparent text-2xl font-bold tabular-nums text-white outline-none [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",inputMode:"numeric",max:o,min:0,onChange:e=>{let t=e.target.value;if(""===t)return void f(0);let s=Number.parseInt(t,10);Number.isNaN(s)||s<0||f(Math.min(s,o))},pattern:"[0-9]*",placeholder:"0",step:1,type:"number",value:p||""}),(0,a.jsxs)("div",{className:"flex w-1/2 items-center justify-end gap-2 rounded-2xl bg-secondary py-2",children:[(0,a.jsx)(z.i4,{className:"h-6 w-6 text-orange-500"}),(0,a.jsx)("span",{className:"font-medium text-white",children:(0,P.Ez)(P.rU)})]})]})]}),(0,a.jsx)("div",{className:"relative z-10 flex w-full justify-center py-1",children:(0,a.jsx)("svg",{className:"h-4 w-4 text-white/30",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M19 14l-7 7m0 0l-7-7m7 7V3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})})}),(0,a.jsxs)("div",{className:"space-y-2 rounded-2xl bg-secondary px-2 py-3",children:[(0,a.jsx)("div",{className:"flex items-center justify-between px-4",children:(0,a.jsx)("span",{className:"text-sm text-white/70",children:"Recibes"})}),(0,a.jsxs)("div",{className:"flex items-center justify-between px-4",children:[m?(0,a.jsx)(E.m,{content:D,position:"top",delay:0,children:(0,a.jsxs)("div",{className:"flex cursor-help items-center gap-2 text-2xl font-bold tabular-nums text-white/50",children:[(0,a.jsx)(v.A,{"aria-label":"Conversi\xf3n a PSX bloqueada",className:"h-5 w-5 text-red-400"}),L(M>0?M:0)]})}):(0,a.jsx)("div",{className:"text-2xl font-bold tabular-nums text-white",children:L(M>0?M:0)}),(0,a.jsxs)("div",{className:"flex items-center gap-2 rounded-2xl bg-secondary py-2",children:[(0,a.jsx)(z.L7,{className:"h-6 w-6 text-green-500"}),(0,a.jsx)("span",{className:"font-medium text-white",children:(0,P.Ez)(P.cs)})]})]})]}),(0,a.jsxs)("div",{className:"mt-4 flex gap-2 sm:mt-6",children:[m?(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)(E.m,{content:D,position:"top",delay:0,children:(0,a.jsxs)(S.Button,{className:"w-full rounded-2xl bg-green-500 py-3 text-base font-bold text-black disabled:cursor-not-allowed disabled:opacity-50 sm:py-4 sm:text-lg",disabled:!0,type:"button",children:[(0,a.jsx)(v.A,{"aria-hidden":!0,
1className:"mr-2 inline h-4 w-4"}),"Intercambiar"]})})}):(0,a.jsx)(S.Button,{className:"flex-1 rounded-2xl bg-green-500 py-3 text-base font-bold text-black hover:bg-green-600 disabled:cursor-not-allowed disabled:opacity-50 sm:py-4 sm:text-lg",disabled:b||!B,onClick:I,type:"button",children:b?"Procesando...":"Intercambiar"}),(0,a.jsx)(S.Button,{className:"rounded-2xl px-6 py-3 text-base font-bold sm:py-4 sm:text-lg",disabled:b,onClick:s,type:"button",variant:"secondary",children:"Cancelar"})]})]})]})]}),document.body)}function q(e){let{psx:t,mochuelos:s,onBalanceChanged:r}=e,[i,o]=(0,h.useState)(!1),[c,d]=(0,h.useState)(!1),u=(0,h.useRef)(null),{reason:x}=(0,M.s)(),p=(0,h.useCallback)(()=>{u.current&&clearTimeout(u.current),o(!0)},[]),f=(0,I.a)(s),b=(0,I.a)(t),g=(0,m.usePathname)(),w=/^\/games\/slots\/[^/]+\/[^/]+/.test(null!=g?g:"");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"flex h-full flex-row items-center gap-3 pr-3",children:(0,a.jsx)("div",{className:"inter-sans flex items-center gap-2 text-base font-bold",children:(0,a.jsx)("div",{className:"relative z-0 -m-12 p-12",onMouseLeave:()=>o(!1),children:(0,a.jsx)("div",{className:"relative -m-3 p-3",onMouseEnter:p,children:(0,a.jsxs)("div",{className:"pointer-events-auto relative flex cursor-pointer flex-col items-center gap-0.5 md:cursor-default",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(z.i4,{className:"h-3 w-3"}),(0,a.jsxs)("span",{className:"text-[11px] font-semibold tabular-nums text-white/70",children:[f.value,f.suffix&&(0,a.jsx)("span",{className:"ml-0.5 text-white/30",children:f.suffix})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(z.L7,{className:"h-4 w-4"}),w?(0,a.jsx)("span",{className:"text-xs font-bold uppercase tracking-wide text-accent sm:text-sm",children:"Jugando"}):(0,a.jsxs)("span",{className:"text-xs font-bold tabular-nums sm:text-sm",children:[b.value,b.suffix&&(0,a.jsx)("span",{className:"ml-0.5 font-semibold text-white/40",children:b.suffix})]})]}),(0,a.jsx)(n.N,{children:i&&(0,a.jsx)(l.P.div,{animate:{opacity:1,y:0,scale:1},className:"pointer-events-auto absolute left-1/2 top-[calc(100%+10px)] z-50 min-w-[210px] -translate-x-1/2 rounded-xl border border-white/10 bg-secondary-card p-3 shadow-xl",exit:{opacity:0,y:-4,scale:.97},initial:{opacity:0,y:-4,scale:.97},transition:{duration:.15,ease:"easeOut"},children:(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(z.L7,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"text-xs text-white/50",children:(0,P.Ez)(P.cs)}),(0,a.jsx)("span",{className:"ml-auto text-xs font-bold tabular-nums text-white",children:w?"—":L(t)})]}),(0,a.jsx)("div",{className:"h-px w-full bg-white/10"}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(z.i4,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"text-xs text-white/50",children:(0,P.Ez)(P.rU)}),(0,a.jsx)("span",{className:"ml-auto text-xs font-bold tabular-nums text-white",children:_(s)})]}),(0,a.jsx)("div",{className:"h-px w-full bg-white/10"}),"needs-discord"===x||"needs-gamdom"===x?(0,a.jsx)(E.m,{content:"needs-discord"===x?"Vincula tu cuenta de Discord para intercambiar Mochuelos por PSX.":"Vincula tu cuenta de Gamdom para intercambiar Mochuelos por PSX.",position:"bottom",delay:0,children:(0,a.jsx)("button",{"aria-disabled":!0,className:"w-full cursor-not-allowed rounded-lg bg-accent/40 py-1.5 text-center text-xs font-semibold text-white/50 transition",onClick:e=>e.preventDefault(),type:"button",children:"Cambiar puntos"})}):(0,a.jsx)("button",{className:"w-full rounded-lg bg-accent py-1.5 text-center text-xs font-semibold text-white transition hover:bg-accent/80",onClick:()=>{o(!1),d(!0)},type:"button",children:"Cambiar puntos"})]})})})]})})})})}),(0,a.jsx)(n.N,{children:c&&(0,a.jsx)(X,{mochuelos:s,onClose:()=>d(!1),onSuccess:()=>{d(!1),null==r||r()}})})]})}function O(e){let{level:t,progress:s,xpInLevel:n,xpNeeded:r}=e,i=function(e){let t=5*Math.floor(e/5)+5;return{level:t,levelsUntil:t-e}}(t),o=5-i.levelsUntil,c=(0,a.jsx)("div",{className:"flex h-full cursor-default items-center gap-2",children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-0.5",children:[(0,a.jsxs)("span",{className:"font-bold uppercase leading-none tracking-wider text-white drop-shadow-[0_0_8px_rgba(255,255,255,0.3)]",children:[(0,a.jsx)("span",{className:"text-[9px]",children:"LVL"})," ",(0,a.jsx)("span",{className:"text-sm",children:t})]}),(0,a.jsx)("div",{className:"flex items-center gap-[3px]","aria-label":"Progreso hacia pr\xf3ximo Ticket: ".concat(o," de ").concat(5),children:Array.from({length:5}).map((e,t)=>{let s=t<o;return(0,a.jsx)("span",{className:(0,I.cn)("h-[3px] w-[7px] rounded-[1px] transition-colors",s?"bg-[#00f2ff] shadow-[0_0_4px_#00f2ff]":"bg-white/15")},t)})})]})});return(0,a.jsx)(E.m,{content:(0,a.jsxs)("div",{className:"flex min-w-[220px] flex-col gap-2 text-xs",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,a.jsx)("span",{className:"text-white/50",children:"Nivel"}),(0,a.jsx)("span",{className:"font-semibold tabular-nums text-white",children:t})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,a.jsx)("span",{className:"text-white/50",children:"XP actual"}),(0,a.jsxs)("span",{className:"font-semibold tabular-nums text-white",children:[Math.floor(n).toLocaleStr
1ing("es-ES")," /"," ",Math.floor(r).toLocaleString("es-ES")]})]}),(0,a.jsx)("div",{className:"relative h-2 overflow-hidden rounded-full border border-white/5 bg-black/80 shadow-inner",children:(0,a.jsxs)(l.P.div,{animate:{width:"".concat(s,"%")},className:"relative h-full rounded-full bg-[#00f2ff] shadow-[0_0_12px_#00f2ff]",initial:{width:0},transition:{duration:1.2,ease:"circOut"},children:[(0,a.jsx)("div",{className:"absolute inset-0 rounded-full bg-gradient-to-b from-white/30 to-transparent"}),(0,a.jsx)("div",{className:"absolute bottom-0 right-0 top-0 w-1 bg-white/60 blur-[1px]"})]})})]}),(0,a.jsx)("div",{className:"my-1 border-t border-white/10"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-sky-500/10 bg-sky-500/5 p-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"rounded bg-sky-500/20 p-1.5",children:(0,a.jsx)(j.A,{className:"h-4 w-4 text-sky-400"})}),(0,a.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,a.jsx)("span",{className:"text-[11px] font-bold uppercase tracking-wider text-sky-400",children:"Pr\xf3ximo premio"}),(0,a.jsxs)("span",{className:"text-xs text-sky-200/80",children:["Consigues"," ",(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 align-baseline font-bold text-white",children:["+",5," Tickets",(0,a.jsx)(j.A,{"aria-hidden":"true",className:"h-3 w-3"})]})," ","de Raffle al llegar a"," ",(0,a.jsxs)("span",{className:"font-bold text-white",children:["LVL ",i.level]})]})]})]}),(0,a.jsxs)("div",{className:"inline-flex flex-wrap items-center gap-1 font-mono text-[10px] uppercase text-sky-400/90",children:["+",5," Tickets"," ",(0,a.jsx)(j.A,{"aria-hidden":"true",className:"h-2.5 w-2.5"})," cada ",5," ","niveles \xb7 ",i.levelsUntil," nivel",1===i.levelsUntil?"":"es"," restante",1===i.levelsUntil?"":"s"]})]})]}),delay:0,position:"bottom",children:c})}async function V(e){var t;let s=await fetch(e,{credentials:"include"});if(!s.ok)throw Error("raffle balance ".concat(s.status));return{balance:Number(null!=(t=(await s.json()).balance)?t:0)}}function K(){var e;let{data:t}=(0,k.Ay)("/api/raffles/me/balance",V,{revalidateOnFocus:!0,refreshInterval:3e4}),s=null!=(e=null==t?void 0:t.balance)?e:0;return(0,a.jsx)(E.m,{content:"Participaciones de sorteo",position:"bottom",delay:0,children:(0,a.jsxs)("div",{className:"flex h-full cursor-default items-center gap-1.5",children:[(0,a.jsx)(z.qy,{className:"h-4 w-4 text-sky-400"}),(0,a.jsx)("span",{className:"text-xs font-bold tabular-nums text-white sm:text-sm",children:s.toLocaleString("es-ES")})]})})}var G=s(32172),J=s(41570),H=s(14474),W=s(80279);let Q=[{label:"Inicio",href:"/"},{label:"LeaderBoard",href:"/leaderboard"},{label:"Slots",href:"/games"},{label:"Bonus Hunt",href:"/bonus-hunt"}],Y=[{label:"Gamdom Exclusive",href:"/gamdom-exclusive",icon:z.hm,exclusive:!0,description:"15% de rakeback \xb7 7 d\xedas"},{label:"Bonus",href:"/bonus",icon:z.$y,description:"Promociones activas"},{label:"Recompensas Diarias",href:"/daily-reward",icon:z.et,description:"Claim diario"},{label:"Tienda",href:"/shop",icon:z.f3,description:"Canjea tus puntos"}];function $(){return(0,a.jsx)(x(),{href:"/",className:"flex items-center","aria-label":"PSX Rewards inicio",children:(0,a.jsx)(d.default,{src:"/images/logo-psx.png",alt:"PSX Rewards",width:1802,height:347,priority:!0,className:"h-8 w-auto md:h-9"})})}function Z(){let[e,t]=(0,h.useState)(!1);return(0,a.jsxs)("div",{className:"relative",onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),children:[(0,a.jsxs)("button",{className:"inline-flex items-center gap-1 rounded-lg px-3 py-2 text-[13px] font-semibold text-white/70 transition hover:bg-white/5 hover:text-white",onClick:()=>t(!0),onFocus:()=>t(!0),type:"button",children:["Recompensas",(0,a.jsx)(r.A,{className:"h-4 w-4"})]}),(0,a.jsx)(n.N,{children:e&&(0,a.jsxs)(l.P.div,{animate:{opacity:1,y:0,scale:1},className:"absolute left-0 top-full z-[10000] w-[360px] rounded-2xl border border-white/10 bg-secondary-card/95 p-3 shadow-2xl backdrop-blur-xl",exit:{opacity:0,y:-8,scale:.98},initial:{opacity:0,y:-8,scale:.98},transition:{duration:.16},children:[(0,a.jsx)("p",{className:"px-2 pb-2 text-xs font-bold uppercase tracking-[0.18em] text-white/35",children:"Recompensas"}),(0,a.jsx)("div",{className:"grid gap-2",children:Y.map(e=>(0,a.jsxs)(x(),{className:"group flex items-center gap-3 rounded-xl border border-white/[0.06] bg-white/[0.03] p-3 transition hover:border-white/[0.14] hover:bg-white/[0.07]",href:e.href,onClick:()=>t(!1),children:[(0,a.jsx)("span",{className:"grid h-10 w-10 shrink-0 place-items-center rounded-xl border border-white/10 bg-white/5",style:{color:e.exclusive?"#00FF86":void 0},children:(0,a.jsx)(e.icon,{className:"h-5 w-5"})}),(0,a.jsxs)("span",{className:"min-w-0",children:[(0,a.jsxs)("span",{className:"flex items-center gap-2 text-sm font-bold text-white",children:[e.label,e.exclusive&&(0,a.jsx)("span",{className:"rounded-full border border-[#00FF86]/25 bg-[#00FF86]/10 px-2 py-0.5 text-[10px] uppercase tracking-wider text-[#00FF86]",children:"Exclusivo"})]}),(0,a.jsx)("span",{className:"mt-0.5 block truncate text-xs text-white/40",children:e.description})]})]},e.label))})]})})]})}function ee(){return(0,a.jsx)("div",{className:"hidden items-center gap-3 md:flex",children:(0,a.jsx)(p.M,{mode:"modal",asChild:!0,children:(0,a.jsx)(S.az.Button,{children:"Iniciar Sesi\xf3n"})})})}async function et(){let e=new AbortController,t=setTimeout(()=>e.abort(),4e3);try{await fetch("/api/auth/sign-out",{credentials:"include",method:"POST",headers:{"content-type":"application/json"},body:"{}",signal:e.signal})}catch(e){}finally{clearTimeout(t),window.location.assign("/")}}function es(e){let{children:t,destructive:s=!1,accent:n=!1,href:l,icon:r,onClick:i}=e,o="group flex h-12 w-full items-center gap-3 rounded-2xl border-2 px-3 text-left text-sm font-semibold transition ".concat(n?"border-red-500/30 bg-red-500/15 text-red-200 hover:border-red-500/50 hover:bg-red-500/25 hover:text-red-100":s?"border-transparent text-red-400 hover:border-white/10 hover:bg-red-500/10 hover:text-red-300":"border-transparent text-white/90 hover:border-white/10 hover:bg-white/10 hover:text-white"),c=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"grid h-7 w-7 shrink-0 place-items-center ".concat(n?"text-red-300 group-hover:text-red-200":s?"text-red-400/80 group-hover:text-red-300":"text-white/45 group-hover:text-white/75"),children:r}),(0,a.jsx)("span",{children:t})]});return l?(0,a.jsx)(x(),{className:o,href:l,onClick:i,children:c}):(0,a.jsx)("button",{className:o,onClick:i,type:"button",children:c})}function ea(){var e,t,s,r,o,c,d,u,p,f,b,g,w,v,j,y,N,k,C;let S=(0,H.w)(),E=(0,m.usePathname)(),M=(0,J.T5)(),L=(0,h.useRef)(null),[_,T]=(0,h.useState)(!1),[B,R]=(0,h.useState)(null);(0,h.useEffect)(()=>{T(!1)},[E]);let I=(0,h.useCallback)(async()=>{try{let e=await fetch("/api/user/overview",{credentials:"include",cache:"no-store"}),t=e.ok?await e.json():null;R(t)}catch(e){}},[]);(0,h.useEffect)(()=>
1{if("authenticated"!==S.status)return void R(null);let e=!0;return fetch("/api/user/overview",{credentials:"include",cache:"no-store"}).then(e=>e.ok?e.json():null).then(t=>{e&&R(t)}).catch(()=>{e&&R(null)}),()=>{e=!1}},[S.status]),function(e){let{enabled:t,onBalance:s,onRevoked:a}=e,[n,l]=(0,h.useState)("idle"),r=(0,h.useRef)(s),i=(0,h.useRef)(a);r.current=s,i.current=a,(0,h.useEffect)(()=>{var e;if(!t||!("EventSource"in window))return void l("idle");let s="BroadcastChannel"in window,a="locks"in navigator&&"function"==typeof(null==(e=navigator.locks)?void 0:e.request),n=s?new BroadcastChannel("psx_balance"):null,o=Math.random().toString(36).slice(2),c=()=>"visible"===document.visibilityState,d=!1,u=!1,x=null,m=0,h=new Map([[o,c()]]),p=()=>{for(let e of h.values())if(e)return!0;return!1},f=e=>{"number"==typeof e&&r.current(e)},b=e=>{l(e),null==n||n.postMessage({type:"status",status:e})},g=e=>{var t,s;let a=null!=(t=e.data)?t:{};switch(a.type){case"balance":f(a.psx);break;case"session":l("idle"),null==(s=i.current)||s.call(i);break;case"status":l(a.status);break;case"ping":null==n||n.postMessage({type:"pong",tabId:o,visible:c()});break;case"vis":case"pong":u&&"string"==typeof a.tabId&&(h.set(a.tabId,!!a.visible),j());break;case"bye":u&&"string"==typeof a.tabId&&(h.delete(a.tabId),j())}};null==n||n.addEventListener("message",g);let w=()=>{x||(m=0,(x=new EventSource("/api/profile-stream",{withCredentials:!0})).onopen=()=>{m=0,b("live")},x.addEventListener("balance",e=>{try{let t=JSON.parse(e.data);if("number"==typeof t.seq&&t.seq<=m)return;m=t.seq,f(t.psx),null==n||n.postMessage({type:"balance",psx:t.psx,seq:t.seq})}catch(e){}}),x.addEventListener("session",()=>{var e;v(),null==n||n.postMessage({type:"session"}),null==(e=i.current)||e.call(i)}),x.onerror=()=>b("reconnecting"))},v=()=>{null==x||x.close(),x=null,b("idle")},j=()=>{u&&(p()?w():v())},y=()=>{let e=c();h.set(o,e),null==n||n.postMessage({type:"vis",tabId:o,visible:e}),j()};document.addEventListener("visibilitychange",y);let N=()=>{u=!0,null==n||n.postMessage({type:"ping"}),j()},k=new AbortController,C=null;return a&&s?navigator.locks.request("psx_balance_leader",{mode:"exclusive",signal:k.signal},async()=>{d||(N(),await new Promise(e=>{C=e}),u=!1,v())}).catch(()=>{}):N(),()=>{d=!0,null==n||n.postMessage({type:"bye",tabId:o}),document.removeEventListener("visibilitychange",y),k.abort(),null==C||C(),v(),null==n||n.removeEventListener("message",g),null==n||n.close(),l("idle")}},[t])}({enabled:"authenticated"===S.status,onBalance:e=>R(t=>t?{...t,coins:{...t.coins,psx:e}}:t)});let F=(0,h.useRef)(null),[A,D]=(0,h.useState)(null),U=null!=(t=null==B||null==(e=B.coins)?void 0:e.psx)?t:null,X=/^\/games\/slots\/[^/]+\/[^/]+/.test(null!=E?E:"");if((0,h.useEffect)(()=>{if(null!==U){if(null===F.current){F.current=U;return}if(U>F.current&&!X){D({amount:U-F.current,key:Date.now()});let e=document.querySelector('[data-particle-target="psx-balance"]'),t=null==e?void 0:e.getBoundingClientRect();t&&W.N.getState().fire(t.left+t.width/2,t.top+t.height/2);let s=setTimeout(()=>D(null),2500);return F.current=U,()=>clearTimeout(s)}F.current=U}},[U,X]),(0,h.useEffect)(()=>{if(_)return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)};function e(e){var t;(null==(t=L.current)?void 0:t.contains(e.target))||T(!1)}function t(e){"Escape"===e.key&&T(!1)}},[_]),M)return null;if("authenticated"===S.status){let e=(null==(r=S.user)||null==(s=r.name)?void 0:s.trim())||"Mi Cuenta",t=(null==(o=S.user)?void 0:o.image)&&!S.user.image.includes("default-profile-pictures")?S.user.image:"/images/user.png",m=null!=(w=null==B||null==(c=B.level)?void 0:c.level)?w:1,h=null!=(v=null==B||null==(d=B.level)?void 0:d.progress)?v:0,E=null!=(j=null==B||null==(u=B.level)?void 0:u.xpInLevel)?j:0,M=null!=(y=null==B||null==(p=B.level)?void 0:p.xpNeeded)?y:0,R=null!=(N=null==B||null==(f=B.coins)?void 0:f.psx)?N:0,F=null!=(k=null==B||null==(b=B.coins)?void 0:b.mochuelos)?k:0,D=null!=(C=null==B||null==(g=B.user)?void 0:g.role)?C:"USER";return(0,a.jsxs)("div",{className:"relative z-10 flex items-center rounded-2xl border border-white/5 bg-secondary-card/80 py-2 pl-0 pr-1 backdrop-blur-md sm:px-3 sm:pr-1",ref:L,style:{paddingLeft:"0px"},children:[(0,a.jsxs)("div",{className:"relative flex items-center border-r border-white/10 px-2 md:px-3","data-particle-target":"psx-balance",children:[(0,a.jsx)(q,{mochuelos:F,psx:R,onBalanceChanged:I}),(0,a.jsx)(n.N,{children:null!==A&&!X&&(0,a.jsxs)(l.P.div,{className:"pointer-events-none absolute -top-1 left-1/2 z-50 -translate-x-1/2 whitespace-nowrap text-sm font-bold text-green-400 drop-shadow-[0_0_8px_rgba(74,222,128,0.9)]",initial:{opacity:0,y:0}
1,animate:{opacity:[0,1,1,0],y:[0,-10,-28,-48]},transition:{duration:2.2,ease:"easeOut",times:[0,.08,.65,1]},children:["+",new Intl.NumberFormat("es-ES",{maximumFractionDigits:2}).format(A.amount)," ",(0,P.Ez)(P.cs)," ",(0,a.jsx)(z.L7,{className:"inline h-4 w-4"})]},A.key)})]}),(0,a.jsxs)("div",{className:"flex w-auto items-center gap-2.5 px-2 sm:gap-3 sm:px-3 md:border-r md:border-white/10",children:[(0,a.jsx)(O,{level:m,progress:h,xpInLevel:E,xpNeeded:M}),(0,a.jsx)("span",{className:"h-7 w-px bg-white/10","aria-hidden":"true"}),(0,a.jsx)(K,{})]}),(0,a.jsx)("div",{className:"pl-1 sm:pl-3",children:(0,a.jsxs)("button",{"aria-expanded":_,"aria-haspopup":"menu","aria-label":"Abrir menu de perfil",className:"group relative flex cursor-pointer flex-row items-center rounded bg-transparent px-1 py-2 text-left transition hover:bg-white/15 hover:text-white",onClick:()=>T(!0),type:"button",children:[(0,a.jsx)("span",{className:"relative h-8 w-8 overflow-hidden rounded-full border-2 border-white/5 shadow-sm sm:h-10 sm:w-10",children:(0,a.jsx)("img",{alt:e,className:"h-full w-full object-cover",referrerPolicy:"no-referrer",src:t})}),(0,a.jsxs)("span",{className:"relative hidden flex-col items-start justify-center gap-0 pl-2 sm:flex",children:[(0,a.jsx)("span",{className:"max-w-[130px] truncate text-sm font-bold leading-tight text-white/90",children:e}),(0,a.jsxs)("span",{className:"text-[10px] font-medium leading-tight text-white/40",children:["Nivel ",m]})]}),(0,a.jsx)("span",{className:"ml-0.5",children:(0,a.jsx)("span",{className:"grid h-6 w-6 place-items-center sm:h-7 sm:w-7",children:(0,a.jsx)(z.Un,{className:"text-foreground/50 transition-all group-hover:text-foreground ".concat(_?"rotate-180 text-foreground":"group-hover:translate-y-0.5")})})})]})}),(0,a.jsx)(n.N,{children:_&&(0,a.jsxs)(l.P.div,{animate:{opacity:1,y:0,scale:1},className:"absolute right-0 top-[calc(100%+10px)] z-[10000] min-w-[270px] rounded-2xl border border-white/10 bg-transparent p-0 shadow-2xl",exit:{opacity:0,y:-8,scale:.98},initial:{opacity:0,y:-8,scale:.98},role:"menu",transition:{duration:.16},children:[(0,a.jsxs)("div",{className:"rounded-2xl bg-secondary-secondary px-2 py-2",children:["ADMIN"===D&&(0,a.jsx)(es,{href:"/admin",accent:!0,icon:(0,a.jsx)(i.A,{className:"h-5 w-5"}),children:"Admin"}),(0,a.jsx)(es,{href:"/account",icon:(0,a.jsx)(z.ny,{className:"h-5 w-5"}),onClick:()=>T(!1),children:"Perfil"}),(0,a.jsx)(es,{href:"/shop",icon:(0,a.jsx)(z.Kj,{className:"h-5 w-5"}),onClick:()=>T(!1),children:"Tienda"}),(0,a.jsx)(es,{destructive:!0,icon:(0,a.jsx)(z.o4,{className:"h-5 w-5"}),onClick:et,children:"Cerrar sesi\xf3n"})]}),(0,a.jsx)("div",{className:"mt-2 rounded-2xl bg-[#000f1b] px-2 py-2",children:(0,a.jsxs)(x(),{className:"group flex items-center justify-between rounded-2xl px-3 py-3 transition hover:bg-white/10",href:"https://www.topbonus.io/promo?code=andypsx",rel:"noopener",target:"_blank",children:[(0,a.jsx)(z.bO,{className:"h-6 w-30"}),(0,a.jsx)("span",{className:"grid h-8 w-8 place-items-center text-white/50 transition group-hover:translate-x-1 group-hover:text-white",children:(0,a.jsx)(z.P8,{className:"h-5 w-5"})})]})})]})})]})}return"loading"===S.status?(0,a.jsx)("div",{className:"hidden h-[58px] w-[250px] md:block","aria-hidden":"true"}):(0,a.jsx)(ee,{})}function en(e){let{open:t,onClose:s,rafflesEnabled:r}=e,i=(0,H.w)(),o=[...Q,{label:"Raffles",href:r?"/games/raffles":"#",disabled:!r},{label:"FAQ",href:"/faq"}];return(0,a.jsx)(n.N,{children:t&&(0,a.jsxs)(l.P.div,{animate:{opacity:1,y:0},className:"absolute left-0 right-0 top-full z-[10000] border-t border-white/10 bg-secondary-card/98 p-4 shadow-2xl backdrop-blur-xl xl:hidden",exit:{opacity:0,y:-8},initial:{opacity:0,y:-8},transition:{duration:.16},children:[(0,a.jsxs)("div",{className:"grid gap-2",children:[o.map(e=>(0,a.jsxs)(x(),{className:"flex items-center justify-between rounded-xl border border-white/[0.06] px-4 py-3 text-sm font-semibold ".concat(e.disabled?"cursor-not-allowed text-white/25":"bg-white/[0.03] text-white/75"),href:e.disabled?"#":e.href,onClick:s,children:[e.label,e.disabled&&(0,a.jsx)("span",{className:"text-xs",children:"Bloqueado"})]},e.label)),(0,a.jsx)(g,{mobile:!0,onClick:s})]}),"authenticated"!==i.status&&(0,a.jsx)("div",{className:"mt-4 grid gap-2",onClick:s,children:(0,a.jsx)(p.M,{mode:"modal",asChild:!0,children:(0,a.jsx)(S.az.Button,{className:"w-full justify-center",children:"Iniciar Sesi\xf3n"})})}),"authenticated"===i.status&&(0,a.jsxs)("div",{className:"mt-4 grid gap-2",children:[(0,a.jsx)("p",{className:"px-1 text-xs font-bold uppercase tracking-[0.18em] text-white/35",children:"Perfil"}),(0,a.jsxs)(x(),{className:"flex items-center gap-3 rounded-xl border border-white/[0.06] bg-white/[0.03] px-4 py-3 text-sm font-semibold text-white/75",href:"/account",onClick:s,children:[(0,a.jsx)(z.ny,{className:"h-5 w-5"}),"Perfil"]}
1),(0,a.jsxs)(x(),{className:"flex items-center gap-3 rounded-xl border border-white/[0.06] bg-white/[0.03] px-4 py-3 text-sm font-semibold text-white/75",href:"/shop",onClick:s,children:[(0,a.jsx)(z.Kj,{className:"h-5 w-5"}),"Tienda"]}),(0,a.jsxs)("button",{className:"flex items-center gap-3 rounded-xl border border-white/[0.06] bg-red-500/10 px-4 py-3 text-left text-sm font-semibold text-red-300",onClick:et,type:"button",children:[(0,a.jsx)(z.o4,{className:"h-5 w-5"}),"Cerrar sesi\xf3n"]})]}),(0,a.jsxs)("div",{className:"mt-4 grid gap-2",children:[(0,a.jsx)("p",{className:"px-1 text-xs font-bold uppercase tracking-[0.18em] text-white/35",children:"Recompensas"}),Y.map(e=>(0,a.jsxs)(x(),{className:"flex items-center gap-3 rounded-xl border border-white/[0.06] bg-white/[0.03] px-4 py-3 text-sm font-semibold text-white/75",href:e.href,onClick:s,children:[(0,a.jsx)(e.icon,{className:"h-5 w-5"}),e.label]},e.label))]})]})})}function el(){let[e,t]=(0,h.useState)(!1),[s,n]=(0,h.useState)(!1),{isTheaterMode:l}=(0,G._)();return((0,h.useEffect)(()=>{fetch("/api/feature-flags").then(e=>e.json()).then(e=>{n(!0===e.rafflesVisible)}).catch(()=>{})},[]),l)?null:(0,a.jsxs)("header",{className:"relative z-[9999] flex w-full flex-col overflow-visible bg-[#131620]",children:[(0,a.jsxs)("div",{className:"flex h-24 w-full items-center justify-between px-5 py-5",children:[(0,a.jsxs)("div",{className:"flex items-center justify-center gap-6",children:[(0,a.jsx)($,{}),(0,a.jsxs)("nav",{className:"hidden h-full items-center gap-1 xl:flex","aria-label":"Principal",children:[Q.map(e=>(0,a.jsx)(x(),{className:"rounded-lg px-3 py-2 text-[13px] font-semibold transition ".concat(e.disabled?"cursor-not-allowed text-white/25":"text-white/70 hover:bg-white/5 hover:text-white"),href:e.disabled?"#":e.href,children:e.label},e.label)),(0,a.jsx)(Z,{}),s?(0,a.jsx)(x(),{className:"rounded-lg px-3 py-2 text-[13px] font-semibold text-white/70 transition hover:bg-white/5 hover:text-white",href:"/games/raffles",children:"Raffles"}):(0,a.jsx)("span",{className:"cursor-not-allowed rounded-lg px-3 py-2 text-[13px] font-semibold text-white/25",children:"Raffles"}),!1,(0,a.jsx)(g,{})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 sm:gap-4",children:[(0,a.jsx)(ea,{}),(0,a.jsx)("button",{"aria-expanded":e,"aria-label":"Abrir menu",className:"grid h-10 w-10 place-items-center rounded-xl border border-white/10 bg-secondary-card text-white/75 xl:hidden",onClick:()=>t(e=>!e),type:"button",children:e?(0,a.jsx)(o.A,{className:"h-5 w-5"}):(0,a.jsx)(c.A,{className:"h-5 w-5"})})]})]}),(0,a.jsx)(en,{open:e,onClose:()=>t(!1),rafflesEnabled:s})]})}},29662:(e,t,s)=>{s.d(t,{s:()=>l});var a=s(64665),n=s(14474);function l(){let e=(0,n.w)(),[t,s]=(0,a.useState)(null),l="authenticated"===e.status;return((0,a.useEffect)(()=>{if(!l)return void s(null);let e=!0;return fetch("/api/user/overview",{credentials:"include",cache:"no-store"}).then(e=>e.ok?e.json():null).then(t=>{var a;e&&s({discordLinked:(null==t?void 0:t.discordLinked)===!0,gamdomLinked:(null==t||null==(a=t.gamdom)?void 0:a.linked)===!0})}).catch(()=>{e&&s({discordLinked:!1,gamdomLinked:!1})}),()=>{e=!1}},[l]),"loading"===e.status)?{canPlay:!1,reason:null,status:"loading"}:l?null===t?{canPlay:!1,reason:null,status:"loading"}:t.discordLinked?t.gamdomLinked?{canPlay:!0,reason:null,status:"ready"}:{canPlay:!1,reason:"needs-gamdom",status:"ready"}:{canPlay:!1,reason:"needs-discord",status:"ready"}:{canPlay:!1,reason:"unauthenticated",status:"ready"}}},32172:(e,t,s)=>{s.d(t,{C:()=>r,_:()=>i});var a=s(6733),n=s(64665);let l=(0,n.createContext)(null);function r(e){let{children:t}=e,[s,r]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=document.body.style.overflow;return s?document.body.style.overflow="hidden":document.body.style.overflow=e,()=>{document.body.style.overflow=e}},[s]);let i=(0,n.useMemo)(()=>({isTheaterMode:s,setTheaterMode:r}),[s]);return(0,a.jsx)(l.Provider,{value:i,children:t})}function i(){let e=(0,n.useContext)(l);if(!e)throw Error("useTheaterMode must be used within TheaterModeProvider");return e}},41570:(e,t,s)=>{s.d(t,{T5:()=>i,oq:()=>r});var a=s(6733),n=s(64665);let l=(0,n.createContext)("full");function r(e){let{tier:t,children:s}=e;return(0,a.jsx)(l.Provider,{value:t,children:s})}function i(){return"public"===(0,n.useContext)(l)}},56518:(e,t,s)=>{s.d(t,{h:()=>a});let a={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."}},57265:(e,t,s)=>{s.d(t,{J5:()=>l,gs:()=>n,n:()=>a});let a=1,n=[{tier:1,name:"Viewer nuevo",cap:500,minBalance:0},{tier:2,name:"Viewer medio",cap:1500,minBalance:5e3},{tier:3,name:"Viewer leal",cap:3e3,minBalance:25e3}],l=500},69908:(e,t,s)=>{s.d(t,{m:()=>c});var a=s(6733),n=s(64665),l=s(75052),r=s(46621),i=s(25195),o=s(72087);let c=e=>{let{children:t,content:s,position:c="top",className:d,delay:u=300,coords:x}
1=e,[m,h]=(0,n.useState)(!1),[p,f]=(0,n.useState)(!1),[b,g]=(0,n.useState)({x:0,y:0}),w=(0,n.useRef)(null),v=(0,n.useRef)(null),j=(0,n.useRef)(null),y=()=>{let e=0,t=0;if(x)e=x.x,t=x.y;else if(w.current){var s,a;let n=w.current.getBoundingClientRect(),l=null!=(a=null==(s=v.current)?void 0:s.offsetWidth)?a:0;e=n.left+n.width/2-l/2,t="bottom"===c?n.bottom+10:n.top-10}g({x:e,y:t})};return(0,n.useEffect)(()=>{f(!0)},[]),(0,n.useEffect)(()=>{m&&y()},[m]),(0,n.useEffect)(()=>()=>{j.current&&clearTimeout(j.current)},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:w,onMouseEnter:()=>{j.current&&clearTimeout(j.current),j.current=setTimeout(()=>{h(!0),y()},u)},onMouseLeave:()=>{j.current&&clearTimeout(j.current),h(!1)},className:"inline-block relative",children:t}),p&&(0,l.createPortal)((0,a.jsx)(r.N,{children:m&&(0,a.jsxs)(i.P.section,{ref:v,variants:{hidden:{opacity:0,scale:.8,y:"top"===c?10:"bottom"===c?-10:0,x:"left"===c?10:"right"===c?-10:0},visible:{opacity:1,scale:1,y:0,x:0},exit:{opacity:0,scale:.8,y:"top"===c?10:"bottom"===c?-10:0,x:"left"===c?10:"right"===c?-10:0}},initial:"hidden",animate:"visible",exit:"exit",transition:{duration:.2,ease:"easeOut"},className:(0,o.cn)(x?"!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",!x&&"-top-28",d),style:{left:b.x,top:b.y,transform:x?"translateX(-50%) translateY(-100%)":void 0},children:[s,(0,a.jsx)("span",{className:(0,o.cn)("absolute w-2 h-2 bg-background-secondary border border-white/5 rotate-45","top"===c&&"bottom-[-5px] left-1/2 transform -translate-x-1/2 border-t-0 border-l-0","bottom"===c&&"top-[-5px] left-1/2 transform -translate-x-1/2 border-b-0 border-r-0","left"===c&&"right-[-5px] top-1/2 transform -translate-y-1/2 border-l-0 border-b-0","right"===c&&"left-[-5px] top-1/2 transform -translate-y-1/2 border-r-0 border-t-0")})]})}),document.body)]})}},80279:(e,t,s)=>{s.d(t,{N:()=>a});let a=(0,s(59619).v)(e=>({events:[],fire:(t,s)=>e(e=>({events:[...e.events,{id:Date.now(),sourceX:t,sourceY:s}]})),dismiss:t=>e(e=>({events:e.events.filter(e=>e.id!==t)}))}))},92378:(e,t,s)=>{s.d(t,{G:()=>i});var a=s(6733),n=s(85710),l=s.n(n),r=s(51971);let i=e=>{let{href:t,children:s,...n}=e,i=(0,r.useRouter)();return(0,a.jsx)(l(),{...n,href:t,onClick:e=>{e.preventDefault(),"startViewTransition"in document?document.startViewTransition(()=>{i.push(t)}):i.push(t)},children:s})}},93429:(e,t,s)=>{s.d(t,{M:()=>i});var a=s(6733),n=s(92378),l=s(28600),r=s(41570);let i=e=>{let{mode:t="redirect",children:s}=e,{openModal:i}=(0,l.X)();return(0,r.T5)()?null:"modal"===t?(0,a.jsx)("span",{onClick:e=>{e.preventDefault(),i("login")},children:s}):(0,a.jsx)(n.G,{href:"/auth/login",children:s})}},93665:(e,t,s)=>{s.d(t,{K:()=>i});var a=s(6733),n=s(70006),l=s(56518),r=s(72087);function i(e){let{className:t}=e;return l.h.enabled?(0,a.jsxs)("div",{className:(0,r.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,a.jsx)(n.A,{className:"h-4 w-4 shrink-0"}),(0,a.jsxs)("span",{children:[(0,a.jsxs)("span",{"aria-hidden":!0,children:[l.h.emoji," "]}),l.h.short]})]}):null}},95708:(e,t,s)=>{s.d(t,{Ez:()=>o,Xy:()=>i,cs:()=>a,rU:()=>n});let a="currency_psx",n="currency_mochuelo",l={[a]:{es:"PSX",en:"PSX"},[n]:{es:"Mochuelos",en:"Mochuelos"},currency_raffle:{es:"Tickets",en:"Tickets"},USD:{es:"USD",en:"USD"}},r={PSX:a,MOCHUELOS:n,Mochuelos:n,COINS:n};function i(e){var t;return e?l[e]?e:null!=(t=r[e])?t:e:null}function o(e){var t,s;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es",n=i(e);return n?null!=(s=null==(t=l[n])?void 0:t[a])?s:n:""}}}]);

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.