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

2 lines
2.0 KiB
JavaScript
Raw Normal View History

2018-09-20 12:10:13 -04:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{725:function(o,a,t){"use strict";t.r(a),t.d(a,"default",function(){return q});var s,r,n,e=t(0),c=t.n(e),p=t(6),i=t.n(p),d=t(3),u=t.n(d),l=t(7),h=t.n(l),f=t(38),m=t.n(f),w=(t(1),t(12)),I=t(18),y=t(2),b=t.n(y),M=t(17),v=t.n(M),j=t(194),g=t(13),O=t(4),S=t(693),L=t(193),R=t(694),U=t(196),k=t(195),q=Object(w.connect)(function(o,a){return{accountIds:o.getIn(["user_lists","followers",a.params.accountId,"items"]),hasMore:!!o.getIn(["user_lists","followers",a.params.accountId,"next"])}})((n=r=function(o){function a(){var t,s,r;i()(this,a);for(var n=arguments.length,e=Array(n),c=0;c<n;c++)e[c]=arguments[c];return t=s=u()(this,o.call.apply(o,[this].concat(e))),s.handleLoadMore=m()(function(){s.props.dispatch(Object(g.u)(s.props.params.accountId))},300,{leading:!0}),r=t,u()(s,r)}return h()(a,o),a.prototype.componentWillMount=function(){this.props.dispatch(Object(g.w)(this.props.params.accountId)),this.props.dispatch(Object(g.y)(this.props.params.accountId))},a.prototype.componentWillReceiveProps=function(o){o.params.accountId!==this.props.params.accountId&&o.params.accountId&&(this.props.dispatch(Object(g.w)(o.params.accountId)),this.props.dispatch(Object(g.y)(o.params.accountId)))},a.prototype.render=function(){var o=this.props,a=o.shouldUpdateScroll,t=o.accountIds,s=o.hasMore;if(!t)return c()(L.a,{},void 0,c()(j.a,{}));var r=c()(O.b,{id:"account.followers.empty",defaultMessage:"No one follows this user yet."});return c()(L.a,{},void 0,c()(U.a,{}),c()(k.a,{scrollKey:"followers",hasMore:s,onLoadMore:this.handleLoadMore,shouldUpdateScroll:a,prepend:c()(R.a,{accountId:this.props.params.accountId,hideTabs:!0}),alwaysPrepend:!0,alwaysShowScrollbar:!0,emptyMessage:r},void 0,t.map(function(o){return c()(S.a,{id:o,withNote:!1},o)})))},a}(I.a),r.propTypes={params:b.a.object.isRequired,dispatch:b.a.func.isRequired,shouldUpdateScroll:b.a.func,accountIds:v.a.list,hasMore:b.a.bool},s=n))||s}}]);
//# sourceMappingURL=followers.js.map