akkoma/priv/static/packs/flavours/glitch/async/reblogs.js
2020-05-20 07:55:14 +02:00

2 lines
No EOL
2.3 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[82],{798:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return C}));var s,o,r,n=a(0),c=a(2),i=(a(9),a(6),a(8)),u=a(1),l=a(3),d=a.n(l),p=a(15),b=a(5),h=a.n(b),f=a(16),m=a.n(f),j=a(305),O=a(47),g=a(471),w=a(756),y=a(25),I=a(758),v=a(7),R=a(21),M=a(1048);var 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)((r=o=function(e){Object(i.a)(a,e);var t;t=a;function a(){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}var s=a.prototype;return s.componentWillMount=function(){this.props.accountIds||this.props.dispatch(Object(O.r)(this.props.params.statusId))},s.componentWillReceiveProps=function(e){e.params.statusId!==this.props.params.statusId&&e.params.statusId&&this.props.dispatch(Object(O.r)(e.params.statusId))},s.render=function(){var e=this.props,t=e.intl,a=e.accountIds,s=e.multiColumn;if(!a)return Object(n.a)(w.a,{},void 0,Object(n.a)(j.a,{}));var o=Object(n.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(n.a)(I.a,{icon:"retweet",title:t.formatMessage(k.heading),onClick:this.handleHeaderClick,showBackButton:!0,multiColumn:s,extraButton:Object(n.a)("button",{className:"column-header__button",title:t.formatMessage(k.refresh),"aria-label":t.formatMessage(k.refresh),onClick:this.handleRefresh},void 0,Object(n.a)(y.a,{id:"refresh"}))}),Object(n.a)(M.a,{scrollKey:"reblogs",emptyMessage:o,bindToDocument:!s},void 0,a.map((function(e){return Object(n.a)(g.a,{id:e,withNote:!1},e)})))))},a}(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=r))||s)||s}}]);
//# sourceMappingURL=reblogs.js.map