pleroma/priv/static/packs/flavours/glitch/async/blocks.js

2 lines
1.7 KiB
JavaScript
Raw Normal View History

2020-02-29 00:41:13 -05:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[53],{777:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return q}));var a,o,c,s=n(0),i=n(2),r=n(7),u=n(1),d=n(62),l=n.n(d),b=(n(3),n(13)),p=n(14),h=n.n(p),j=n(5),f=n.n(j),m=n(299),O=n(1022),g=n(730),M=n(735),k=n(466),v=n(225),y=n(6),w=n(18),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"])}}))(a=Object(y.g)((c=o=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a))||this,Object(u.a)(Object(i.a)(t),"handleLoadMore",l()((function(){t.props.dispatch(Object(v.d)())}),300,{leading:!0})),t}Object(r.a)(t,e);var n=t.prototype;return n.componentWillMount=function(){this.props.dispatch(Object(v.e)())},n.render=function(){var e=this.props,t=e.intl,n=e.accountIds,a=e.hasMore,o=e.multiColumn;if(!n)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:a,emptyMessage:c,bindToDocument:!o},void 0,n.map((function(e){return Object(s.a)(k.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,multiColumn:f.a.bool}),a=c))||a)||a}}]);
2018-09-16 17:17:34 -04:00
//# sourceMappingURL=blocks.js.map