PageSourceSearch

https://lobby.hyperlucky.com/D2XH1dfy.js

js hyperlucky.com collected 2026-10-07 00:43:53 UTC 6,227 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["DTrxJWZO.js","BzwVwSBE.js","assets/index-C4ritBuc.css","ByCtEbIE.js"])))=>i.map(i=>d[i]);
2import{a4 as R,e as T,r as d,h as k,j as e,du as V,dv as H,dw as q,ci as G,s as a,_ as W,dx as I,aI as N,m as U,S as F,dy as $,aw as K,dz as Q}from"./BzwVwSBE.js";import{G as z}from"./B4aIEMN0.js";import{B as X}from"./C_ToAPzW.js";import"./CnjeN08s.js";import"./DYits5yr.js";import{a as Y}from"./BkQ00V7m.js";import{u as J}from"./KulmUjBU.js";import{u as Z,i as ee}from"./ByCtEbIE.js";import{H as se}from"./CdohsJZZ.js";import{S as te}from"./BB4Wu-EY.js";import{g as L}from"./C8l1Z5vU.js";import"./CW4anpcl.js";const oe=d.lazy(()=>W(()=>import("./DTrxJWZO.js"),__vite__mapDeps([0,1,2,3]))),E=a("div")({name:"StyledLobbyLists",class:"s11pseyt",propsAsIs:!1}),re={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"LobbyLists_ULn8e11V"}}],loc:{source:{body:""}}},ne=10,ae=({numToLoad:t,visible:o,root:s})=>{const r=R(),{player:v}=T(),i=v?.numberOfDeposits??0,g=d.useMemo(()=>({query:re,variables:{visible:o,numberOfDeposits:i,locale:r},context:{requestPolicy:"cache-and-network",suspense:!1}}),[o,i,r]),[{data:m}]=k(g),b=m?.root?.lobbyHomeSettings?.lobbyLists,f=s?.lobbyHomeSettings?.lobbyLists;return f?.length?e.jsx(E,{children:f.map((c,h)=>{if(c.__typename==="DListOfGames"){const p=b?.find(y=>y.__typename==="DListOfGames"&&y.slug===c.slug);return p?.__typename!=="DListOfGames"?null:H(p.slug)?e.jsx(q,{visible:o},p.slug):e.jsx(G,{listOfGames:p,root:m?.root},p.slug)}return c.__typename==="LobbyBlockTemplate"?e.jsx(X,{blocks:c.content},`block-template-${h}`):!s||c.__typename!=="Spotlight"?null:e.jsx(oe,{spotlight:c,root:s},`spotlight-${h}`)})}):e.jsx(E,{children:e.jsx(V,{numToLoad:t||ne,visible:o,startIndex:0,root:s})})},S=({elementRef:t,to:o})=>{if(t&&t.current){const s=t.current.offsetWidth/(o==="right"?1.5:-1.5);t.current.scrollTo({left:t.current.scrollLeft+s,behavior:"smooth"})}},j=a("button")({name:"PaddleButton",class:"pbmly6b",propsAsIs:!1}),w=a("div")({name:"ArrowContainer",class:"a5z1ft0",propsAsIs:!1}),ie=a("button")({name:"CarouselIndicatorButton",class:"cwr5iq6",propsAsIs:!1}),le=a("div")({name:"CarouselOuter",class:"c1mfdym5",propsAsIs:!1}),ce="640px",ue="1025px",de=1,pe=2,me=3,fe=a("div")({name:"CarouselWrapper",class:"c1j32nc1",propsAsIs:!1}),he=a("div")({name:"Carousel",class:"c1tn4sb5",propsAsIs:!1}),be=a("div")({name:"CarouselArrows",class:"c18p7m1g",propsAsIs:!1}),ye=a("div")({name:"IndicatorRow",class:"i165lesa",propsAsIs:!1}),ve=5e3,ge=6,Ae=(t,o)=>o?me:t?pe:de,Ce=(t,o,s,r)=>t&&o>=Ae(s,r),D=({banners:t,root:o})=>{const s=t.slice(0,ge),{firstInView:r,lastInView:v,viewportRef:i,activeCarouselIndex:g,visibleIndices:m}=Z({manualSnap:!1}),[b,f]=d.useState(!1),c=I(`(min-width: ${ce})`),h=I(`(min-width: ${ue})`),[p,y]=d.useState(!1);d.useEffect(()=>y(!0),[]);const n=Ce(p,s.length,c,h),_=u=>m.length>0?m.includes(u):u===g;d.useEffect(()=>{if(b||s.length<=1||!n)return;const u=setInterval(()=>{const l=i.current;if(!l)return;const{scrollLeft:A,scrollWidth:P,offsetWidth:B}=l;if(ee(A,B,P)){l.scrollTo({left:0,behavior:"smooth"});return}const x=Array.from(l.children).find(M=>M.offsetLeft>A+1);x&&l.scrollTo({left:x.offsetLeft,behavior:"smooth"})},ve);return()=>clearInterval(u)},[b,s.length,i,n]);const C={onPointerEnter:()=>f(!0),onPointerLeave:()=>f(!1)};return s.length===0?null:e.jsxs(fe,{children:[e.jsxs(le,{...C,children:[e.jsx(he,{ref:i,children:s.map((u,l)=>e.jsx(se,{banner:u,root:o},u?.id??l))}),n&&e.jsxs(be,{children:[e.jsx(w,{"data-placement":"left","data-visible":r?"hidden":"visible",children:e.jsx(j,{onClick:()=>S({elementRef:i,to:"left"}),"data-placement":"left"})}),e.jsx(w,{"data-placement":"right","data-visible":v?"hidden":"visible",children:e.jsx(j,{onClick:()=>S({elementRef:i,to:"right"}),"data-placement":"right"})})]})]}),n&&e.jsx(ye,{...C,children:s.map((u,l)=>e.jsx(ie,{"data-state":_(l)?"active":"inactive",type:"button",onClick:()=>{const A=i.current?.children[l];A&&i.current?.scrollTo({left:A.offsetLeft,behavior:"smooth"})}}
2,u?.id??l))})]})};D.displayName="HeroCarousel";const _e={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"App_ohIO3B9u"}}],loc:{source:{body:""}}},xe=()=>Y,Ie=a(xe())({name:"Content",class:"c40sy3m",propsAsIs:!0}),Le=a("div")({name:"SearchGutter",class:"sjl1lmm",propsAsIs:!1}),Ee=500;function Se(){const t=Math.min(window.devicePixelRatio,2);return Math.round(Ee*t)}const je=a("div")({name:"ViewStack",class:"v1vm5fda",propsAsIs:!1}),O=a("div")({name:"View",class:"vgoplur",propsAsIs:!1}),we=a("div")({name:"ViewFallback",class:"vqikx7g",propsAsIs:!1}),Oe=({root:t,columns:o})=>{const{query:s}=K(),r=s.length>=Q?"results":"lobby";return e.jsxs(je,{"data-games-view":r,children:[e.jsx(O,{"data-view":"results",children:e.jsx(te,{columns:o})}),e.jsx(O,{"data-view":"lobby",children:e.jsx(d.Suspense,{fallback:e.jsx(we,{}),children:e.jsx(ae,{root:t})})})]})},Fe=()=>{const t=R(),{player:o}=T(),{isOptedIn:s}=N(),r=d.useRef(void 0);r.current===void 0&&(s==="true"||s==="false")&&(r.current=s);const v=r.current==="true"||r.current==="false"?r.current==="true":void 0,{activeChallenges:i}=J(),g=d.useMemo(()=>{const p=i.sort((n,_)=>{const C=L(n.node.challengeRewards[0]?.rewardType);return(L(_.node.challengeRewards[0]?.rewardType)||0)-(C||0)}).map(n=>({id:n.node.challengeId,typename:n.node.challengeRewards[0].rewardType.__typename})).filter(n=>n.typename!==void 0),y=new Set;return p.filter(n=>y.has(n.typename)?!1:(y.add(n.typename),!0))},[i]),{ipCountryCode:m,playerCountryCode:b,subDivision:f}=U(),c=d.useMemo(()=>({query:_e,variables:{heroCarouselImageWidth:Se(),ipCountryCode:m,subDivision:f,locale:t,countryCode:b||"ROW",numberOfDeposits:o?.numberOfDeposits,activeChallengesMap:g,optedInToJackpot:v}}),[g,m,t,v,b,o?.numberOfDeposits,f]),[{data:h}]=k(c);return e.jsx(e.Fragment,{children:e.jsxs(Ie,{children:[e.jsx(D,{banners:h?.root?.banners??[],root:h?.root}),e.jsx(F,{analyticsSource:"home",syncQueryToUrl:!0,children:e.jsxs(Le,{children:[e.jsx($,{}),e.jsx(z,{}),e.jsx(Oe,{root:h?.root,columns:"lobby"})]})})]})})};export{Fe as default};
3//# sourceMappingURL=D2XH1dfy.js.map

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.