spc-pleroma/priv/static/packs/features/mutes.js

2 lines
1.6 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{685:function(e,t,a){"use strict";a.r(t),a.d(t,"default",function(){return L});var n,o,s,c=a(0),r=a(3),u=a(7),i=a(1),d=a(56),l=a.n(d),p=(a(2),a(24)),h=a(6),b=a(25),f=a(5),j=a.n(f),m=a(27),O=a.n(m),M=a(272),g=a(625),v=a(632),y=a(891),w=a(195),I=a(889),q=Object(h.f)({heading:{id:"column.mutes",defaultMessage:"Muted users"}}),L=Object(p.connect)(function(e){return{accountIds:e.getIn(["user_lists","mutes","items"]),hasMore:!!e.getIn(["user_lists","mutes","next"])}})(n=Object(h.g)((s=o=function(o){function e(){for(var e,t=arguments.length,a=new Array(t),n=0;n<t;n++)a[n]=arguments[n];return e=o.call.apply(o,[this].concat(a))||this,Object(i.a)(Object(r.a)(e),"handleLoadMore",l()(function(){e.props.dispatch(Object(w.e)())},300,{leading:!0})),e}Object(u.a)(e,o);var t=e.prototype;return t.componentWillMount=function(){this.props.dispatch(Object(w.f)())},t.render=function(){var e=this.props,t=e.intl,a=e.shouldUpdateScroll,n=e.hasMore,o=e.accountIds;if(!o)return Object(c.a)(g.a,{},void 0,Object(c.a)(M.a,{}));var s=Object(c.a)(h.b,{id:"empty_column.mutes",defaultMessage:"You haven't muted any users yet."});return Object(c.a)(g.a,{icon:"volume-off",heading:t.formatMessage(q.heading)},void 0,Object(c.a)(v.a,{}),Object(c.a)(I.a,{scrollKey:"mutes",onLoadMore:this.handleLoadMore,hasMore:n,shouldUpdateScroll:a,emptyMessage:s},void 0,o.map(function(e){return Object(c.a)(y.a,{id:e},e)})))},e}(b.a),Object(i.a)(o,"propTypes",{params:j.a.object.isRequired,dispatch:j.a.func.isRequired,shouldUpdateScroll:j.a.func,hasMore:j.a.bool,accountIds:O.a.list,intl:j.a.object.isRequired}),n=s))||n)||n}}]);
//# sourceMappingURL=mutes.js.map