(window.webpackJsonp=window.webpackJsonp||[]).push([[62],{773: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(7),u=a(1),d=a(3),l=a.n(d),p=a(13),h=a(5),f=a.n(h),b=a(14),m=a.n(b),j=a(299),O=a(46),v=a(466),g=a(730),y=a(23),I=a(732),w=a(6),R=a(18),M=a(1022),k=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){functione(){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}Object(i.a)(e,t);vara=e.prototype;returna.componentWillMount=function(){this.props.accountIds||this.props.dispatch(Object(O.q)(this.props.params.statusId))},a.componentWillReceiveProps=function(t){t.params.statusId!==this.props.params.statusId&&t.params.statusId&&this.props.dispatch(Object(O.q)(t.params.statusId))},a.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."});returnl.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)}))))},e}(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}}]);