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