import{r as e}from"./rolldown-runtime-S-ySWqyJ.js";import{Ci as t,oi as n,ui as r,vn as i}from"./vendor-DlcENO3s.js";import{P as a,u as o}from"./index-iy06-ryk.js";var s=e(t(),1),c=n(),l={team:{label:`team`,plural:`teams`,listPath:`teams`,headline:`Team Not Found`,body:`We couldn't find that team. The URL may be wrong or the team may no longer be tracked.`},player:{label:`player`,plural:`players`,listPath:`players`,headline:`Player Not Found`,body:`We couldn't find that player. The URL may be wrong or the player may no longer be tracked.`},match:{label:`match`,plural:`matches`,listPath:`matches`,headline:`Match Not Found`,body:`We couldn't find that match. The URL may be wrong or the match may no longer be tracked.`},tournament:{label:`tournament`,plural:`tournaments`,listPath:`tournaments`,headline:`Tournament Not Found`,body:`We couldn't find that tournament. The URL may be wrong or the tournament may no longer be tracked.`}};function u({entityType:e,gameSlug:t}){let{plural:n,listPath:u,headline:d,body:f}=l[e];return o(),(0,s.useEffect)(()=>a({title:d,description:f}),[d,f]),(0,c.jsx)(`div`,{role:`status`,"data-testid":`entity-not-found-${e}`,className:`relative overflow-hidden rounded-xl border border-[var(--border-color)] min-h-[320px] flex items-center justify-center px-6 py-16`,style:{backgroundImage:`radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--color-primary, #6366f1) 14%, transparent), transparent 60%)`},children:(0,c.jsxs)(`div`,{className:`relative z-10 mx-auto flex max-w-md flex-col items-center text-center`,children:[(0,c.jsx)(`div`,{className:`mb-5 inline-flex h-12 w-12 items-center justify-center rounded-full border border-[var(--border-color)] bg-[var(--bg-card)] text-zinc-500 dark:text-zinc-400`,children:(0,c.jsx)(i,{size:22,strokeWidth:1.75})}),(0,c.jsx)(`span`,{className:`glk-eyebrow mb-2`,children:`Not found`}),(0,c.jsx)(`h1`,{className:`glk-h3 text-zinc-900 dark:text-zinc-100`,children:d}),(0,c.jsx)(`p`,{className:`mt-2 text-sm text-zinc-500 dark:text-zinc-400 max-w-sm leading-relaxed`,children:f}),(0,c.jsx)(`div`,{className:`mt-5`,children:(0,c.jsxs)(r,{to:`/${t}/${u}`,className:`inline-flex items-center rounded-md bg-[var(--glk-brand)] px-3.5 py-1.5 text-xs font-semibold uppercase tracking-wide text-white transition-opacity hover:opacity-90`,"data-testid":`entity-not-found-link-${e}`,children:[`See all `,n]})})]})})}export{u as t};