webpackJsonp([8],{260:function(e,t,n){"use strict";n.d(t,"a",function(){return v});var o,i,s=n(2),a=n.n(s),r=n(1),c=n.n(r),l=n(3),u=n.n(l),d=n(4),f=n.n(d),h=n(0),p=n.n(h),g=n(6),v=(i=o=function(e){function t(){return c()(this,t),u()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.render=function(){var e=this.props.visible;return a()("button",{className:"load-more",disabled:!e,style:{visibility:e?"visible":"hidden"},onClick:this.props.onClick},void 0,a()(g.b,{id:"status.load_more",defaultMessage:"Load more"}))},t}(p.a.PureComponent),o.defaultProps={visible:!0},i)},261:function(e,t,n){"use strict";var o=n(2),i=n.n(o),s=n(0),a=(n.n(s),n(9)),r=n(153),c=n(69),l=n(15),u=n(43),d=n(22),f=n(57),h=n(151),p=n(31),g=n(6),v=n(18),m=Object(g.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"}}),b=function(){var e=Object(c.e)();return function(t,n){return{status:e(t,n.id)}}},y=function(e,t){var n=t.intl;return{onReply:function(t,n){e(Object(l.O)(t,n))},onModalReblog:function(t){e(Object(u.q)(t))},onReblog:function(t,n){t.get("reblogged")?e(Object(u.t)(t)):n.shiftKey||!v.b?this.onModalReblog(t):e(Object(p.d)("BOOST",{status:t,onReblog:this.onModalReblog}))},onFavourite:function(t){e(t.get("favourited")?Object(u.r)(t):Object(u.m)(t))},onPin:function(t){e(t.get("pinned")?Object(u.s)(t):Object(u.p)(t))},onEmbed:function(t){e(Object(p.d)("EMBED",{url:t.get("url")}))},onDelete:function(t){e(v.d?Object(p.d)("CONFIRM",{message:n.formatMessage(m.deleteMessage),confirm:n.formatMessage(m.deleteConfirm),onConfirm:function(){return e(Object(f.e)(t.get("id")))}}):Object(f.e)(t.get("id")))},onMention:function(t,n){e(Object(l.M)(t,n))},onOpenMedia:function(t,n){e(Object(p.d)("MEDIA",{media:t,index:n}))},onOpenVideo:function(t,n){e(Object(p.d)("VIDEO",{media:t,time:n}))},onBlock:function(t){e(Object(p.d)("CONFIRM",{message:i()(g.b,{id:"confirmations.block.message",defaultMessage:"Are you sure you want to block {name}?",values:{name:i()("strong",{},void 0,"@",t.get("acct"))}}),confirm:n.formatMessage(m.blockConfirm),onConfirm:function(){return e(Object(d.r)(t.get("id")))}}))},onReport:function(t){e(Object(h.i)(t.get("account"),t))},onMute:function(t){e(Object(p.d)("CONFIRM",{message:i()(g.b,{id:"confirmations.mute.message",defaultMessage:"Are you sure you want to mute {name}?",values:{name:i()("strong",{},void 0,"@",t.get("acct"))}}),confirm:n.formatMessage(m.muteConfirm),onConfirm:function(){return e(Object(d.B)(t.get("id")))}}))},onMuteConversation:function(t){e(t.get("muted")?Object(f.h)(t.get("id")):Object(f.g)(t.get("id")))}}};t.a=Object(g.g)(Object(a.connect)(b,y)(r.a))},262:function(e,t,n){"use strict";n.d(t,"a",function(){return S});var o,i,s=n(2),a=n.n(s),r=n(1),c=n.n(r),l=n(3),u=n.n(l),d=n(4),f=n.n(d),h=n(94),p=n.n(h),g=n(0),v=n.n(g),m=n(152),b=n(5),y=n.n(b),M=n(263),C=n(260),k=n(268),O=n(8),_=(n.n(O),n(10)),w=n.n(_),j=n(154),S=(i=o=function(e){function t(){var n,o,i;c()(this,t);for(var s=arguments.length,a=Array(s),r=0;rs&&o.props.onScrollToBottom&&!o.props.isLoading?o.props.onScrollToBottom():t<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(j.d)()})},o.setRef=function(e){o.node=e},o.handleLoadMore=function(e){e.preventDefault(),o.props.onScrollToBottom()},i=n,u()(o,i)}return f()(t,e),t.prototype.componentDidMount=function(){this.attachScrollListener(),this.attachIntersectionObserver(),Object(j.a)(this.onFullScreenChange),this.handleScroll()},t.prototype.componentDidUpdate=function(e){if(v.a.Children.count(e.children)>0&&v.a.Children.count(e.children)0){var t=this.node.scrollHeight-this._oldScrollPosition;this.node.scrollTop!==t&&(this.node.scrollTop=t)}else this._oldScrollPosition=this.node.scrollHeight-this.node.scrollTop},t.prototype.componentWillUnmount=function(){this.detachScrollListener(),this.detachIntersectionObserver(),Object(j.b)(this.onFullScreenChange)},t.prototype.attachIntersectionObserver=function(){this.intersectionObserverWrapper.connect({root:this.node,rootMargin:"300% 0px"})},t.prototype.detachIntersectionObserver=function(){this.intersectionObserverWrapper.disconnect()},t.prototype.attachScrollListener=function(){this.node.addEventListener("scroll",this.handleScroll)},t.prototype.detachScrollListener=function(){this.node.removeEventListener("scroll",this.handleScroll)},t.prototype.getFirstChildKey=function(e){var t=e.children,n=t;return t instanceof O.List?n=t.get(0):Array.isArray(t)&&(n=t[0]),n&&n.key},t.prototype._recentlyMoved=function(){return null!==this._lastMouseMove&&new Date-this._lastMouseMove<600},t.prototype.render=function(){var e=this,t=this.props,n=t.children,o=t.scrollKey,i=t.trackScroll,s=t.shouldUpdateScroll,r=t.isLoading,c=t.hasMore,l=t.prepend,u=t.emptyMessage,d=this.state.fullscreen,f=v.a.Children.count(n),h=c&&f>0?a()(C.a,{visible:!r,onClick:this.handleLoadMore}):null,p=null;return p=r||f>0||!u?v.a.createElement("div",{className:w()("scrollable",{fullscreen:d}),ref:this.setRef,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave},a()("div",{role:"feed",className:"item-list"},void 0,l,v.a.Children.map(this.props.children,function(t,n){return a()(M.a,{id:t.key,index:n,listLength:f,intersectionObserverWrapper:e.intersectionObserverWrapper,saveHeightKey:i?e.context.router.route.location.key+":"+o:null},t.key,t)}),h)):v.a.createElement("div",{className:"empty-column-indicator",ref:this.setRef},u),i?a()(m.a,{scrollKey:o,shouldUpdateScroll:s},void 0,p):p},t}(g.PureComponent),o.contextTypes={router:y.a.object},o.defaultProps={trackScroll:!0},i)},263:function(e,t,n){"use strict";var o=n(9),i=n(264),s=n(95),a=function(e,t){return{cachedHeight:e.getIn(["height_cache",t.saveHeightKey,t.id])}},r=function(e){return{onHeightChange:function(t,n,o){e(Object(s.d)(t,n,o))}}};t.a=Object(o.connect)(a,r)(i.a)},264:function(e,t,n){"use strict";n.d(t,"a",function(){return v});var o=n(1),i=n.n(o),s=n(3),a=n.n(s),r=n(4),c=n.n(r),l=n(0),u=n.n(l),d=n(265),f=n(267),h=n(8),p=(n.n(h),["id","index","listLength"]),g=["id","index","listLength","cachedHeight"],v=function(e){function t(){var n,o,s;i()(this,t);for(var r=arguments.length,c=Array(r),l=0;l0;)r.shift()();r.length?requestIdleCallback(o):c=!1}function i(e){r.push(e),c||(c=!0,requestIdleCallback(o))}var s=n(266),a=n.n(s),r=new a.a,c=!1;t.a=i},266:function(e,t,n){"use strict";function o(){this.length=0}o.prototype.push=function(e){var t={item:e};this.last?this.last=this.last.next=t:this.last=this.first=t,this.length++},o.prototype.shift=function(){var e=this.first;if(e)return this.first=e.next,--this.length||(this.last=void 0),e.item},o.prototype.slice=function(e,t){e=void 0===e?0:e,t=void 0===t?1/0:t;for(var n=[],o=0,i=this.first;i&&!(--t<0);i=i.next)++o>e&&n.push(i.item);return n},e.exports=o},267:function(e,t,n){"use strict";function o(e){if("boolean"!=typeof i){var t=e.target.getBoundingClientRect(),n=e.boundingClientRect;i=t.height!==n.height||t.top!==n.top||t.width!==n.width||t.bottom!==n.bottom||t.left!==n.left||t.right!==n.right}return i?e.target.getBoundingClientRect():e.boundingClientRect}var i=void 0;t.a=o},268:function(e,t,n){"use strict";var o=n(1),i=n.n(o),s=function(){function e(){i()(this,e),this.callbacks={},this.observerBacklog=[],this.observer=null}return e.prototype.connect=function(e){var t=this,n=function(e){e.forEach(function(e){var n=e.target.getAttribute("data-id");t.callbacks[n]&&t.callbacks[n](e)})};this.observer=new IntersectionObserver(n,e),this.observerBacklog.forEach(function(e){var n=e[0],o=e[1],i=e[2];t.observe(n,o,i)}),this.observerBacklog=null},e.prototype.observe=function(e,t,n){this.observer?(this.callbacks[e]=n,this.observer.observe(t)):this.observerBacklog.push([e,t,n])},e.prototype.unobserve=function(e,t){this.observer&&(delete this.callbacks[e],this.observer.unobserve(t))},e.prototype.disconnect=function(){this.observer&&(this.callbacks={},this.observer.disconnect(),this.observer=null)},e}();t.a=s},753:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"default",function(){return E});var o,i,s,a,r=n(2),c=n.n(r),l=n(1),u=n.n(l),d=n(3),f=n.n(d),h=n(4),p=n.n(h),g=n(42),v=n.n(g),m=n(0),b=n.n(m),y=n(9),M=n(99),C=n(98),k=n(45),O=n(273),_=n(883),w=n(6),j=n(885),S=n(96),I=(n.n(S),n(8)),N=(n.n(I),n(262)),x=Object(w.f)({title:{id:"column.notifications",defaultMessage:"Notifications"}}),T=Object(S.createSelector)([function(e){return Object(I.List)(e.getIn(["settings","notifications","shows"]).filter(function(e){return!e}).keys())},function(e){return e.getIn(["notifications","items"])}],function(e,t){return t.filterNot(function(t){return e.includes(t.get("type"))})}),P=function(e){return{notifications:T(e),isLoading:e.getIn(["notifications","isLoading"],!0),isUnread:e.getIn(["notifications","unread"])>0,hasMore:!!e.getIn(["notifications","next"])}},E=(o=Object(y.connect)(P))(i=Object(w.g)((a=s=function(e){function t(){var n,o,i;u()(this,t);for(var s=arguments.length,a=Array(s),r=0;r0||u?o.map(function(t){return c()(_.a,{notification:t,accountId:t.get("account"),onMoveUp:e.handleMoveUp,onMoveDown:e.handleMoveDown},t.get("id"))}):null,this.scrollableContent=h;var p=c()(N.a,{scrollKey:"notifications-"+r,trackScroll:!d,isLoading:s,hasMore:u,emptyMessage:f,onScrollToBottom:this.handleScrollToBottom,onScrollToTop:this.handleScrollToTop,onScroll:this.handleScroll,shouldUpdateScroll:i},void 0,h);return b.a.createElement(M.a,{ref:this.setColumnRef},c()(C.a,{icon:"bell",active:a,title:n.formatMessage(x.title),onPin:this.handlePin,onMove:this.handleMove,onClick:this.handleHeaderClick,pinned:d,multiColumn:l},void 0,c()(j.a,{})),p)},t}(b.a.PureComponent),s.defaultProps={trackScroll:!0},i=a))||i)||i},777:function(e,t,n){"use strict";var o=n(2),i=n.n(o),s=n(0),a=(n.n(s),n(9)),r=n(6),c=n(69),l=n(778),u=n(22),d=n(31),f=n(18),h=Object(r.f)({unfollowConfirm:{id:"confirmations.unfollow.confirm",defaultMessage:"Unfollow"}}),p=function(){var e=Object(c.c)();return function(t,n){return{account:e(t,n.id)}}},g=function(e,t){var n=t.intl;return{onFollow:function(t){e(t.getIn(["relationship","following"])||t.getIn(["relationship","requested"])?f.g?Object(d.d)("CONFIRM",{message:i()(r.b,{id:"confirmations.unfollow.message",defaultMessage:"Are you sure you want to unfollow {name}?",values:{name:i()("strong",{},void 0,"@",t.get("acct"))}}),confirm:n.formatMessage(h.unfollowConfirm),onConfirm:function(){return e(Object(u.E)(t.get("id")))}}):Object(u.E)(t.get("id")):Object(u.A)(t.get("id")))},onBlock:function(t){e(t.getIn(["relationship","blocking"])?Object(u.D)(t.get("id")):Object(u.r)(t.get("id")))},onMute:function(t){e(t.getIn(["relationship","muting"])?Object(u.F)(t.get("id")):Object(u.B)(t.get("id")))}}};t.a=Object(r.g)(Object(a.connect)(p,g)(l.a))},778:function(e,t,n){"use strict";n.d(t,"a",function(){return I});var o,i,s,a=n(2),r=n.n(a),c=n(1),l=n.n(c),u=n(3),d=n.n(u),f=n(4),h=n.n(f),p=n(0),g=(n.n(p),n(12)),v=n.n(g),m=n(5),b=n.n(m),y=n(55),M=n(56),C=n(270),k=n(19),O=n(6),_=n(11),w=n.n(_),j=n(18),S=Object(O.f)({follow:{id:"account.follow",defaultMessage:"Follow"},unfollow:{id:"account.unfollow",defaultMessage:"Unfollow"},requested:{id:"account.requested",defaultMessage:"Awaiting approval"},unblock:{id:"account.unblock",defaultMessage:"Unblock @{name}"},unmute:{id:"account.unmute",defaultMessage:"Unmute @{name}"}}),I=Object(O.g)((s=i=function(e){function t(){var n,o,i;l()(this,t);for(var s=arguments.length,a=Array(s),r=0;r=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;tthis.startX&&(this.setState({checked:!0}),this.startX=t,this.activated=tn?this.previouslyChecked!==this.state.checked&&(this.setState({checked:!1}),this.previouslyChecked=this.state.checked,t.click()):this.startX-40){var n=t[0];return{x:n.clientX,y:n.clientY}}var o=e.pageX;if(void 0!==o)return{x:o,y:e.pageY}}return{x:0,y:0}}Object.defineProperty(t,"__esModule",{value:!0}),t.pointerCoord=o},804:function(e,t,n){"use strict";n.d(t,"a",function(){return g});var o=n(2),i=n.n(o),s=n(1),a=n.n(s),r=n(3),c=n.n(r),l=n(4),u=n.n(l),d=n(0),f=n.n(d),h=n(790),p=n.n(h),g=function(e){function t(){var n,o,i;a()(this,t);for(var s=arguments.length,r=Array(s),l=0;l