pleroma/priv/static/packs/flavours/glitch/async/mutes.js
2020-05-20 07:55:14 +02:00

2 lines
No EOL
1.7 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[76],{804:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return L}));var n,o,s,c=a(0),u=a(2),r=(a(9),a(6),a(8)),i=a(1),d=a(65),l=a.n(d),p=(a(3),a(15)),b=a(7),m=a(5),f=a.n(m),h=a(16),j=a.n(h),O=a(305),M=a(756),g=a(761),v=a(471),y=a(123),w=a(21),I=a(1048);var q=Object(b.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(b.g)((s=o=function(e){Object(r.a)(a,e);var t;t=a;function a(){for(var t,a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return t=e.call.apply(e,[this].concat(n))||this,Object(i.a)(Object(u.a)(t),"handleLoadMore",l()((function(){t.props.dispatch(Object(y.e)())}),300,{leading:!0})),t}var n=a.prototype;return n.componentWillMount=function(){this.props.dispatch(Object(y.f)())},n.render=function(){var e=this.props,t=e.intl,a=e.accountIds,n=e.hasMore,o=e.multiColumn;if(!a)return Object(c.a)(M.a,{},void 0,Object(c.a)(O.a,{}));var s=Object(c.a)(b.b,{id:"empty_column.mutes",defaultMessage:"You haven't muted any users yet."});return(Object(c.a)(M.a,{bindToDocument:!o,name:"mutes",icon:"volume-off",heading:t.formatMessage(q.heading)},void 0,Object(c.a)(g.a,{}),Object(c.a)(I.a,{scrollKey:"mutes",onLoadMore:this.handleLoadMore,hasMore:n,emptyMessage:s,bindToDocument:!o},void 0,a.map((function(e){return Object(c.a)(v.a,{id:e},e)})))))},a}(w.a),Object(i.a)(o,"propTypes",{params:f.a.object.isRequired,dispatch:f.a.func.isRequired,hasMore:f.a.bool,accountIds:j.a.list,intl:f.a.object.isRequired,multiColumn:f.a.bool}),n=s))||n)||n}}]);
//# sourceMappingURL=mutes.js.map