Pleroma/priv/static/packs/about.js

2 lines
36 KiB
JavaScript
Raw Normal View History

webpackJsonp([28],{149:function(t,e,n){"use strict";n.d(e,"a",function(){return v});var o,r,i=n(2),a=n.n(i),s=n(1),c=n.n(s),l=n(3),u=n.n(l),d=n(4),h=n.n(d),f=n(0),p=n.n(f),m=n(6),v=(r=o=function(t){function e(){return c()(this,e),u()(this,t.apply(this,arguments))}return h()(e,t),e.prototype.render=function(){var t=this.props,e=t.disabled,n=t.visible;return a()("button",{className:"load-more",disabled:e||!n,style:{visibility:n?"visible":"hidden"},onClick:this.props.onClick},void 0,a()(m.b,{id:"status.load_more",defaultMessage:"Load more"}))},e}(p.a.PureComponent),o.defaultProps={visible:!0},r)},283:function(t,e,n){"use strict";function o(t){return function(e){e({type:i,account:t}),e(Object(r.d)("MUTE"))}}e.a=o;var r=(n(14),n(22),n(15),n(26)),i="MUTES_INIT_MODAL"},285:function(t,e,n){"use strict";function o(t,e){return function(n){n({type:i,account:t,status:e}),n(Object(r.d)("REPORT"))}}e.a=o;var r=(n(14),n(26)),i="REPORT_INIT"},286:function(t,e,n){"use strict";var o=n(2),r=n.n(o),i=n(0),a=(n.n(i),n(9)),s=n(152),c=n(67),l=n(18),u=n(68),d=n(22),h=n(92),f=n(283),p=n(285),m=n(26),v=n(6),g=n(12),y=(n(36),Object(v.f)({deleteConfirm:{id:"confirmations.delete.confirm",defaultMessage:"Delete"},deleteMessage:{id:"confirmations.delete.message",defaultMessage:"Are you sure you want to delete this status?"},blockConfirm:{id:"confirmations.block.confirm",defaultMessage:"Block"}})),b=function(){var t=Object(c.e)();return function(e,n){return{status:t(e,n.id)}}},O=function(t,e){var n=e.intl;return{onReply:function(e,n){t(Object(l.T)(e,n))},onModalReblog:function(e){t(Object(u.l)(e))},onReblog:function(e,n){e.get("reblogged")?t(Object(u.n)(e)):n.shiftKey||!g.b?this.onModalReblog(e):t(Object(m.d)("BOOST",{status:e,onReblog:this.onModalReblog}))},onFavourite:function(e){t(e.get("favourited")?Object(u.m)(e):Object(u.i)(e))},onDelete:function(e){t(g.e?Object(m.d)("CONFIRM",{message:n.formatMessage(y.deleteMessage),confirm:n.formatMessage(y.deleteConfirm),onConfirm:function(){return t(Object(h.f)(e.get("id")))}}):Object(h.f)(e.get("id")))},onDirect:function(e,n){t(Object(l.N)(e,n))},onMention:function(e,n){t(Object(l.R)(e,n))},onOpenMedia:function(e,n){t(Object(m.d)("MEDIA",{media:e,index:n}))},onOpenVideo:function(e,n){t(Object(m.d)("VIDEO",{media:e,time:n}))},onBlock:function(e){t(Object(m.d)("CONFIRM",{message:r()(v.b,{id:"confirmations.block.message",defaultMessage:"Are you sure you want to block {name}?",values:{name:r()("strong",{},void 0,"@",e.get("acct"))}}),confirm:n.formatMessage(y.blockConfirm),onConfirm:function(){return t(Object(d.q)(e.get("id")))}}))},onReport:function(e){t(Object(p.a)(e.get("account"),e))},onMute:function(e){t(Object(f.a)(e))},onMuteConversation:function(e){t(e.get("muted")?Object(h.k)(e.get("id")):Object(h.i)(e.get("id")))},onToggleHidden:function(e){t(e.get("hidden")?Object(h.j)(e.get("id")):Object(h.h)(e.get("id")))}}};e.a=Object(v.g)(Object(a.connect)(b,O)(s.a))},288:function(t,e,n){"use strict";n.d(e,"a",function(){return w});var o,r,i=n(2),a=n.n(i),s=n(1),c=n.n(s),l=n(3),u=n.n(l),d=n(4),h=n.n(d),f=n(94),p=n.n(f),m=n(0),v=n.n(m),g=n(151),y=n(5),b=n.n(y),O=n(289),M=n(149),j=n(294),_=n(8),k=(n.n(_),n(10)),C=n.n(k),I=n(153),w=(r=o=function(t){function e(){var n,o,r;c()(this,e);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=u()(this,t.call.apply(t,[this].concat(a))),o.state={lastMouseMove:null},o.intersectionObserverWrapper=new j.a,o.handleScroll=p()(function(){if(o.node){var t=o.node,e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight,i=n-e-r;o._oldScrollPosition=n-e,400>i&&o.props.onLoadMore&&!o.props.isLoading&&o.props.onLoadMore(),e<100&&o.props.onScrollToTop?o.props.onScrollToTop():o.props.onScroll&&o.props.onScroll()}},150,{trailing:!0}),o.handleMouseMove=p()(function(){o._lastMouseMove=new Date},300),o.handleMouseLeave=function(){o._lastMouseMove=null},o.onFullScreenChange=function(){o.setState({fullscreen:Object(I.d)()})},o.setRef=function(t){o.node=t},o.handleLoadMore=function(t){t.preventDefault(),o.props.onLoadMore()},r=n,u()(o,r)}return h()(e,t),e.prototype.componentDidM
//# sourceMappingURL=about.js.map