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