1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2306],{72306:(e,t,r)=>{"use strict";r.r(t),r.d(t,{RecentlyPlayedClient:()=>k});var l=r(11259),i=r(37386),n=r(5220),a=r(85646),s=r(91780),o=r(69850),c=r(28367),m=r(43845),d=r(27550);function u({game:e,className:t,link:r=c,premiumIndicator:n,variant:s="primary"}){return(0,l.jsx)("div",{className:(0,i.$)("secondary"===s&&d["game-row--secondary"],t,d["game-row"]),children:(0,l.jsxs)(r,{className:d["game-row__link"],"aria-label":`Speel${e.displayOptions.isPremium?" premium spel":""} - ${e.title}`,href:e.url,children:[(0,l.jsx)("div",{className:d["game-row__image-wrapper"],children:(0,l.jsx)(m._,{fallbackSrc:e.icon.src,role:"presentation",src:e.icon.src,height:"48",width:"48"})}),(0,l.jsxs)("div",{className:d["game-row__content"],children:[(0,l.jsx)(a.f,{className:d["game-row__title"],children:e.title}),e.displayOptions.isPremium&&n&&(0,l.jsx)("div",{className:d["game-row__premium-wrapper"],children:(0,l.jsx)("div",{children:n})})]})]})})}var h=r(4750),_=r(65188),p=r(55250),g=r(92119);let f=g.z.object({gameId:g.z.string(),lastModified:g.z.string()});var j=r(6384),x=r(73154),b=r(81859);function k(e){let{aToZ:t,premiumIndicator:r,link:i}=e,a=function({aToZ:e}){let[t]=(0,_.Mj)(p.Wy,{}),r=(0,n.useMemo)(()=>Object.fromEntries(e.items.map(e=>[e.gameId,e])),[e.items]);return(0,n.useMemo)(()=>{let e={};return Object.entries(t).forEach(([t,r])=>{let l=f.safeParse(r);l.success&&(e[t]=l.data)}),function({items:e,gamesArray:t}){let r=new Set,l=[];for(let i of t){let t=i[1].gameId,n=e[t];if(!r.has(t)&&(r.add(t),n&&l.push(n),l.length>=4))break}return l}({items:r,gamesArray:Object.entries(j.k.hasExpiredPublications(e)?j.k.removeExpiredPublication(e):e).sort(([,e],[,t])=>new Date(t.lastModified).getTime()-new Date(e.lastModified).getTime())})},[r,t])}({aToZ:t});return 0===a.length?(0,l.jsx)(x.C,{}):(0,l.jsx)(y,{games:a,premiumIndicator:r,link:i})}function y(e){let{games:t,premiumIndicator:r,link:i}=e,a=(0,n.useRef)(null),s=(0,n.useRef)(null),o=(0,h.Y)(a);return(0,l.jsxs)("div",{className:b.container,children:[(0,l.jsx)(w,{skipTargetRef:s}),1===t.length?(0,l.jsx)(v,{games:t,premiumIndicator:r,link:i}):(0,l.jsx)(S,{games:t,horizontalScrollRef:a,scrollState:o,premiumIndicator:r,link:i}),(0,l.jsx)("span",{ref:s})]})}function v(e){let{games:t,premiumIndicator:r,link:n}=e;return(0,l.jsx)("div",{className:(0,i.A)(b.horizontalScroll,b["horizontalScroll--single"]),children:(0,l.jsx)("div",{className:b["horizontalScroll__game-item"],children:(0,l.jsx)(u,{game:t[0],premiumIndicator:r,link:n,variant:"secondary"})})})}function S(e){let{games:t,premiumIndicator:r,link:n,horizontalScrollRef:a,scrollState:{atStart:c,atEnd:m}}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("button",{"aria-label":"Scroll naar links",onClick:()=>{if(a.current)return(0,o.H)({element:a.current,direction:"left",scrollAmount:248})},className:b.button,disabled:c,children:(0,l.jsx)(s.z,{})}),(0,l.jsx)("div",{ref:a,className:b.horizontalScroll,children:t.map(e=>(0,l.jsx)("div",{className:b["horizontalScroll__game-item"],children:(0,l.jsx)(u,{game:e,premiumIndicator:r,link:n,variant:"secondary"})},e.gameId))}),(0,l.jsx)("button",{"aria-label":"Scroll naar rechts",onClick:()=>{if(a.current)return(0,o.H)({element:a.current,direction:"right",scrollAmount:248})},className:(0,i.A)(b.button,b["button--right"]),disabled:m,children:(0,l.jsx)(s.z,{})})]})}function w(e){let{skipTargetRef:t}=e;return(0,l.jsx)("button",{onClick:()=>{let e=t.current;e&&(e.setAttribute("tabindex","0"),e.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}),e.focus(),e.removeAttribute("tabindex"))},className:b.skipButton,children:(0,l.jsx)(a.f,{children:"Recent gespeeld overslaan"})})}},81859:e=>{e.exports={container:"recently-played_client_container__eJCGw",skipButton:"recently-played_client_skipButton__w22QC",horizontalScroll:"recently-played_client_horizontalScroll__vyKaY","horizontalScroll__game-item":"recently-played_client_horizontalScroll__game-item__wcAhb","horizontalScroll--single":"recently-played_client_horizontalScroll--single__Avr8r",button:"recently-played_client_button__vst0y","button--right":"recently-played_client_button--right__Np1c4"}}}]);
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.