Module 652234

1,381 characters · in 30a277b9d32d70b1.js
Dependencies
Required by (1)
Lazily required by (0)none
Lazily requires (1)
Source Raw
function(e,t,n){n.d(t,{A:()=>I});var i=n(627968),l=n(64700),a=n(735438),r=n.n(a),s=n(311907),o=n(442433),d=n(504337),c=n(655116),u=n(629016),A=n(994500),h=n(287809),_=n(403362),m=n(901133),g=n(507133),p=n(985018);class E extends l.PureComponent{hasParty(e){return e.length>1}handleStopListening(){(0,d.A)()}handleUserContextMenu=(e,t)=>{(0,o.L3)(e,async()=>{let{default:e}=await Promise.all([n.e("97262"),n.e("32418"),n.e("22880")]).then(n.bind(n,668569));return n=>(0,i.jsx)(e,{...n,user:t})})};renderOverflowPopout=()=>{let{party:e}=this.props;return(0,i.jsx)(g.A,{party:e,header:p.intl.formatToPlainString(p.t.I9et1z,{count:e.length})})};render(){let{currentUser:e,host:t,party:n}=this.props;return this.hasParty(n)&&null!=e?(0,i.jsx)(m.A,{currentUser:e,host:t,party:n,renderOverflowPopout:this.renderOverflowPopout,onStopListening:this.handleStopListening,onUserContextMenu:this.handleUserContextMenu}):null}}let I=s.Ay.connectStores([c.A,h.default,A.A,u.A],()=>{let e,t,n=c.A.getSyncingWith(),i=c.A.getActivity(),l=h.default.getCurrentUser(),a=[];return null!=n?(e=h.default.getUser(n.userId),t=n.partyId):null!=i&&null!=i.party&&null!=i.party.id&&(e=l,t=i.party.id),null!=t&&(a=r()(Array.from(u.A.getParty(t)??[])).map(e=>h.default.getUser(e)).filter(_.Vq).orderBy([t=>null==e||e.id===t.id,e=>A.A.isFriend(e.id)],["desc","desc"]).value()),{currentUser:l,host:e,party:a}})(E)}