honkoma/priv/static/packs/flavours/glitch/async/mutes.js

2 lines
1.7 KiB
JavaScript
Raw Normal View History

2018-09-16 21:17:34 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[67],{675:function(t,e,a){"use strict";a.r(e),a.d(e,"default",function(){return y});var c,n,o,s=a(1),i=a(6),r=a(0),l=a(2),u=(a(3),a(20)),d=a(5),p=a.n(d),b=a(26),j=a.n(b),O=a(288),h=a(295),f=a(639),m=a(643),v=a(624),g=a(66),w=a(7),M=a(24),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(r.a)(Object(r.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(r.a)(Object(r.a)(a)),"shouldUpdateScroll",function(t,e){var a=e.location;return!(((t||{}).location||{}).state||{}).mastodonModalOpen&&!(a.state&&a.state.mastodonModalOpen)}),a}Object(i.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)(h.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)(O.a,{}))},t}(M.a),Object(l.a)(n,"propTypes",{params:p.a.object.isRequired,dispatch:p.a.func.isRequired,accountIds:j.a.list,intl:p.a.object.isRequired}),c=o))||c)||c}}]);
//# sourceMappingURL=mutes.js.map