Pleroma/priv/static/packs/about.js

2 lines
37 KiB
JavaScript
Raw Normal View History

2018-06-02 16:11:38 +02:00
webpackJsonp([37],{284: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),f=n.n(d),h=n(0),p=n.n(h),m=n(7),v=(r=o=function(t){function e(){return c()(this,e),u()(this,t.apply(this,arguments))}return f()(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)},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(156),c=n(68),l=n(17),u=n(69),d=n(22),f=n(91),h=n(89),p=n(155),m=n(26),v=n(7),g=n(13),y=n(33),b=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"}}),O=function(){var t=Object(c.e)();return function(e,n){return{status:t(e,n.id)}}},j=function(t,e){var n=e.intl;return{onReply:function(e,n){t(Object(l.T)(e,n))},onModalReblog:function(e){t(Object(u.o)(e))},onReblog:function(e,n){e.get("reblogged")?t(Object(u.r)(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.p)(e):Object(u.k)(e))},onPin:function(e){t(e.get("pinned")?Object(u.q)(e):Object(u.n)(e))},onEmbed:function(e){t(Object(m.d)("EMBED",{url:e.get("url"),onError:function(e){return t(Object(y.e)(e))}}))},onDelete:function(e){t(g.e?Object(m.d)("CONFIRM",{message:n.formatMessage(b.deleteMessage),confirm:n.formatMessage(b.deleteConfirm),onConfirm:function(){return t(Object(f.f)(e.get("id")))}}):Object(f.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(b.blockConfirm),onConfirm:function(){return t(Object(d.q)(e.get("id")))}}))},onReport:function(e){t(Object(p.k)(e.get("account"),e))},onMute:function(e){t(Object(h.g)(e))},onMuteConversation:function(e){t(e.get("muted")?Object(f.k)(e.get("id")):Object(f.i)(e.get("id")))},onToggleHidden:function(e){t(e.get("hidden")?Object(f.j)(e.get("id")):Object(f.h)(e.get("id")))}}};e.a=Object(v.g)(Object(a.connect)(O,j)(s.a))},287: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),f=n.n(d),h=n(93),p=n.n(h),m=n(0),v=n.n(m),g=n(154),y=n(5),b=n.n(y),O=n(288),j=n(284),M=n(293),_=n(8),C=(n.n(_),n(10)),k=n.n(C),I=n(157),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={fullscreen:null},o.intersectionObserverWrapper=new M.a,o.handleScroll=p()(function(){if(o.node){var t=o.node,e=t.scrollTop;400>t.scrollHeight-e-t.clientHeight&&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.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 f()(e,t),e.prototype.componentDidMount=function(){this.attachScrollListener(),this.attachIntersectionObserver(),Object(I.a)(this.onFullScreenChange),this.handleScroll()},e.prototype.getSnapshotBeforeUpdate=function(t){return v.a.Children.count(t.children)>0&&v.a.Children.count(t.children)<v.a.Children.count(this.props.children)&&this.getFirstChildKey(t)
//# sourceMappingURL=about.js.map