(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{776:function(t,e,o){"use strict";o.r(e),o.d(e,"default",(function(){return C}));var a,n,s,i=o(0),c=o(2),r=o(7),u=o(1),l=o(62),d=o.n(l),b=o(3),h=o.n(b),m=o(13),p=o(5),k=o.n(p),O=o(14),j=o.n(O),f=o(202),g=o(730),M=o(732),I=o(249),v=o(1037),w=o(6),y=o(18),L=Object(w.f)({heading:{id:"column.bookmarks",defaultMessage:"Bookmarks"}}),C=Object(m.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"])}}))(a=Object(w.g)((s=n=function(t){function e(){for(var e,o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return e=t.call.apply(t,[this].concat(a))||this,Object(u.a)(Object(c.a)(e),"handlePin",(function(){var t=e.props,o=t.columnId,a=t.dispatch;a(o?Object(I.h)(o):Object(I.e)("BOOKMARKS",{}))})),Object(u.a)(Object(c.a)(e),"handleMove",(function(t){var o=e.props,a=o.columnId;(0,o.dispatch)(Object(I.g)(a,t))})),Object(u.a)(Object(c.a)(e),"handleHeaderClick",(function(){e.column.scrollTop()})),Object(u.a)(Object(c.a)(e),"setRef",(function(t){e.column=t})),Object(u.a)(Object(c.a)(e),"handleLoadMore",d()((function(){e.props.dispatch(Object(f.g)())}),300,{leading:!0})),e}Object(r.a)(e,t);var o=e.prototype;return o.componentWillMount=function(){this.props.dispatch(Object(f.h)())},o.render=function(){var t=this.props,e=t.intl,o=t.statusIds,a=t.columnId,n=t.multiColumn,s=t.hasMore,c=t.isLoading,r=!!a,u=Object(i.a)(w.b,{id:"empty_column.bookmarked_statuses",defaultMessage:"You don't have any bookmarked toots yet. When you bookmark one, it will show up here."});return h.a.createElement(g.a,{bindToDocument:!n,ref:this.setRef,name:"bookmarks"},Object(i.a)(M.a,{icon:"bookmark",title:e.formatMessage(L.heading),onPin:this.handlePin,onMove:this.handleMove,onClick:this.handleHeaderClick,pinned:r,multiColumn:n,showBackButton:!0}),Object(i.a)(v.a,{trackScroll:!r,statusIds:o,scrollKey:"bookmarked_statuses-"+a,hasMore:s,isLoading:c,onLoadMore:this.handleLoadMore,emptyMessage:u,bindToDocument:!n}))},e}(y.a),Object(u.a)(n,"propTypes",{dispatch:k.a.func.isRequired,statusIds:j.a.list.isRequired,intl:k.a.object.isRequired,columnId:k.a.string,multiColumn:k.a.bool,hasMore:k.a.bool,isLoading:k.a.bool}),a=s))||a)||a}}]);
//# sourceMappingURL=bookmarked_statuses.js.map