1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6743],{31282:(e,t,r)=>{r.d(t,{cq:()=>o,gh:()=>c,hl:()=>d});var l=r(51633),n=r(76643),a=r(21568),s=r(59946);function i(e){var t,r;return null!=(r=null!=(t=a.x[e])?t:n.Yc[e])?r:""}function o(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,s.u)("/games/".concat(e.game,"/bg.png"))}:{src:(0,s.u)("/games/".concat(e.game,"/bg.png")),fallback:null}}if("bgaming"===t)return{src:(0,s.u)("/games/bgaming/".concat(e.game,".webp")),fallback:(0,l.wY)(t,e.game)};if("wickedgames"===t){let t=e.game.replace(/^wicked_/i,"").toLowerCase();return{src:(0,s.u)("/games/wickedgames/".concat(t,".webp")),fallback:null}}return{src:(0,s.u)("/games/".concat(t,"/").concat(e.game,".webp")),fallback:null}}function c(e){let t=(e.provider||"").toLowerCase();return e.game?"nolimit"!==t||i(e.game)?null:(0,s.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"}},96743:(e,t,r)=>{r.d(t,{LiveFeedClient:()=>M});var l=r(6733),n=r(64665),a=r(75052),s=r(85710),i=r.n(s),o=r(46621),c=r(25195),d=r(74466),u=r(63416),m=r(31282),x=r(51633);let f=e=>fetch(e).then(e=>e.json());function p(e){return!e||e<2?null:"\xd7"+(e>=100?Math.round(e).toLocaleString("es-ES"):e.toFixed(1))}function h(e){return"".concat(e.game,":").concat(e.user,":").concat(e.minor,":").concat(e.ts)}let g=m.hl,b=[{label:"Idle",min:0,textColor:"#2ECC71",dotColor:"#2ECC71",dotGlow:"0 0 6px rgba(46,204,113,0.7)",fire:!1},{label:"Hot",min:50,textColor:"#FFB347",dotColor:"#FF8C00",dotGlow:"0 0 8px rgba(255,140,0,0.8)",fire:!0},{label:"On Fire",min:120,textColor:"#FFD700",dotColor:"#FF3A00",dotGlow:"0 0 10px rgba(255,58,0,0.9)",fire:!0},{label:"BLAZING",min:250,textColor:"#FFD700",dotColor:"#FF1A00",dotGlow:"0 0 14px rgba(255,26,0,1), 0 0 24px rgba(255,26,0,0.4)",fire:!0}],v=[{game:"GoldRushWithJohnny",provider:"bgaming"},{game:"CatfishHunters",provider:"nolimit"},{game:"AlienFruits",provider:"bgaming"},{game:"BookOfShadows",provider:"nolimit"},{game:"AztecClusters",provider:"bgaming"}],w=["VE***64","cm***4w","cm***n2","an***x9","lu***23"],j=0x75bcd15;function y(){return(j=0x41c64e6d*j+12345&0x7fffffff)/0x7fffffff}let k=17e11;function N(e){let t=v[Math.floor(y()*v.length)];return k+=Math.floor(3e3*y())+400,{game:t.game,provider:t.provider,user:w[Math.floor(y()*w.length)],minor:Math.floor(25e3*y())+16,scale:2,currency:"currency_psx",multi:e,ts:k}}function C(e){return N("red"===e?Math.floor(2500*y())+500:"golden"===e?Math.floor(249*y())+250:Math.floor(149*y())+100)}function M(){var e,t,r,a,s;let{endpoint:i="/api/admin/live-feed",showDemoToggle:d=!0,showHeader:m=!0,compact:x=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[p,g]=(0,n.useState)(!1),[v,w]=(0,n.useState)(0),[j,y]=(0,n.useState)(null),{data:k,error:M}=(0,u.Ay)(p?null:i,f,{refreshInterval:3e3,keepPreviousData:!0,refreshWhenHidden:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,dedupingInterval:3e3}
1),I=(null==k?void 0:k.degraded)===!0,[L,_]=(0,n.useState)([]),[z,R]=(0,n.useState)(!1),A=function(){let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=window.matchMedia("(max-width: ".concat(639,"px)")),r=()=>t(e.matches);return r(),e.addEventListener("change",r),()=>e.removeEventListener("change",r)},[]),e}(),D=(0,n.useRef)(new Set),G=(0,n.useRef)([]),H=(0,n.useRef)(null),B=(0,n.useRef)(!1);(0,n.useEffect)(()=>{B.current=z},[z]);let P=(0,n.useCallback)(e=>{let t=e.filter(e=>!D.current.has(h(e)));if(0!==t.length){if(t.forEach(e=>{D.current.add(h(e)),G.current.push(e)}),D.current.size>500){let e=D.current.size-500,t=D.current.values();for(let r=0;r<e;r++)D.current.delete(t.next().value)}!H.current&&G.current.length>0&&(H.current=setInterval(()=>{if(B.current)return;let e=G.current.shift();if(!e){H.current&&clearInterval(H.current),H.current=null;return}_(t=>[e,...t].slice(0,14))},Math.max(150,Math.floor(3e3/G.current.length))))}},[]);(0,n.useEffect)(()=>{_([]),D.current=new Set,G.current=[],H.current&&(clearInterval(H.current),H.current=null)},[p]),(0,n.useEffect)(()=>{var e;if(p)return;let t=null!=(e=null==k?void 0:k.base)?e:null==k?void 0:k.wins;t&&P([...t].sort((e,t)=>e.ts-t.ts))},[p,k,P]);
1let[O,T]=(0,n.useState)([]),[W,Y]=(0,n.useState)([]),[V,X]=(0,n.useState)([]),q=p?O:null!=(e=null==k?void 0:k.red)?e:[],U=p?W:null!=(t=null==k?void 0:k.golden)?t:[],Z=p?V:null!=(r=null==k?void 0:k.silver)?r:[];(0,n.useEffect)(()=>{if(!p){T([]),Y([]),X([]);return}P(Array.from({length:6},()=>N())),T([C("red")]),Y([C("golden")]),X([C("silver"),C("silver")]);let e=e=>t=>[e,...t].slice(0,3),t=setInterval(()=>P([N()]),1200),r=setInterval(()=>w(e=>(e+1)%b.length),4e3),l=setInterval(()=>X(e(C("silver"))),5e3),n=setInterval(()=>Y(e(C("golden"))),8e3),a=setInterval(()=>T([C("red")]),12e3);return()=>{clearInterval(t),clearInterval(r),clearInterval(l),clearInterval(n),clearInterval(a)}},[p,P]),(0,n.useEffect)(()=>()=>{H.current&&clearInterval(H.current)},[]);let J=(0,n.useMemo)(()=>{if(A){let e;e=q.length>0?{red:1,golden:2,silver:1}:U.length>0?{red:0,golden:2,silver:2}:{red:0,golden:0,silver:4};let t=[...q.slice(0,e.red),...U.slice(0,e.golden),...Z.slice(0,e.silver)];if(t.length<4){let e=new Set(t.map(h)),r=[...q,...U,...Z].filter(t=>!e.has(h(t)));t.push(...r.slice(0,4-t.length))}return t.slice(0,4)}return[...q,...U,...Z].slice(0,9)},[A,q,U,Z]),K=(0,n.useMemo)(()=>{if(!A)return[];let e=new Set(J.map(h));return[...q,...U,...Z].filter(t=>!e.has(h(t)))},[A,J,q,U,Z]),Q=(0,n.useMemo)(()=>{let e=new Set(J.map(h)),t=L.filter(t=>!e.has(h(t)));return(A?t:[...K,...t]).slice(0,14)},[A,J,K,L]),$=p?b[v]:function(e){for(let t=b.length-1;t>=0;t--)if(e>=b[t].min)return{tier:b[t],index:t};return{tier:b[0],index:0}}(null!=(a=null==k?void 0:k.winRate)?a:0).tier,ee=p?b[v].min:null!=(s=null==k?void 0:k.winRate)?s:0,et=$.fire?"animate-[fire-glow-text_1.5s_ease-in-out_infinite]":"animate-[green-glow-text_2.5s_ease-in-out_infinite]",er=(0,n.useRef)(null),[el,en]=(0,n.useState)(null),ea=(0,n.useCallback)(()=>{let e=er.current;e&&en(e.getBoundingClientRect())},[]),es=(0,n.useCallback)(()=>en(null),[]);return(0,l.jsxs)("div",{className:x?"space-y-2":"space-y-5",children:[(m||d)&&(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[m&&(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsxs)("span",{className:"relative flex size-2.5",children:[(0,l.jsx)("span",{className:"absolute inline-flex size-full animate-ping rounded-full bg-green-400 opacity-75"}),(0,l.jsx)("span",{className:"relative inline-flex size-2.5 rounded-full bg-green-500"})]}),(0,l.jsx)("h1",{className:"text-lg font-semibold text-white",children:"Live Feed â Victorias en Directo"})]}),d&&(0,l.jsxs)("div",{className:"ml-auto flex items-center gap-1 rounded-lg border border-white/10 bg-white/5 p-1 text-xs",children:[(0,l.jsx)("button",{type:"button",onClick:()=>g(!1),className:"rounded-md px-3 py-1 font-medium transition-colors "+(p?"text-white/50 hover:text-white/80":"bg-green-500/20 text-green-300"),children:"En Vivo"}),(0,l.jsx)("button",{type:"button",onClick:()=>g(!0),className:"rounded-md px-3 py-1 font-medium transition-colors "+(p?"bg-sky-500/20 text-sky-300":"text-white/50 hover:text-white/80"),children:"Demo"})]})]}),p&&(0,l.jsx)("p",{className:"rounded-lg border border-sky-500/30 bg-sky-500/10 px-3 py-2 text-sm text-sky-200",children:"Modo Demo â datos sint\xe9ticos + ciclo de todos los estados de racha (Idle â Hot â On Fire â BLAZING)."}),!p&&I&&(0,l.jsx)("p",{className:"rounded-lg border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-sm text-amber-200",children:"Feed no dis
1ponible."}),!p&&M&&!I&&(0,l.jsx)("p",{className:"rounded-lg border border-red-500/30 bg-red-500/10 px-3 py-2 text-sm text-red-200",children:"Error cargando el feed."}),(0,l.jsxs)("div",{className:"flex w-full min-w-0 flex-col overflow-x-clip rounded-xl border border-white/10 bg-black/20 sm:flex-row sm:items-stretch "+(x?"gap-2 p-2":"gap-3 p-4"),children:[(0,l.jsx)("div",{ref:er,className:"relative flex shrink-0 cursor-default items-center self-start outline-none sm:self-auto sm:border-r sm:border-white/10 sm:pr-3",tabIndex:0,onMouseEnter:ea,onMouseLeave:es,onFocus:ea,onBlur:es,children:(0,l.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2",children:[(0,l.jsxs)("div",{className:"relative flex items-center justify-center",children:[(0,l.jsx)("div",{className:"size-1.5 rounded-full sm:size-2",style:{backgroundColor:$.dotColor,boxShadow:$.dotGlow}}),(0,l.jsx)("div",{className:"absolute inset-0 size-1.5 animate-ping rounded-full opacity-75 sm:size-2",style:{backgroundColor:$.dotColor}})]}),(0,l.jsx)("span",{className:"text-[9px] font-black uppercase tracking-wider sm:text-[11px] "+et,style:{color:$.textColor},children:$.label}),p&&(0,l.jsx)("span",{className:"text-[10px] text-white/30",children:"(demo)"})]})}),(0,l.jsx)(F,{anchor:el,tierLabel:$.label,rate:ee,demo:p}),J.length>0&&(0,l.jsx)("div",{className:"flex w-full shrink-0 items-stretch justify-between gap-2.5 sm:w-auto sm:justify-start sm:border-r sm:border-white/10 sm:pr-3",children:(0,l.jsx)(o.N,{mode:"popLayout",initial:!1,children:J.map(e=>(0,l.jsx)(c.P.div,{initial:{opacity:0,scale:.9,filter:"blur(4px)"},animate:{opacity:1,scale:1,filter:"blur(0px)"},exit:{opacity:0,scale:.9,filter:"blur(4px)"},transition:{duration:.35,ease:[.25,0,.35,1]},layout:!0,className:"shrink-0 select-none",children:(0,l.jsx)(S,{w:e,showMulti:!0,compact:x,onHover:t=>y({w:e,x:t.clientX,y:t.clientY}),onLeave:()=>y(null)})},h(e)))})}),(0,l.jsxs)("div",{className:"flex min-h-[7rem] w-full min-w-0 items-stretch gap-2.5 overflow-hidden sm:w-auto sm:flex-1",onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),style:z?void 0:{maskImage:"linear-gradient(to right, black 0%, black 88%, transparent 100%)",WebkitMaskImage:"linear-gradient(to right, black 0%, black 88%, transparent 100%)"},children:[(0,l.jsx)(o.N,{mode:"popLayout",initial:!1,children:Q.map(e=>{var t;return(0,l.jsx)(c.P.div,{initial:{opacity:0,x:-30,filter:"blur(4px)"},animate:{opacity:1,x:0,filter:"blur(0px)"},exit:{opacity:0,scale:.9,filter:"blur(4px)"},transition:{duration:.35,ease:[.25,0,.35,1]},layout:!0,className:"shrink-0 select-none",children:(0,l.jsx)(S,{w:e,showMulti:(null!=(t=e.multi)?t:0)>=100,compact:x,onHover:t=>y({w:e,x:t.clientX,y:t.clientY}),onLeave:()=>y(null)})},h(e))})}),0===Q.length&&(0,l.jsx)("span",{className:"text-sm text-white/40",children:p?"Iniciando demoâ¦":"Sin victorias recientes."})]})]}),(0,l.jsx)(E,{hover:j})]})}function S(e){var t;let{w:r,showMulti:n,compact:a=!1,onHover:s,onLeave:o}=e,c=(0,m.cq)(r),u=(0,m.gh)(r),x=function(e){let t=null!=e?e:0;return t>=500?{border:"border-red-500/80 shadow-[0_0_12px_rgba(239,68,68,0.6)]",bgTint:"bg-red-500/[0.08]",pill:"bg-red-500/25 text-red-200"}:t>=250?{border:"border-amber-400/70 shadow-[0_0_10px_rgba(251,191,36,0.45)]",bgTint:"bg-amber-400/[0.07]",pill:"bg-amber-400/20 text-amber-200"}:t>=100?{border:"border-slate-200/70 shadow-[0_0_8px_rgba(226,232,240,0.35)]",bgTint:"bg-slate-200/[0.08]",pill:"bg-slate-200/25 text-slate-50"}:{border:"border-white/10",bgTint:"bg-white/[0.03]",pill:"bg-white/10 text-white/70"}}(r.multi),f=p(r.multi);return(0,l.jsxs)(i(),{href:g(r),onMouseEnter:s,onMouseMove:s,onMouseLeave:o,className:"group flex shrink-0 flex-col items-center justify-between rounded-xl border transition-colors hover:brightness-110 "+(a?"h-36 w-[4.5rem] p-1.5":"h-44 w-[5.5rem] p-2 sm:h-52 sm:w-28 sm:p-2.5")+" "+x.border+" "+x.bgTint,children:[(0,l.jsxs)("div",{className:"relative w-full flex-1 overflow-hidden rounded-lg bg-white/5",children:[c&&(0,l.jsx)("img",{src:c.src,"data-fallback":null!=(t=c.fallback)?t:"",alt:"",className:"absolute inset-0 size-full object-cover brightness-90",onError:e=>{let t=e.target,r=t.getAttribute("data-fallback");if(r&&t.src!==r){t.removeAttribute("data-fallback"),t.src=r;return}t.style.display="none"}}),u&&(0,l.jsx)("img",{src:u,alt:"",className:"absolute inset-0 m-auto object-contain drop-shadow "+(a?"size-5":"size-8"),onError:e=>{e.target.style.display="none"}})]}),(0,l.jsx)("div",{className:"w-full text-center",children:(0,l.jsx)("div",{className:"truncate font-semibold text-white/40 "+(a?"text-[8px]":"text-[10px]"),children:r.user})}),(0,l.jsxs)("div",{className:"flex w-full flex-col items-center gap-1",children:[f?(0,l.jsx)("span",{className:"max-w-full truncate rounded-full px-1.5 py-0.5 font-black tabular-nums "+(a?"text-[8px]":"text-[10px]")+" "+(n?x.pill:"bg-white/[0.06] text-white/45"),children:f}):(0,l.jsx)("span",{className:"invisible rounded-full px-1.5 py-0.5 font-black "+(a?"text-[8px]":"text-[10px]"),children:"\xd70"}),(0,l.jsxs)("span",{className:"flex w-full items-center justify-center gap-0.5 whitespace-nowrap rounded-full bg-green-500/20 px-1 py-0.5 font-bold tabular-nums text-green-400 "+(a?"text-[8px]":"text-[10px]"),children:[(0,l.jsx)(d.A,{className:a?"size-2.5 shrink-0":"size-3 shrink-0"}),function(e){let t=e.minor/Math.pow(10,e.scale),r=(e,t)=>
1e.toLocaleString("es-ES",{maximumFractionDigits:e<10?2:+(e<100)})+t;return t>=1e9?r(t/1e9,"B"):t>=1e6?r(t/1e6,"M"):t>=1e3?r(t/1e3,"K"):t.toLocaleString("es-ES",{minimumFractionDigits:2,maximumFractionDigits:2})}(r)]})]})]})}function F(e){let{anchor:t,tierLabel:r,rate:s,demo:i}=e,[o,c]=(0,n.useState)(!1);if((0,n.useEffect)(()=>c(!0),[]),!o||!t)return null;let d=window.innerWidth,u=window.innerHeight,{top:m,left:x}=function(e,t,r){let l=e.top>=t.height+8?"above":"below",n="above"===l?e.top-8-t.height:e.bottom+8,a=Math.max(8,r.width-t.width-8);return{top:n,left:Math.min(Math.max(e.left,8),a),placement:l}}({top:t.top,left:t.left,right:t.right,bottom:t.bottom,width:t.width},{width:200,height:160},{width:d,height:u});return(0,a.createPortal)((0,l.jsxs)("div",{className:"pointer-events-none fixed z-[9999] w-[200px] rounded-lg border border-white/20 p-3",style:{top:m,left:x,background:"rgba(8,15,20,0.92)",backdropFilter:"blur(12px)",boxShadow:"0 8px 30px rgba(0,0,0,0.9)"},children:[(0,l.jsxs)("div",{className:"mb-2 text-[10px] font-bold uppercase tracking-wider text-white/70",children:["Racha \xb7 ",s," ",1===s?"jugada":"jugadas","/min",i&&" (demo)"]}),b.map(e=>{let t=e.label===r;return(0,l.jsxs)("div",{className:"flex items-center gap-2 py-1 "+(t?"opacity-100":"opacity-50"),children:[(0,l.jsx)("div",{className:"size-2 shrink-0 rounded-full",style:{background:e.dotColor,boxShadow:t?"0 0 6px "+e.dotColor:"none"}}),(0,l.jsx)("span",{className:"text-[10px] font-bold",style:{color:e.textColor},children:e.label}),(0,l.jsxs)("span",{className:"ml-auto text-[9px] tabular-nums text-white/50",children:[0===e.min?"0":e.min+"+","/min"]}),t&&(0,l.jsxs)("span",{className:"ml-1 text-[8px] text-white/80",children:["(",s,")"]})]},e.label)})]}),document.body)}function E(e){var t,r;let{hover:s}=e,[i,o]=(0,n.useState)(!1);if((0,n.useEffect)(()=>o(!0),[]),!i||!s)return null;let{w:c,x:d,y:u}=s,m=window.innerWidth,f=window.innerHeight,h="".concat((c.minor/Math.pow(10,c.scale)).toLocaleString("es-ES",{minimumFractionDigits:2,maximumFractionDigits:2})," ").concat(c.currency.replace(/^currency_/,"").toUpperCase()||"PSX");return(0,a.createPortal)((0,l.jsxs)("div",{className:"pointer-events-none fixed z-[9999] min-w-[180px] rounded-lg border border-white/20 p-3",style:{left:d+16+200>m?d-16-200:d+16,top:u+16+96>f?u-16-96:u+16,background:"rgba(8,15,20,0.94)",backdropFilter:"blur(12px)",boxShadow:"0 8px 30px rgba(0,0,0,0.9)"},children:[(0,l.jsx)("div",{className:"text-xs font-bold text-white",children:c.game||"â"}),(0,l.jsxs)("div",{className:"flex items-center gap-1.5 text-[11px] text-white/60",children:[(0,l.jsx)("span",{children:c.user}),(0,l.jsx)("span",{children:"\xb7"}),(0,l.jsx)("span",{className:"rounded px-1.5 py-0.5 text-[10px] font-semibold",style:{color:null!=(t=x.ek[c.provider])?t:"rgba(255,255,255,0.6)",background:"".concat(null!=(r=x.ek[c.provider])?r:"#ffffff","22")},children:c.provider})]}),(0,l.jsxs)("div",{className:"text-[11px] font-bold text-green-400",children:["Gan\xf3 ",h,p(c.multi)?" (".concat(p(c.multi),")"):""]}),(0,l.jsx)("div",{className:"mt-0.5 text-[10px] text-white/30",children:"Click para abrir el slot"})]}),document.body)}}}]);
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.