(window.webpackJsonp=window.webpackJsonp||[]).push([[62],{799:function(t,e,a){"use strict";a.r(e),a.d(e,"default",(function(){returnC}));vars,o,n,r=a(0),c=a(2),i=(a(9),a(6),a(8)),u=a(1),d=a(3),l=a.n(d),p=a(15),h=a(5),f=a.n(h),b=a(16),m=a.n(b),j=a(305),O=a(47),v=a(471),g=a(756),y=a(25),I=a(758),w=a(7),R=a(21),M=a(1048);vark=Object(w.f)({heading:{id:"column.favourited_by",defaultMessage:"Favourited by"},refresh:{id:"refresh",defaultMessage:"Refresh"}}),C=Object(p.connect)((function(t,e){return{accountIds:t.getIn(["user_lists","favourited_by",e.params.statusId])}}))(s=Object(w.g)((n=o=function(t){Object(i.a)(a,t);vare;e=a;functiona(){for(vare,a=arguments.length,s=newArray(a),o=0;o<a;o++)s[o]=arguments[o];returne=t.call.apply(t,[this].concat(s))||this,Object(u.a)(Object(c.a)(e),"handleHeaderClick",(function(){e.column.scrollTop()})),Object(u.a)(Object(c.a)(e),"setRef",(function(t){e.column=t})),Object(u.a)(Object(c.a)(e),"handleRefresh",(function(){e.props.dispatch(Object(O.q)(e.props.params.statusId))})),e}vars=a.prototype;returns.componentWillMount=function(){this.props.accountIds||this.props.dispatch(Object(O.q)(this.props.params.statusId))},s.componentWillReceiveProps=function(t){t.params.statusId!==this.props.params.statusId&&t.params.statusId&&this.props.dispatch(Object(O.q)(t.params.statusId))},s.render=function(){vart=this.props,e=t.intl,a=t.accountIds,s=t.multiColumn;if(!a)returnObject(r.a)(g.a,{},void0,Object(r.a)(j.a,{}));varo=Object(r.a)(w.b,{id:"empty_column.favourites",defaultMessage:"No one has favourited this toot yet. When someone does, they will show up here."});return(l.a.createElement(g.a,{ref:this.setRef},Object(r.a)(I.a,{icon:"star",title:e.formatMessage(k.heading),onClick:this.handleHeaderClick,showBackButton:!0,multiColumn:s,extraButton:Object(r.a)("button",{className:"column-header__button",title:e.formatMessage(k.refresh),"aria-label":e.formatMessage(k.refresh),onClick:this.handleRefresh},void0,Object(r.a)(y.a,{id:"refresh"}))}),Object(r.a)(M.a,{scrollKey:"favourites",emptyMessage:o,bindToDocument:!s},void0,a.map((function(t){returnObject(r.a)(v.a,{id:t,withNote:!1},t)})))))},a}(R.a),Object(u.a)(o,"propTypes",{params:f.a.object.isRequired,dispatch:f.a.func.isRequired,accountIds:m.a.list,multiColumn:f.a.bool,intl:f.a.object.isRequired}),s=n))||s)||s}}]);