pleroma/priv/static/packs/flavours/glitch/async/reblogs.js

2 lines
2.3 KiB
JavaScript
Raw Normal View History

2020-02-29 05:41:13 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[82],{772:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return C}));var s,o,n,r=a(0),c=a(2),i=a(7),u=a(1),l=a(3),d=a.n(l),p=a(13),b=a(5),h=a.n(b),f=a(14),m=a.n(f),j=a(299),O=a(46),g=a(466),w=a(730),y=a(23),I=a(732),v=a(6),R=a(18),M=a(1022),k=Object(v.f)({heading:{id:"column.reblogged_by",defaultMessage:"Boosted by"},refresh:{id:"refresh",defaultMessage:"Refresh"}}),C=Object(p.connect)((function(e,t){return{accountIds:e.getIn(["user_lists","reblogged_by",t.params.statusId])}}))(s=Object(v.g)((n=o=function(e){function t(){for(var t,a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s))||this,Object(u.a)(Object(c.a)(t),"handleHeaderClick",(function(){t.column.scrollTop()})),Object(u.a)(Object(c.a)(t),"setRef",(function(e){t.column=e})),Object(u.a)(Object(c.a)(t),"handleRefresh",(function(){t.props.dispatch(Object(O.r)(t.props.params.statusId))})),t}Object(i.a)(t,e);var a=t.prototype;return a.componentWillMount=function(){this.props.accountIds||this.props.dispatch(Object(O.r)(this.props.params.statusId))},a.componentWillReceiveProps=function(e){e.params.statusId!==this.props.params.statusId&&e.params.statusId&&this.props.dispatch(Object(O.r)(e.params.statusId))},a.render=function(){var e=this.props,t=e.intl,a=e.accountIds,s=e.multiColumn;if(!a)return Object(r.a)(w.a,{},void 0,Object(r.a)(j.a,{}));var o=Object(r.a)(v.b,{id:"status.reblogs.empty",defaultMessage:"No one has boosted this toot yet. When someone does, they will show up here."});return d.a.createElement(w.a,{ref:this.setRef},Object(r.a)(I.a,{icon:"retweet",title:t.formatMessage(k.heading),onClick:this.handleHeaderClick,showBackButton:!0,multiColumn:s,extraButton:Object(r.a)("button",{className:"column-header__button",title:t.formatMessage(k.refresh),"aria-label":t.formatMessage(k.refresh),onClick:this.handleRefresh},void 0,Object(r.a)(y.a,{id:"refresh"}))}),Object(r.a)(M.a,{scrollKey:"reblogs",emptyMessage:o,bindToDocument:!s},void 0,a.map((function(e){return Object(r.a)(g.a,{id:e,withNote:!1},e)}))))},t}(R.a),Object(u.a)(o,"propTypes",{params:h.a.object.isRequired,dispatch:h.a.func.isRequired,accountIds:m.a.list,multiColumn:h.a.bool,intl:h.a.object.isRequired}),s=n))||s)||s}}]);
2018-09-16 21:17:34 +00:00
//# sourceMappingURL=reblogs.js.map