Module 459746

867 characters · in 16b2b04ebbdf6278.js
Dependencies
Required by (2)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{A:()=>d,w:()=>m});var r,l=n(627968),i=n(64700),a=n(503698),s=n.n(a),u=n(834730),o=n(375708),c=n(840625),m=((r={})[r.SMALL=0]="SMALL",r[r.LARGE=1]="LARGE",r);function d(e){let{game:t,size:n,className:r}=e,[a,m]=i.useState(!1),d=t.name,f=null!=t.firstReleaseDate?new Date(t.firstReleaseDate):null,g=t.getCoverURL();return null==g||a?(0,l.jsxs)("div",{className:s()(c.N,r),children:[(0,l.jsx)("div",{className:c.j}),(0,l.jsx)(u.E,{variant:1===n?"text-md/medium":"text-xs/medium",color:"always-white",lineClamp:1===n?4:3,children:d}),(0,l.jsx)("div",{className:c.j}),(0,l.jsx)(u.E,{variant:1===n?"text-sm/normal":"text-xxs/normal",color:"always-white",children:null!=f?`(${f?.getFullYear()})`:null})]}):(0,l.jsx)("img",{className:r,src:g,alt:o.intl.formatToPlainString(o.t["3ev90U"],{game:d}),onError:()=>{m(!0)},onLoad:()=>{m(!1)},draggable:!1})}}