(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{1010:function(t,e,s){"use strict";s.r(e),s.d(e,"default",(function(){return w}));var o,a,i=s(0),n=s(29),d=s.n(n),l=s(1),u=s.n(l),c=s(12),r=s(3),h=s.n(r),p=s(16),m=s.n(p),b=s(224),g=s(957),f=s(958),M=s(271),v=s(1319),j=s(4),I=s(18);const O=Object(j.f)({heading:{id:"column.favourites",defaultMessage:"Favourites"}});let w=Object(c.connect)((t=>({statusIds:t.getIn(["status_lists","favourites","items"]),isLoading:t.getIn(["status_lists","favourites","isLoading"],!0),hasMore:!!t.getIn(["status_lists","favourites","next"])})))(o=Object(j.g)(((a=class extends I.a{constructor(){super(...arguments),this.handlePin=()=>{const{columnId:t,dispatch:e}=this.props;e(t?Object(M.h)(t):Object(M.e)("FAVOURITES",{}))},this.handleMove=t=>{const{columnId:e,dispatch:s}=this.props;s(Object(M.g)(e,t))},this.handleHeaderClick=()=>{this.column.scrollTop()},this.setRef=t=>{this.column=t},this.handleLoadMore=d()((()=>{this.props.dispatch(Object(b.g)())}),300,{leading:!0})}componentWillMount(){this.props.dispatch(Object(b.h)())}render(){const{intl:t,statusIds:e,columnId:s,multiColumn:o,hasMore:a,isLoading:n}=this.props,d=!!s,l=Object(i.a)(j.b,{id:"empty_column.favourited_statuses",defaultMessage:"You don't have any favourite posts yet. When you favourite one, it will show up here."});return u.a.createElement(g.a,{bindToDocument:!o,ref:this.setRef,label:t.formatMessage(O.heading)},Object(i.a)(f.a,{icon:"star",title:t.formatMessage(O.heading),onPin:this.handlePin,onMove:this.handleMove,onClick:this.handleHeaderClick,pinned:d,multiColumn:o,showBackButton:!0}),Object(i.a)(v.a,{trackScroll:!d,statusIds:e,scrollKey:"favourited_statuses-"+s,hasMore:a,isLoading:n,onLoadMore:this.handleLoadMore,emptyMessage:l,bindToDocument:!o}))}}).propTypes={dispatch:h.a.func.isRequired,statusIds:m.a.list.isRequired,intl:h.a.object.isRequired,columnId:h.a.string,multiColumn:h.a.bool,hasMore:h.a.bool,isLoading:h.a.bool},o=a))||o)||o}}]);
//# sourceMappingURL=favourited_statuses-238e2af894d83f6a33ad.chunk.js.map