try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`e917deef-0d69-4a17-9e4e-a0c1251b7e8a`,e._sentryDebugIdIdentifier=`sentry-dbid-e917deef-0d69-4a17-9e4e-a0c1251b7e8a`)}catch{}import"./rolldown-runtime-nx40z1zs.js";import{Ag as e,Cr as t,ng as n}from"./entry.client-mpghtlrl.js";import{Nr as r}from"./xds-icons-m106f2fc.js";import{n as i,r as a}from"./useWidget-nf2epnjz.js";import{r as o}from"./data-k1o1noin.js";var s=e(),c=n(),l=[{gameId:`game-001`,lastPlayed:`2 hours ago`,playtime:`127h 45m`},{gameId:`game-002`,lastPlayed:`Yesterday`,playtime:`89h 12m`},{gameId:`game-003`,lastPlayed:`3 days ago`,playtime:`45h 30m`},{gameId:`game-004`,lastPlayed:`1 week ago`,playtime:`156h 20m`},{gameId:`game-005`,lastPlayed:`2 weeks ago`,playtime:`234h 15m`}],u=()=>{let e=(0,s.c)(2),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={title:`Recents`,icon:(0,c.jsx)(r,{})},e[0]=n):n=e[0],t=n,a(t);let{visibility:o}=i();if(o===`hidden`)return null;let u;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,c.jsx)(`div`,{className:`flex h-full w-full flex-col gap-2 p-3`,children:l.map(d)}),e[1]=u):u=e[1],u};function d(e){let n=o[e.gameId];return n?(0,c.jsxs)(t,{as:`button`,className:`flex w-full items-center gap-3 rounded-lg bg-white/5 p-3 text-start hover:bg-white/10`,children:[(0,c.jsx)(`div`,{className:`flex h-16 w-16 flex-shrink-0 items-center justify-center rounded bg-gradient-to-br ${n.gradient} text-2xl font-bold`,children:n.title.charAt(0)}),(0,c.jsxs)(`div`,{className:`flex flex-1 flex-col gap-0.5 overflow-hidden`,children:[(0,c.jsx)(`span`,{className:`truncate font-semibold`,children:n.title}),(0,c.jsxs)(`span`,{className:`text-xs text-white/60`,children:[`Last played: `,e.lastPlayed]}),(0,c.jsxs)(`span`,{className:`text-xs text-white/40`,children:[e.playtime,` played`]})]})]},e.gameId):null}export{u as Recents};