forked from AkkomaGang/akkoma
2 lines
No EOL
1.9 KiB
JavaScript
2 lines
No EOL
1.9 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[74],{661:function(t,e,a){"use strict";a.r(e),a.d(e,"default",function(){return M});var s,o,n,c=a(0),r=a(2),i=a(6),l=a(1),d=a(3),u=a.n(d),p=a(21),b=a(5),h=a.n(b),f=a(26),j=a.n(f),O=a(271),m=a(49),g=a(427),v=a(630),w=a(625),I=a(627),y=a(7),k=a(25),R=Object(y.f)({heading:{id:"column.reblogged_by",defaultMessage:"Boosted by"}}),M=Object(p.connect)(function(t,e){return{accountIds:t.getIn(["user_lists","reblogged_by",e.params.statusId])}})(s=Object(y.g)((n=o=function(o){function t(){for(var e,t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return e=o.call.apply(o,[this].concat(a))||this,Object(l.a)(Object(r.a)(e),"shouldUpdateScroll",function(t,e){var a=e.location;return!(((t||{}).location||{}).state||{}).mastodonModalOpen&&!(a.state&&a.state.mastodonModalOpen)}),Object(l.a)(Object(r.a)(e),"handleHeaderClick",function(){e.column.scrollTop()}),Object(l.a)(Object(r.a)(e),"setRef",function(t){e.column=t}),e}Object(i.a)(t,o);var e=t.prototype;return e.componentWillMount=function(){this.props.dispatch(Object(m.r)(this.props.params.statusId))},e.componentWillReceiveProps=function(t){t.params.statusId!==this.props.params.statusId&&t.params.statusId&&this.props.dispatch(Object(m.r)(t.params.statusId))},e.render=function(){var t=this.props,e=t.intl,a=t.accountIds;return a?u.a.createElement(w.a,{ref:this.setRef},Object(c.a)(I.a,{icon:"retweet",title:e.formatMessage(R.heading),onClick:this.handleHeaderClick,showBackButton:!0}),Object(c.a)(g.a,{scrollKey:"reblogs",shouldUpdateScroll:this.shouldUpdateScroll},void 0,Object(c.a)("div",{className:"scrollable reblogs"},void 0,a.map(function(t){return Object(c.a)(v.a,{id:t,withNote:!1},t)})))):Object(c.a)(w.a,{},void 0,Object(c.a)(O.a,{}))},t}(k.a),Object(l.a)(o,"propTypes",{params:h.a.object.isRequired,dispatch:h.a.func.isRequired,accountIds:j.a.list,intl:h.a.object.isRequired}),s=n))||s)||s}}]);
|
|
//# sourceMappingURL=reblogs.js.map
|