pleroma/priv/static/packs/about-d6275c885cd0e28a1186.js

2 lines
34 KiB
JavaScript
Raw Normal View History

2017-11-12 08:23:05 -05:00
webpackJsonp([29],{158:function(t,e,n){"use strict";var o=n(42),r=n.n(o),i=n(9),a=n(269),s=n(16),c=n(8),l=(n.n(c),n(96)),u=(n.n(l),n(18)),d=function(){return Object(l.createSelector)([function(t,e){var n=e.type;return t.getIn(["settings",n],Object(c.Map)())},function(t,e){var n=e.type;return t.getIn(["timelines",n,"items"],Object(c.List)())},function(t){return t.get("statuses")}],function(t,e,n){var o=t.getIn(["regex","body"],"").trim(),r=null;try{r=o&&new RegExp(o,"i")}catch(t){}return e.filter(function(e){var o=n.get(e),i=!0;if(!1===t.getIn(["shows","reblog"])&&(i=i&&null===o.get("reblog")),!1===t.getIn(["shows","reply"])&&(i=i&&(null===o.get("in_reply_to_id")||o.get("in_reply_to_account_id")===u.e)),i&&r&&o.get("account")!==u.e){var a=o.get("reblog")?n.getIn([o.get("reblog"),"search_index"]):o.get("search_index");i=!r.test(a)}return i})})},f=function(){var t=d();return function(e,n){var o=n.timelineId;return{statusIds:t(e,{type:o}),isLoading:e.getIn(["timelines",o,"isLoading"],!0),hasMore:!!e.getIn(["timelines",o,"next"])}}},h=function(t,e){var n=e.timelineId,o=e.loadMore;return{onScrollToBottom:r()(function(){t(Object(s.B)(n,!1)),o()},300,{leading:!0}),onScrollToTop:r()(function(){t(Object(s.B)(n,!0))},100),onScroll:r()(function(){t(Object(s.B)(n,!1))},100)}};e.a=Object(i.connect)(f,h)(a.a)},260: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(6),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.visible;return a()("button",{className:"load-more",disabled:!t,style:{visibility:t?"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)},261: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(153),c=n(69),l=n(15),u=n(43),d=n(22),f=n(57),h=n(151),p=n(31),m=n(6),v=n(18),g=Object(m.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"},muteConfirm:{id:"confirmations.mute.confirm",defaultMessage:"Mute"}}),y=function(){var t=Object(c.e)();return function(e,n){return{status:t(e,n.id)}}},b=function(t,e){var n=e.intl;return{onReply:function(e,n){t(Object(l.O)(e,n))},onModalReblog:function(e){t(Object(u.q)(e))},onReblog:function(e,n){e.get("reblogged")?t(Object(u.t)(e)):n.shiftKey||!v.b?this.onModalReblog(e):t(Object(p.d)("BOOST",{status:e,onReblog:this.onModalReblog}))},onFavourite:function(e){t(e.get("favourited")?Object(u.r)(e):Object(u.m)(e))},onPin:function(e){t(e.get("pinned")?Object(u.s)(e):Object(u.p)(e))},onEmbed:function(e){t(Object(p.d)("EMBED",{url:e.get("url")}))},onDelete:function(e){t(v.d?Object(p.d)("CONFIRM",{message:n.formatMessage(g.deleteMessage),confirm:n.formatMessage(g.deleteConfirm),onConfirm:function(){return t(Object(f.e)(e.get("id")))}}):Object(f.e)(e.get("id")))},onMention:function(e,n){t(Object(l.M)(e,n))},onOpenMedia:function(e,n){t(Object(p.d)("MEDIA",{media:e,index:n}))},onOpenVideo:function(e,n){t(Object(p.d)("VIDEO",{media:e,time:n}))},onBlock:function(e){t(Object(p.d)("CONFIRM",{message:r()(m.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(g.blockConfirm),onConfirm:function(){return t(Object(d.r)(e.get("id")))}}))},onReport:function(e){t(Object(h.i)(e.get("account"),e))},onMute:function(e){t(Object(p.d)("CONFIRM",{message:r()(m.b,{id:"confirmations.mute.message",defaultMessage:"Are you sure you want to mute {name}?",values:{name:r()("strong",{},void 0,"@",e.get("acct"))}}),confirm:n.formatMessage(g.muteConfirm),onConfirm:function(){return t(Object(d.B)(e.get("id")))}}))},onMuteConversation:function(e){t(e.get("muted")?Object(f.h)(e.get(
//# sourceMappingURL=about-d6275c885cd0e28a1186.js.map