pleroma/priv/static/packs/flavours/glitch/async/blocks.js
2020-01-22 16:00:23 +01:00

2 lines
1.6 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{709:function(e,t,a){"use strict";a.r(t),a.d(t,"default",function(){return q});var n,o,c,s=a(0),r=a(2),i=a(7),u=a(1),d=a(63),b=a.n(d),l=(a(3),a(12)),p=a(18),h=a.n(p),j=a(5),f=a.n(j),O=a(293),g=a(963),M=a(662),k=a(668),m=a(459),v=a(219),y=a(6),w=a(19),I=Object(y.f)({heading:{id:"column.blocks",defaultMessage:"Blocked users"}}),q=Object(l.connect)(function(e){return{accountIds:e.getIn(["user_lists","blocks","items"]),hasMore:!!e.getIn(["user_lists","blocks","next"])}})(n=Object(y.g)((c=o=function(e){function t(){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(u.a)(Object(r.a)(t),"handleLoadMore",b()(function(){t.props.dispatch(Object(v.d)())},300,{leading:!0})),t}Object(i.a)(t,e);var a=t.prototype;return a.componentWillMount=function(){this.props.dispatch(Object(v.e)())},a.render=function(){var e=this.props,t=e.intl,a=e.accountIds,n=e.hasMore;if(!a)return Object(s.a)(M.a,{},void 0,Object(s.a)(O.a,{}));var o=Object(s.a)(y.b,{id:"empty_column.blocks",defaultMessage:"You haven't blocked any users yet."});return Object(s.a)(M.a,{name:"blocks",icon:"ban",heading:t.formatMessage(I.heading)},void 0,Object(s.a)(k.a,{}),Object(s.a)(g.a,{scrollKey:"blocks",onLoadMore:this.handleLoadMore,hasMore:n,emptyMessage:o},void 0,a.map(function(e){return Object(s.a)(m.a,{id:e},e)})))},t}(w.a),Object(u.a)(o,"propTypes",{params:f.a.object.isRequired,dispatch:f.a.func.isRequired,accountIds:h.a.list,hasMore:f.a.bool,intl:f.a.object.isRequired}),n=c))||n)||n}}]);
//# sourceMappingURL=blocks.js.map