2019-06-26 19:06:28 +00:00
|
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{662:function(t,a,e){"use strict";e.r(a),e.d(a,"default",function(){return q});var s,o,n,c=e(0),i=e(2),r=e(6),u=e(1),d=e(3),l=e.n(d),p=e(21),b=e(5),f=e.n(b),h=e(26),j=e.n(h),O=e(271),m=e(49),v=e(427),I=e(630),w=e(625),y=e(627),g=e(7),k=e(25),R=Object(g.f)({heading:{id:"column.favourited_by",defaultMessage:"Favourited by"}}),q=Object(p.connect)(function(t,a){return{accountIds:t.getIn(["user_lists","favourited_by",a.params.statusId])}})(s=Object(g.g)((n=o=function(o){function t(){for(var a,t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return a=o.call.apply(o,[this].concat(e))||this,Object(u.a)(Object(i.a)(a),"shouldUpdateScroll",function(t,a){var e=a.location;return!(((t||{}).location||{}).state||{}).mastodonModalOpen&&!(e.state&&e.state.mastodonModalOpen)}),Object(u.a)(Object(i.a)(a),"handleHeaderClick",function(){a.column.scrollTop()}),Object(u.a)(Object(i.a)(a),"setRef",function(t){a.column=t}),a}Object(r.a)(t,o);var a=t.prototype;return a.componentWillMount=function(){this.props.dispatch(Object(m.q)(this.props.params.statusId))},a.componentWillReceiveProps=function(t){t.params.statusId!==this.props.params.statusId&&t.params.statusId&&this.props.dispatch(Object(m.q)(t.params.statusId))},a.render=function(){var t=this.props,a=t.intl,e=t.accountIds;return e?l.a.createElement(w.a,{ref:this.setRef},Object(c.a)(y.a,{icon:"star",title:a.formatMessage(R.heading),onClick:this.handleHeaderClick,showBackButton:!0}),Object(c.a)(v.a,{scrollKey:"favourites",shouldUpdateScroll:this.shouldUpdateScroll},void 0,Object(c.a)("div",{className:"scrollable"},void 0,e.map(function(t){return Object(c.a)(I.a,{id:t,withNote:!1},t)})))):Object(c.a)(w.a,{},void 0,Object(c.a)(O.a,{}))},t}(k.a),Object(u.a)(o,"propTypes",{params:f.a.object.isRequired,dispatch:f.a.func.isRequired,accountIds:j.a.list,intl:f.a.object.isRequired}),s=n))||s)||s}}]);
|