(window.webpackJsonp=window.webpackJsonp||[]).push([[46],{675:function(t,e,a){"use strict";a.r(e),a.d(e,"default",function(){return R});var n,o,s,r=a(1),c=a(7),i=a(0),l=a(2),u=a(54),d=a.n(u),b=a(3),h=a.n(b),p=a(20),O=a(5),j=a.n(O),m=a(26),k=a.n(m),f=a(62),g=a(641),M=a(428),I=a(206),v=a(647),w=a(6),L=a(24),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)(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)(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)(Object(i.a)(n)),"handleHeaderClick",function(){n.column.scrollTop()}),Object(l.a)(Object(i.a)(Object(i.a)(n)),"setRef",function(t){n.column=t}),Object(l.a)(Object(i.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,c=t.isLoading,i=!!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:i,multiColumn:o,showBackButton:!0}),Object(r.a)(v.a,{trackScroll:!i,statusIds:a,scrollKey:"bookmarked_statuses-"+n,hasMore:s,isLoading:c,onLoadMore:this.handleLoadMore}))},t}(L.a),Object(l.a)(o,"propTypes",{dispatch:j.a.func.isRequired,statusIds:k.a.list.isRequired,intl:j.a.object.isRequired,columnId:j.a.string,multiColumn:j.a.bool,hasMore:j.a.bool,isLoading:j.a.bool}),n=s))||n)||n}}]);
//# sourceMappingURL=bookmarked_statuses.js.map