(window.webpackJsonp=window.webpackJsonp||[]).push([[46],{665:function(t,e,a){"use strict";a.r(e),a.d(e,"default",function(){return R});var n,o,s,r=a(0),i=a(2),c=a(6),l=a(1),u=a(56),d=a.n(u),b=a(3),h=a.n(b),p=a(21),m=a(5),O=a.n(m),j=a(26),k=a.n(j),f=a(189),g=a(625),M=a(627),I=a(221),v=a(902),w=a(7),L=a(25),C=Object(w.f)({heading:{id:"column.bookmarks",defaultMessage:"Bookmarks"}}),R=Object(p.connect)(function(t){return{statusIds:t.getIn(["status_lists","bookmarks","items"]),isLoading:t.getIn(["status_lists","bookmarks","isLoading"],!0),hasMore:!!t.getIn(["status_lists","bookmarks","next"])}})(n=Object(w.g)((s=o=function(o){function t(){for(var n,t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];return n=o.call.apply(o,[this].concat(e))||this,Object(l.a)(Object(i.a)(n),"handlePin",function(){var t=n.props,e=t.columnId,a=t.dispatch;a(e?Object(I.h)(e):Object(I.e)("BOOKMARKS",{}))}),Object(l.a)(Object(i.a)(n),"handleMove",function(t){var e=n.props,a=e.columnId;(0,e.dispatch)(Object(I.g)(a,t))}),Object(l.a)(Object(i.a)(n),"handleHeaderClick",function(){n.column.scrollTop()}),Object(l.a)(Object(i.a)(n),"setRef",function(t){n.column=t}),Object(l.a)(Object(i.a)(n),"handleLoadMore",d()(function(){n.props.dispatch(Object(f.g)())},300,{leading:!0})),n}Object(c.a)(t,o);var e=t.prototype;return e.componentWillMount=function(){this.props.dispatch(Object(f.h)())},e.render=function(){var t=this.props,e=t.intl,a=t.statusIds,n=t.columnId,o=t.multiColumn,s=t.hasMore,i=t.isLoading,c=!!n;return h.a.createElement(g.a,{ref:this.setRef,name:"bookmarks"},Object(r.a)(M.a,{icon:"bookmark",title:e.formatMessage(C.heading),onPin:this.handlePin,onMove:this.handleMove,onClick:this.handleHeaderClick,pinned:c,multiColumn:o,showBackButton:!0}),Object(r.a)(v.a,{trackScroll:!c,statusIds:a,scrollKey:"bookmarked_statuses-"+n,hasMore:s,isLoading:i,onLoadMore:this.handleLoadMore}))},t}(L.a),Object(l.a)(o,"propTypes",{dispatch:O.a.func.isRequired,statusIds:k.a.list.isRequired,intl:O.a.object.isRequired,columnId:O.a.string,multiColumn:O.a.bool,hasMore:O.a.bool,isLoading:O.a.bool}),n=s))||n)||n}}]);
//# sourceMappingURL=bookmarked_statuses.js.map