Module 508971

933 characters · in 33645dc6ae61c139.js
Dependencies
Required by (1)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{A:()=>g});var i=n(627968);n(64700);var s=n(503698),l=n.n(s),r=n(989349),a=n.n(r),o=n(397927),d=n(405269),c=n(927018),u=n(906688),m=n(523896);function g(e){let{achievementId:t,dateUnlocked:n}=e,s=(0,c.vM)(t);if(null==s)return null;let r=null!=n,{name:g,description:_,hideDescriptionUntilUnlock:x,onAction:h}=s,A=x&&!r,p=r?"text-strong":"text-muted",T=r?"text-default":"text-muted",f=a()(n),S=null!=h&&r,E=S?o.DUT:"div";return(0,i.jsxs)(E,{className:l()(m.kL,S&&m.b),onClick:()=>{S&&h()},children:[(0,i.jsx)("div",{className:m.zc,children:(0,i.jsx)(u.A,{achievementId:t,size:u.A.Sizes.SIZE_40,unlocked:r})}),(0,i.jsxs)("div",{className:m.VW,children:[null!=n&&(0,i.jsx)(o.Text,{variant:"text-xxs/semibold",color:"text-muted",className:m.YR,children:(0,d.mk)(f)}),(0,i.jsx)(o.Text,{variant:"text-md/medium",color:p,children:g()}),(0,i.jsx)(o.Text,{variant:"text-xs/normal",color:T,children:A?"?????":_()})]})]})}}