qb_akkoma/priv/static/packs/features/mutes.js
Haelwenn (lanodan) Monnier 83e3afac2c Update mastodon frontend
2018-09-20 16:13:13 +00:00

2 lines
No EOL
1.5 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{718:function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return k});var o,a,s,r=n(0),u=n.n(r),i=n(6),c=n.n(i),d=n(3),p=n.n(d),l=n(7),f=n.n(l),h=n(38),m=n.n(h),g=(n(1),n(12)),b=n(4),v=n(18),y=n(2),M=n.n(y),j=n(17),w=n.n(j),O=n(194),I=n(193),q=n(197),L=n(693),R=n(45),S=n(195),U=Object(b.f)({heading:{id:"column.mutes",defaultMessage:"Muted users"}}),k=Object(g.connect)(function(e){return{accountIds:e.getIn(["user_lists","mutes","items"])}})(o=Object(b.g)((s=a=function(e){function t(){var n,o,a;c()(this,t);for(var s=arguments.length,r=Array(s),u=0;u<s;u++)r[u]=arguments[u];return n=o=p()(this,e.call.apply(e,[this].concat(r))),o.handleLoadMore=m()(function(){o.props.dispatch(Object(R.e)())},300,{leading:!0}),a=n,p()(o,a)}return f()(t,e),t.prototype.componentWillMount=function(){this.props.dispatch(Object(R.f)())},t.prototype.render=function(){var e=this.props,t=e.intl,n=e.shouldUpdateScroll,o=e.accountIds;if(!o)return u()(I.a,{},void 0,u()(O.a,{}));var a=u()(b.b,{id:"empty_column.mutes",defaultMessage:"You haven't muted any users yet."});return u()(I.a,{icon:"volume-off",heading:t.formatMessage(U.heading)},void 0,u()(q.a,{}),u()(S.a,{scrollKey:"mutes",onLoadMore:this.handleLoadMore,shouldUpdateScroll:n,emptyMessage:a},void 0,o.map(function(e){return u()(L.a,{id:e},e)})))},t}(v.a),a.propTypes={params:M.a.object.isRequired,dispatch:M.a.func.isRequired,shouldUpdateScroll:M.a.func,accountIds:w.a.list,intl:M.a.object.isRequired},o=s))||o)||o}}]);
//# sourceMappingURL=mutes.js.map