akkoma/priv/static/packs/flavours/glitch/async/mutes.js
Haelwenn (lanodan) Monnier 2a850abbeb
MastoFE: Bundle 2020-01-20
2020-02-29 06:41:13 +01:00

2 lines
No EOL
1.7 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[76],{778:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return L}));var a,o,s,c=n(0),u=n(2),i=n(7),r=n(1),d=n(62),l=n.n(d),p=(n(3),n(13)),b=n(6),m=n(5),f=n.n(m),h=n(14),j=n.n(h),O=n(299),M=n(730),g=n(735),v=n(466),y=n(119),w=n(18),I=n(1022),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"])}}))(a=Object(b.g)((s=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(r.a)(Object(u.a)(t),"handleLoadMore",l()((function(){t.props.dispatch(Object(y.e)())}),300,{leading:!0})),t}Object(i.a)(t,e);var n=t.prototype;return n.componentWillMount=function(){this.props.dispatch(Object(y.f)())},n.render=function(){var e=this.props,t=e.intl,n=e.accountIds,a=e.hasMore,o=e.multiColumn;if(!n)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:a,emptyMessage:s,bindToDocument:!o},void 0,n.map((function(e){return Object(c.a)(v.a,{id:e},e)}))))},t}(w.a),Object(r.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}),a=s))||a)||a}}]);
//# sourceMappingURL=mutes.js.map