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

2 lines
12 KiB
JavaScript
Raw Normal View History

2020-01-22 10:00:23 -05:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[55],{740:function(e,t,n){"use strict";n.r(t);var a,o,s,i,c=n(0),r=n(2),d=n(7),l=n(1),u=n(3),p=n.n(u),b=n(12),h=n(973),v=n(667),f=n(664),m=n(33),j=n(110),O=n(243),g=n(6),M=n(1014),y=Object(g.f)({filter_regex:{id:"home.column_settings.filter_regex",defaultMessage:"Filter out by regular expressions"},settings:{id:"home.settings",defaultMessage:"Column settings"}}),_=Object(g.g)(a=function(e){function t(){return e.apply(this,arguments)||this}return Object(d.a)(t,e),t.prototype.render=function(){var e=this.props,t=e.settings,n=e.onChange,a=e.intl;return Object(c.a)("div",{},void 0,Object(c.a)("span",{className:"column-settings__section"},void 0,Object(c.a)(g.b,{id:"home.column_settings.advanced",defaultMessage:"Advanced"})),Object(c.a)("div",{className:"column-settings__row"},void 0,Object(c.a)(M.a,{settings:t,settingPath:["regex","body"],onChange:n,label:a.formatMessage(y.filter_regex)})))},t}(p.a.PureComponent))||a,C=n(71),k=Object(b.connect)(function(e){return{settings:e.getIn(["settings","direct"])}},function(e){return{onChange:function(t,n){e(Object(C.c)(["direct"].concat(t),n))}}})(_),w=n(671),I=n(22),x=n(31),R=n(63),S=n.n(R),L=n(5),T=n.n(L),D=n(18),N=n.n(D),U=n(19),H=n(13),E=n(150),A=n(256),q=n(673),K=n(681),P=n(218),W=n(40),z=n(97),V=n(287),B=Object(g.f)({more:{id:"status.more",defaultMessage:"More"},open:{id:"conversation.open",defaultMessage:"View conversation"},reply:{id:"status.reply",defaultMessage:"Reply"},markAsRead:{id:"conversation.mark_as_read",defaultMessage:"Mark as read"},delete:{id:"conversation.delete",defaultMessage:"Delete conversation"},muteConversation:{id:"status.mute_conversation",defaultMessage:"Mute conversation"},unmuteConversation:{id:"status.unmute_conversation",defaultMessage:"Unmute conversation"}}),F=Object(g.g)((i=s=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(l.a)(Object(r.a)(t),"state",{isExpanded:void 0}),Object(l.a)(Object(r.a)(t),"parseClick",function(e,n){var a=t.context.router,o=t.props,s=o.lastStatus,i=o.unread,c=o.markRead;if(a&&0===e.button&&!(e.ctrlKey||e.altKey||e.metaKey)){void 0===n&&(i&&c(),n="/statuses/"+s.get("id"));var r=Object(H.default)({},a.history.location.state);r.mastodonBackSteps=(r.mastodonBackSteps||0)+1,a.history.push(n,r),e.preventDefault()}}),Object(l.a)(Object(r.a)(t),"handleClick",function(){if(t.context.router){var e=t.props,n=e.lastStatus,a=e.unread,o=e.markRead;a&&o(),t.context.router.history.push("/statuses/"+n.get("id"))}}),Object(l.a)(Object(r.a)(t),"handleMarkAsRead",function(){t.props.markRead()}),Object(l.a)(Object(r.a)(t),"handleReply",function(){t.props.reply(t.props.lastStatus,t.context.router.history)}),Object(l.a)(Object(r.a)(t),"handleDelete",function(){t.props.delete()}),Object(l.a)(Object(r.a)(t),"handleHotkeyMoveUp",function(){t.props.onMoveUp(t.props.conversationId)}),Object(l.a)(Object(r.a)(t),"handleHotkeyMoveDown",function(){t.props.onMoveDown(t.props.conversationId)}),Object(l.a)(Object(r.a)(t),"handleConversationMute",function(){t.props.onMute(t.props.lastStatus)}),Object(l.a)(Object(r.a)(t),"handleShowMore",function(){t.props.lastStatus.get("spoiler_text")&&t.setExpansion(!t.state.isExpanded)}),Object(l.a)(Object(r.a)(t),"setExpansion",function(e){t.setState({isExpanded:e})}),t}return Object(d.a)(t,e),t.prototype.render=function(){var e=this.props,t=e.accounts,n=e.lastStatus,a=e.unread,o=e.intl,s=this.state.isExpanded;if(null===n)return null;var i=[{text:o.formatMessage(B.open),action:this.handleClick},null];i.push({text:o.formatMessage(n.get("muted")?B.unmuteConversation:B.muteConversation),action:this.handleConversationMute}),a&&(i.push({text:o.formatMessage(B.markAsRead),action:this.handleMarkAsRead}),i.push(null)),i.push({text:o.formatMessage(B.delete),action:this.handleDelete});var r=t.map(function(e){return Object(c.a)(P.a,{to:"/accounts/"+e.get("id"),href:e.get("url"),title:e.get("acct")},e.get("id"),Object(c.a)("bdi",{},void 0,Object(c.a)("strong",{className:"displ
2018-09-16 17:17:34 -04:00
//# sourceMappingURL=direct_timeline.js.map