1import M from"./LHmEfvM4.js";import{d as A,as as S,Z as $,e as E,$ as F,D as L,r,I as h,b4 as N,h as s,i as n,F as _,s as R,j as V,k as a,l as Z,O as j,C as z}from"./DWByBbqu.js";import"./B6zVwPJJ.js";import"./DApSuyjl.js";import"./BbPUVeBD.js";import"./Dc5YnSLW.js";import"./DzkcwURS.js";import"./DKPwlCeg.js";import"./BQUCsZvX.js";import"./DMK4rfb6.js";import"./D5hYO9II.js";import"./gsx06YdJ.js";const D=20,H=A({__name:"ModalGrid",props:{games:{}},emits:["close"],setup(f,{emit:g}){const v=g,i=f,{theme:G}=S(),x=$(),{open:k,closeAll:C}=E(),{handleOpenGame:y}=F(k),O=L("isGameRunning"),l=r(1),c=h(()=>i.games.length),o=h(()=>i.games.slice(0,l.value*D)),p=r(null),u=r(null),{stop:T}=N(p,([{isIntersecting:e}])=>{e&&o.value.length<c.value&&l.value++,o.value.length>=c.value&&T()},{root:u,threshold:.1,rootMargin:"0px 0px 200px 0px"}),m={width:{full:96},height:{full:156}},w=e=>{e&&x({success(){y(e),O.value=!0,C()},fail(){j("/signup/")}})};return(e,d)=>{const b=M;return s(),n("div",{ref_key:"scrollContainer",ref:u,class:"grid-cards"},[(s(!0),n(_,null,R(a(o),(t,B)=>(s(),n(_,{key:t.id??0},[V(b,{game:t,theme:a(G),width:m.width,height:m.height,onOpenGame:I=>w(t==null?void 0:t.slug),onClose:d[0]||(d[0]=I=>v("close"))},null,8,["game","theme","width","height","onOpenGame"]),B===a(o).length-1?(s(),n("div",{key:0,ref_for:!0,ref_key:"loadTrigger",ref:p,style:{width:"100%",height:"1px"}},null,512)):Z("",!0)],64))),128))],512)}}}),se=z(H,[["__scopeId","data-v-b2e9e899"]]);export{se as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.