Module 579245

1,400 characters · in 989838e7c5fcd15a.js
Dependencies
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,i){i.d(t,{A:()=>_,n:()=>m});var n=i(627968),a=i(64700),s=i(503698),r=i.n(s),c=i(834730),l=i(534514),h=i(97808),f=i(854627),I=i(286320),d=i(778712),u=i(375708),o=i(727072);function _(e){let{smallerText:t,className:i,textColor:s,isApplicationHome:h,enablePremiumBrandRefresh:f}=e,_=(0,I.b)().slice(0,3).reverse(),E=_.map((e,t)=>(0,n.jsx)(m,{affinity:e,applyMask:t!==_.length-1,size:f?d._3.SIZE_24:d._3.SIZE_32},e.id)),F=e=>null!=e.globalName?e.globalName:e.username,g=a.useMemo(()=>3===_.length?u.intl.formatToPlainString(u.t.c7ETJH,{username:F(_[2])}):2===_.length?u.intl.formatToPlainString(u.t["st8Rh/"],{username:F(_[1]),otherUsername:F(_[0])}):1===_.length?u.intl.formatToPlainString(u.t.dpjXPL,{username:F(_[0])}):"",[_]);return 0===_.length?null:(0,n.jsxs)("div",{className:r()(f?o.bD:o.kL,i,{[o.gr]:!f&&h}),children:[(0,n.jsx)("div",{className:o.zc,children:E}),(0,n.jsx)("div",{className:o.FS,children:(0,n.jsx)(function(){return f?(0,n.jsx)(c.E,{variant:"text-sm/medium",color:s,children:g}):t||h?(0,n.jsx)(c.E,{variant:h?"text-sm/normal":"text-lg/medium",color:s,children:g}):(0,n.jsx)(l.D,{variant:"heading-xl/medium",color:s,children:g})},{})})]})}function m(e){let{affinity:t,applyMask:i,size:a}=e,{avatarSrc:s,eventHandlers:c}=(0,f.A)({userId:t?.id,size:a,animateOnHover:!0});return(0,n.jsx)(h.eu,{className:r()(o.Kk,{[o.dK]:i}),src:s,"aria-label":t.username,size:a,...c})}}