pleroma/priv/static/packs/features/pinned_statuses.js

2 lines
1.5 KiB
JavaScript
Raw Normal View History

2020-01-22 15:00:23 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{724:function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return y});var s,a,o,c=n(0),i=n(2),u=n(7),r=n(1),l=n(3),d=n.n(l),p=n(12),b=n(5),h=n.n(b),f=n(18),m=n.n(f),j=n(420),O=n(663),g=n(670),w=n(995),M=n(6),I=n(19),R=Object(M.f)({heading:{id:"column.pins",defaultMessage:"Pinned toot"}}),y=Object(p.connect)(function(t){return{statusIds:t.getIn(["status_lists","pins","items"]),hasMore:!!t.getIn(["status_lists","pins","next"])}})(s=Object(M.g)((o=a=function(t){function e(){for(var e,n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return e=t.call.apply(t,[this].concat(s))||this,Object(r.a)(Object(i.a)(e),"handleHeaderClick",function(){e.column.scrollTop()}),Object(r.a)(Object(i.a)(e),"setRef",function(t){e.column=t}),e}Object(u.a)(e,t);var n=e.prototype;return n.componentWillMount=function(){this.props.dispatch(Object(j.b)())},n.render=function(){var t=this.props,e=t.intl,n=t.shouldUpdateScroll,s=t.statusIds,a=t.hasMore,o=t.multiColumn;return d.a.createElement(O.a,{bindToDocument:!o,icon:"thumb-tack",heading:e.formatMessage(R.heading),ref:this.setRef},Object(c.a)(g.a,{}),Object(c.a)(w.a,{statusIds:s,scrollKey:"pinned_statuses",hasMore:a,shouldUpdateScroll:n,bindToDocument:!o}))},e}(I.a),Object(r.a)(a,"propTypes",{dispatch:h.a.func.isRequired,shouldUpdateScroll:h.a.func,statusIds:m.a.list.isRequired,intl:h.a.object.isRequired,hasMore:h.a.bool.isRequired,multiColumn:h.a.bool}),s=o))||s)||s}}]);
2018-08-12 13:29:30 +00:00
//# sourceMappingURL=pinned_statuses.js.map