Pleroma/priv/static/packs/flavours/glitch/async/direct_timeline.js
2019-06-26 21:06:28 +02:00

2 lines
2.9 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[49],{705:function(e,t,n){"use strict";n.r(t);var c,i,a=n(0),o=n(2),s=n(6),r=n(1),l=n(3),d=n.n(l),u=n(21),h=n(900),b=n(632),p=n(627),m=n(34),f=n(221),g=n(7),j=n(926),O=Object(g.f)({filter_regex:{id:"home.column_settings.filter_regex",defaultMessage:"Filter out by regular expressions"},settings:{id:"home.settings",defaultMessage:"Column settings"}}),v=Object(g.g)(c=function(e){function t(){return e.apply(this,arguments)||this}return Object(s.a)(t,e),t.prototype.render=function(){var e=this.props,t=e.settings,n=e.onChange,c=e.intl;return Object(a.a)("div",{},void 0,Object(a.a)("span",{className:"column-settings__section"},void 0,Object(a.a)(g.b,{id:"home.column_settings.advanced",defaultMessage:"Advanced"})),Object(a.a)("div",{className:"column-settings__row"},void 0,Object(a.a)(j.a,{settings:t,settingPath:["regex","body"],onChange:n,label:c.formatMessage(O.filter_regex)})))},t}(d.a.PureComponent))||c,M=n(69),y=Object(u.connect)(function(e){return{settings:e.getIn(["settings","direct"])}},function(n){return{onChange:function(e,t){n(Object(M.c)(["direct"].concat(e),t))}}})(v),C=n(636);n.d(t,"default",function(){return w});var _=Object(g.f)({title:{id:"column.direct",defaultMessage:"Direct messages"}}),w=Object(u.connect)(function(e){return{hasUnread:0<e.getIn(["timelines","direct","unread"])}})(i=Object(g.g)(i=function(i){function e(){for(var c,e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c=i.call.apply(i,[this].concat(t))||this,Object(r.a)(Object(o.a)(c),"handlePin",function(){var e=c.props,t=e.columnId,n=e.dispatch;n(t?Object(f.h)(t):Object(f.e)("DIRECT",{}))}),Object(r.a)(Object(o.a)(c),"handleMove",function(e){var t=c.props,n=t.columnId;(0,t.dispatch)(Object(f.g)(n,e))}),Object(r.a)(Object(o.a)(c),"handleHeaderClick",function(){c.column.scrollTop()}),Object(r.a)(Object(o.a)(c),"setRef",function(e){c.column=e}),Object(r.a)(Object(o.a)(c),"handleLoadMore",function(e){c.props.dispatch(Object(m.r)({maxId:e}))}),c}Object(s.a)(e,i);var t=e.prototype;return t.componentDidMount=function(){var e=this.props.dispatch;e(Object(m.r)()),this.disconnect=e(Object(C.b)())},t.componentWillUnmount=function(){this.disconnect&&(this.disconnect(),this.disconnect=null)},t.render=function(){var e=this.props,t=e.intl,n=e.hasUnread,c=e.columnId,i=e.multiColumn,o=!!c;return d.a.createElement(b.a,{ref:this.setRef,label:t.formatMessage(_.title)},Object(a.a)(p.a,{icon:"envelope",active:n,title:t.formatMessage(_.title),onPin:this.handlePin,onMove:this.handleMove,onClick:this.handleHeaderClick,pinned:o,multiColumn:i},void 0,Object(a.a)(y,{})),Object(a.a)(h.a,{trackScroll:!o,scrollKey:"direct_timeline-"+c,timelineId:"direct",onLoadMore:this.handleLoadMore,emptyMessage:Object(a.a)(g.b,{id:"empty_column.direct",defaultMessage:"You don't have any direct messages yet. When you send or receive one, it will show up here."})}))},e}(d.a.PureComponent))||i)||i}}]);
//# sourceMappingURL=direct_timeline.js.map