Module 392332

1,040 characters · in 2f42cbea4df577d5.js
Dependencies
Required by (1)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{A:()=>f});var l=n(627968),a=n(64700),i=n(503698),r=n.n(i),s=n(158954),o=n(397927),c=n(760459),d=n(985018),u=n(141535),m=n(759203);function f(e){let{entries:t,viewId:n,officialGuildId:i,onClose:f,source:h}=e,x=t.length>7,[g,p]=a.useState(!1),_=a.useMemo(()=>t.slice(0,x&&!g?6:void 0),[t,x,g]);return(0,l.jsxs)("div",{children:[(0,l.jsx)(s.DZT,{className:u.bV,variant:"text-md/semibold",color:"text-strong",children:d.intl.string(d.t.ak8OHk)}),0===t.length?(0,l.jsx)(s.EYj,{variant:"text-xs/semibold",color:"text-strong",className:m.p$,children:d.intl.string(d.t.R5fYVO)}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:r()(m.yz,{[m.T6]:x&&!g}),children:(0,l.jsx)("div",{className:u.fi,children:_.map(e=>(0,l.jsx)(c.A,{entry:e,viewId:n,onClose:f,officialGuildId:i,source:h},e.id))})}),x&&!g&&(0,l.jsxs)(o.DUT,{className:m.ND,onClick:()=>p(!0),children:[(0,l.jsx)(s.EYj,{variant:"text-xs/semibold",color:"interactive-text-default",children:d.intl.string(d.t.yohc6E)}),(0,l.jsx)(o.abt,{size:"xs"})]})]})]})}}