(window.webpackJsonp=window.webpackJsonp||[]).push([[75],{1104:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return y}));var a,o,i=s(0),r=s(1),n=s.n(r),c=s(12),u=s(3),d=s.n(u),l=s(16),p=s.n(l),h=s(371),m=s(57),b=s(959),f=s(1292),j=s(28),O=s(1294),I=s(4),g=s(18),v=s(1295);const w=Object(I.f)({heading:{id:"column.favourited_by",defaultMessage:"Favourited by"},refresh:{id:"refresh",defaultMessage:"Refresh"}});let y=Object(c.connect)(((e,t)=>({accountIds:e.getIn(["user_lists","favourited_by",t.params.statusId])})))(a=Object(I.g)(((o=class extends g.a{constructor(){super(...arguments),this.handleHeaderClick=()=>{this.column.scrollTop()},this.setRef=e=>{this.column=e},this.handleRefresh=()=>{this.props.dispatch(Object(m.q)(this.props.params.statusId))}}componentWillMount(){this.props.accountIds||this.props.dispatch(Object(m.q)(this.props.params.statusId))}componentWillReceiveProps(e){e.params.statusId!==this.props.params.statusId&&e.params.statusId&&this.props.dispatch(Object(m.q)(e.params.statusId))}render(){const{intl:e,accountIds:t,multiColumn:s}=this.props;if(!t)return Object(i.a)(f.a,{},void 0,Object(i.a)(h.b,{}));const a=Object(i.a)(I.b,{id:"empty_column.favourites",defaultMessage:"No one has favourited this post yet. When someone does, they will show up here."});return n.a.createElement(f.a,{ref:this.setRef},Object(i.a)(O.a,{icon:"star",title:e.formatMessage(w.heading),onClick:this.handleHeaderClick,showBackButton:!0,multiColumn:s,extraButton:Object(i.a)("button",{className:"column-header__button",title:e.formatMessage(w.refresh),"aria-label":e.formatMessage(w.refresh),onClick:this.handleRefresh},void 0,Object(i.a)(j.a,{id:"refresh"}))}),Object(i.a)(v.a,{scrollKey:"favourites",emptyMessage:a,bindToDocument:!s},void 0,t.map((e=>Object(i.a)(b.a,{id:e,withNote:!1},e)))))}}).propTypes={params:d.a.object.isRequired,dispatch:d.a.func.isRequired,accountIds:p.a.list,multiColumn:d.a.bool,intl:d.a.object.isRequired},a=o))||a)||a}}]);
//# sourceMappingURL=favourites-84848c013519eaab1da1.chunk.js.map