(window.webpackJsonp=window.webpackJsonp||[]).push([[66],{1107: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),c=e(1),l=e.n(c),r=e(12),u=e(3),h=e.n(u),m=e(16),p=e.n(m),b=e(290),k=e(1292),g=e(1294),M=e(373),O=e(1330),j=e(4),f=e(18);const I=Object(j.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(j.g)(((a=class extends f.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,c=Object(n.a)(j.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 l.a.createElement(k.a,{bindToDocument:!o,ref:this.setRef,name:"bookmarks"},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:c,bindToDocument:!o}))}}).propTypes={dispatch:h.a.func.isRequired,statusIds:p.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=bookmarked_statuses-6a0415e50c459b5948b1.chunk.js.map