Build 614181stable
Module 576757
570 characters · in e88ab87d81cf1642.jsDependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>o});var l=n(582128),i=n(17928),s=n(287809),r=n(403362);let a=[];function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=(0,i.yK)([s.default],()=>{let t=e.participants.map(e=>s.default.getUser(e)).filter(r.Vq),n=t.find(t=>t.id===e.author_id),l=t.filter(t=>t.id!==e.author_id);return null==n?a:[...l,n]},[e]),o=l.useMemo(()=>n.slice(-t),[t,n]),u=o[o.length-1],c=o[o.length-2],d=Math.max(n.length-1,0);return{orderedParticipants:n,displayParticipants:o,participant1:u,participant2:c,numOtherParticipants:d}}}