Module 936636

1,237 characters · in 2f42cbea4df577d5.js
Dependencies
Required by (2)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{A:()=>g,s:()=>x});var l=n(627968);n(64700);var a=n(503698),i=n.n(a),r=n(808380),s=n(934551),o=n(990078),c=n(504186),d=n(985018),u=n(141535);function m(e){switch(e){case r.Y.DESKTOP:return d.intl.string(d.t.KT6uCJ);case r.Y.XBOX:return d.intl.string(d.t.DDWUJp);case r.Y.PLAYSTATION:return d.intl.string(d.t.fzMz2s);case r.Y.NINTENDO:return d.intl.string(d.t.AMW8je);default:return null}}function f(e){let{platform:t,...n}=e;switch(t){case r.Y.DESKTOP:return(0,l.jsx)(s.ScreenIcon,{size:"xs",...n});case r.Y.XBOX:return(0,l.jsx)(s.XboxNeutralIcon,{size:"xs",...n});case r.Y.PLAYSTATION:return(0,l.jsx)(s.PlaystationNeutralIcon,{size:"xs",...n});case r.Y.NINTENDO:return(0,l.jsx)(s.NintendoSwitchNeutralIcon,{size:"xs",...n});default:return null}}function h(e){let{platforms:t}=e;return(0,l.jsx)("div",{className:i()(u.nM,u.Lc),style:{alignItems:"center"},children:t.map(e=>(0,l.jsx)(o.m,{text:m(e),children:(0,l.jsx)(f,{platform:e})},e))})}function x(e){let{platform:t}=e;return(0,l.jsx)(o.m,{text:m(t),children:(0,l.jsx)(f,{platform:t})},t)}function g(e){let{game:t,className:n}=e,a=(0,c.A)(t);return 0===a.length?null:(0,l.jsx)("div",{className:i()(u.fi,u.iH,n),children:a.length>0&&(0,l.jsx)(h,{platforms:a})})}}