(window.webpackJsonp=window.webpackJsonp||[]).push([[74],{1106: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),u=s.n(n),d=s(1),l=s.n(d),c=s(12),r=s(3),h=s.n(r),p=s(16),m=s.n(p),b=s(289),f=s(1292),g=s(1294),M=s(373),v=s(1330),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=u()((()=>{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,u=!!s,d=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 l.a.createElement(f.a,{bindToDocument:!o,ref:this.setRef,name:"favourites",label:t.formatMessage(O.heading)},Object(i.a)(g.a,{icon:"star",title:t.formatMessage(O.heading),onPin:this.handlePin,onMove:this.handleMove,onClick:this.handleHeaderClick,pinned:u,multiColumn:o,showBackButton:!0}),Object(i.a)(v.a,{trackScroll:!u,statusIds:e,scrollKey:"favourited_statuses-"+s,hasMore:a,isLoading:n,onLoadMore:this.handleLoadMore,emptyMessage:d,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-cbd4b8b94f7ecd8dd294.chunk.js.map