Pleroma/priv/static/packs/flavours/glitch/async/mutes.js
2019-06-26 21:06:28 +02:00

2 lines
1.7 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[68],{667:function(t,e,a){"use strict";a.r(e),a.d(e,"default",function(){return y});var c,n,o,s=a(0),i=a(2),r=a(6),l=a(1),u=(a(3),a(21)),d=a(5),p=a.n(d),b=a(26),h=a.n(b),j=a(271),O=a(427),f=a(625),m=a(631),v=a(630),g=a(134),w=a(7),M=a(25),S=Object(w.f)({heading:{id:"column.mutes",defaultMessage:"Muted users"}}),y=Object(u.connect)(function(t){return{accountIds:t.getIn(["user_lists","mutes","items"])}})(c=Object(w.g)((o=n=function(n){function t(){for(var a,t=arguments.length,e=new Array(t),c=0;c<t;c++)e[c]=arguments[c];return a=n.call.apply(n,[this].concat(e))||this,Object(l.a)(Object(i.a)(a),"handleScroll",function(t){var e=t.target;e.scrollTop===e.scrollHeight-e.clientHeight&&a.props.dispatch(Object(g.e)())}),Object(l.a)(Object(i.a)(a),"shouldUpdateScroll",function(t,e){var a=e.location;return!(((t||{}).location||{}).state||{}).mastodonModalOpen&&!(a.state&&a.state.mastodonModalOpen)}),a}Object(r.a)(t,n);var e=t.prototype;return e.componentWillMount=function(){this.props.dispatch(Object(g.f)())},e.render=function(){var t=this.props,e=t.intl,a=t.accountIds;return a?Object(s.a)(f.a,{name:"mutes",icon:"volume-off",heading:e.formatMessage(S.heading)},void 0,Object(s.a)(m.a,{}),Object(s.a)(O.a,{scrollKey:"mutes",shouldUpdateScroll:this.shouldUpdateScroll},void 0,Object(s.a)("div",{className:"scrollable mutes",onScroll:this.handleScroll},void 0,a.map(function(t){return Object(s.a)(v.a,{id:t},t)})))):Object(s.a)(f.a,{},void 0,Object(s.a)(j.a,{}))},t}(M.a),Object(l.a)(n,"propTypes",{params:p.a.object.isRequired,dispatch:p.a.func.isRequired,accountIds:h.a.list,intl:p.a.object.isRequired}),c=o))||c)||c}}]);
//# sourceMappingURL=mutes.js.map