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

2 lines
1.7 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[53],{803: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(9),a(6),a(8)),u=a(1),d=a(65),l=a.n(d),b=(a(3),a(15)),p=a(16),h=a.n(p),j=a(5),f=a.n(j),m=a(305),O=a(1048),g=a(756),M=a(761),v=a(471),k=a(229),y=a(7),w=a(21);var I=Object(y.f)({heading:{id:"column.blocks",defaultMessage:"Blocked users"}}),q=Object(b.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){Object(i.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(u.a)(Object(r.a)(t),"handleLoadMore",l()((function(){t.props.dispatch(Object(k.d)())}),300,{leading:!0})),t}var n=a.prototype;return n.componentWillMount=function(){this.props.dispatch(Object(k.e)())},n.render=function(){var e=this.props,t=e.intl,a=e.accountIds,n=e.hasMore,o=e.multiColumn;if(!a)return Object(s.a)(g.a,{},void 0,Object(s.a)(m.a,{}));var c=Object(s.a)(y.b,{id:"empty_column.blocks",defaultMessage:"You haven't blocked any users yet."});return(Object(s.a)(g.a,{name:"blocks",bindToDocument:!o,icon:"ban",heading:t.formatMessage(I.heading)},void 0,Object(s.a)(M.a,{}),Object(s.a)(O.a,{scrollKey:"blocks",onLoadMore:this.handleLoadMore,hasMore:n,emptyMessage:c,bindToDocument:!o},void 0,a.map((function(e){return Object(s.a)(v.a,{id:e},e)})))))},a}(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,multiColumn:f.a.bool}),n=c))||n)||n}}]);
//# sourceMappingURL=blocks.js.map