2 lines
34 KiB
JavaScript
2 lines
34 KiB
JavaScript
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("id")):Object(f.g)(e.get("id")))}}};e.a=Object(m.g)(Object(a.connect)(y,b)(s.a))},262:function(t,e,n){"use strict";n.d(e,"a",function(){return I});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(94),p=n.n(h),m=n(0),v=n.n(m),g=n(152),y=n(5),b=n.n(y),O=n(263),M=n(260),j=n(268),_=n(8),C=(n.n(_),n(10)),k=n.n(C),w=n(154),I=(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.onScrollToBottom&&!o.props.isLoading?o.props.onScrollToBottom():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(w.d)()})},o.setRef=function(t){o.node=t},o.handleLoadMore=function(t){t.preventDefault(),o.props.onScrollToBottom()},r=n,u()(o,r)}return f()(e,t),e.prototype.componentDidMount=function(){this.attachScrollListener(),this.attachIntersectionObserver(),Object(w.a)(this.onFullScreenChange),this.handleScroll()},e.prototype.componentDidUpdate=function(t){if(v.a.Children.count(t.children)>0&&v.a.Children.count(t.children)<v.a.Children.count(this.props.children)&&this.getFirstChildKey(t)!==this.getFirstChildKey(this.props)&&this._oldScrollPosition&&this.node.scrollTop>0){var e=this.node.scrollHeight-this._oldScrollPosition;this.node.scrollTop!==e&&(this.node.scrollTop=e)}else this._oldScrollPosition=this.node.scrollHeight-this.node.scrollTop},e.prototype.componentWillUnmount=function(){this.detachScrollListener(),this.detachIntersectionObserver(),Object(w.b)(this.onFullScreenChange)},e.prototype.attachIntersectionObserver=function(){this.intersectionObserverWrapper.connect({root:this.node,rootMargin:"300% 0px"})},e.prototype.detachIntersectionObserver=function(){this.intersectionObserverWrapper.disconnect()},e.prototype.attachScrollListener=function(){this.node.addEventListener("scroll",this.handleScroll)},e.prototype.detachScrollListener=function(){this.node.removeEventListener("scroll",this.handleScroll)},e.prototype.getFirstChildKey=function(t){var e=t.children,n=e;return e instanceof _.List?n=e.get(0):Array.isArray(e)&&(n=e[0]),n&&n.key},e.prototype._recentlyMoved=function(){return null!==this._lastMouseMove&&new Date-this._lastMouseMove<600},e.prototype.render=function(){var t=this,e=this.props,n=e.children,o=e.scrollKey,r=e.trackScroll,i=e.shouldUpdateScroll,s=e.isLoading,c=e.hasMore,l=e.prepend,u=e.emptyMessage,d=this.state.fullscreen,f=v.a.Children.count(n),h=c&&f>0?a()(M.a,{visible:!s,onClick:this.handleLoadMore}):null,p=null;return p=s||f>0||!u?v.a.createElement("div",{className:k()("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(e,n){return a()(O.a,{id:e.key,index:n,listLength:f,intersectionObserverWrapper:t.intersectionObserverWrapper,saveHeightKey:r?t.context.router.route.location.key+":"+o:null},e.key,e)}),h)):v.a.createElement("div",{className:"empty-column-indicator",ref:this.setRef},u),r?a()(g.a,{scrollKey:o,shouldUpdateScroll:i},void 0,p):p},e}(m.PureComponent),o.contextTypes={router:b.a.object},o.defaultProps={trackScroll:!0},r)},263:function(t,e,n){"use strict";var o=n(9),r=n(264),i=n(95),a=function(t,e){return{cachedHeight:t.getIn(["height_cache",e.saveHeightKey,e.id])}},s=function(t){return{onHeightChange:function(e,n,o){t(Object(i.d)(e,n,o))}}};e.a=Object(o.connect)(a,s)(r.a)},264:function(t,e,n){"use strict";n.d(e,"a",function(){return v});var o=n(1),r=n.n(o),i=n(3),a=n.n(i),s=n(4),c=n.n(s),l=n(0),u=n.n(l),d=n(265),f=n(267),h=n(8),p=(n.n(h),["id","index","listLength"]),m=["id","index","listLength","cachedHeight"],v=function(t){function e(){var n,o,i;r()(this,e);for(var s=arguments.length,c=Array(s),l=0;l<s;l++)c[l]=arguments[l];return n=o=a()(this,t.call.apply(t,[this].concat(c))),o.state={isHidden:!1},o.handleIntersection=function(t){o.entry=t,Object(d.a)(o.calculateHeight),o.setState(o.updateStateAfterIntersection)},o.updateStateAfterIntersection=function(t){return t.isIntersecting&&!o.entry.isIntersecting&&Object(d.a)(o.hideIfNotIntersecting),{isIntersecting:o.entry.isIntersecting,isHidden:!1}},o.calculateHeight=function(){var t=o.props,e=t.onHeightChange,n=t.saveHeightKey,r=t.id;o.height=Object(f.a)(o.entry).height,e&&n&&e(n,r,o.height)},o.hideIfNotIntersecting=function(){o.componentMounted&&o.setState(function(t){return{isHidden:!t.isIntersecting}})},o.handleRef=function(t){o.node=t},i=n,a()(o,i)}return c()(e,t),e.prototype.shouldComponentUpdate=function(t,e){var n=this,o=!this.state.isIntersecting&&(this.state.isHidden||this.props.cachedHeight);return!!o!=!(e.isIntersecting||!e.isHidden&&!t.cachedHeight)||!(o?m:p).every(function(e){return Object(h.is)(t[e],n.props[e])})},e.prototype.componentDidMount=function(){var t=this.props,e=t.intersectionObserverWrapper,n=t.id;e.observe(n,this.node,this.handleIntersection),this.componentMounted=!0},e.prototype.componentWillUnmount=function(){var t=this.props,e=t.intersectionObserverWrapper,n=t.id;e.unobserve(n,this.node),this.componentMounted=!1},e.prototype.render=function(){var t=this.props,e=t.children,n=t.id,o=t.index,r=t.listLength,i=t.cachedHeight,a=this.state,s=a.isIntersecting,c=a.isHidden;return s||!c&&!i?u.a.createElement("article",{ref:this.handleRef,"aria-posinset":o,"aria-setsize":r,"data-id":n,tabIndex:"0"},e&&u.a.cloneElement(e,{hidden:!1})):u.a.createElement("article",{ref:this.handleRef,"aria-posinset":o,"aria-setsize":r,style:{height:(this.height||i)+"px",opacity:0,overflow:"hidden"},"data-id":n,tabIndex:"0"},e&&u.a.cloneElement(e,{hidden:!0}))},e}(u.a.Component)},265:function(t,e,n){"use strict";function o(t){for(;s.length&&t.timeRemaining()>0;)s.shift()();s.length?requestIdleCallback(o):c=!1}function r(t){s.push(t),c||(c=!0,requestIdleCallback(o))}var i=n(266),a=n.n(i),s=new a.a,c=!1;e.a=r},266:function(t,e,n){"use strict";function o(){this.length=0}o.prototype.push=function(t){var e={item:t};this.last?this.last=this.last.next=e:this.last=this.first=e,this.length++},o.prototype.shift=function(){var t=this.first;if(t)return this.first=t.next,--this.length||(this.last=void 0),t.item},o.prototype.slice=function(t,e){t=void 0===t?0:t,e=void 0===e?1/0:e;for(var n=[],o=0,r=this.first;r&&!(--e<0);r=r.next)++o>t&&n.push(r.item);return n},t.exports=o},267:function(t,e,n){"use strict";function o(t){if("boolean"!=typeof r){var e=t.target.getBoundingClientRect(),n=t.boundingClientRect;r=e.height!==n.height||e.top!==n.top||e.width!==n.width||e.bottom!==n.bottom||e.left!==n.left||e.right!==n.right}return r?t.target.getBoundingClientRect():t.boundingClientRect}var r=void 0;e.a=o},268:function(t,e,n){"use strict";var o=n(1),r=n.n(o),i=function(){function t(){r()(this,t),this.callbacks={},this.observerBacklog=[],this.observer=null}return t.prototype.connect=function(t){var e=this,n=function(t){t.forEach(function(t){var n=t.target.getAttribute("data-id");e.callbacks[n]&&e.callbacks[n](t)})};this.observer=new IntersectionObserver(n,t),this.observerBacklog.forEach(function(t){var n=t[0],o=t[1],r=t[2];e.observe(n,o,r)}),this.observerBacklog=null},t.prototype.observe=function(t,e,n){this.observer?(this.callbacks[t]=n,this.observer.observe(e)):this.observerBacklog.push([t,e,n])},t.prototype.unobserve=function(t,e){this.observer&&(delete this.callbacks[t],this.observer.unobserve(e))},t.prototype.disconnect=function(){this.observer&&(this.callbacks={},this.observer.disconnect(),this.observer=null)},t}();e.a=i},269:function(t,e,n){"use strict";n.d(e,"a",function(){return I});var o,r,i=n(28),a=n.n(i),s=n(2),c=n.n(s),l=n(29),u=n.n(l),d=n(1),f=n.n(d),h=n(3),p=n.n(h),m=n(4),v=n.n(m),g=n(0),y=n.n(g),b=n(12),O=n.n(b),M=n(5),j=n.n(M),_=n(261),C=n(11),k=n.n(C),w=n(262),I=(r=o=function(t){function e(){var n,o,r;f()(this,e);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=p()(this,t.call.apply(t,[this].concat(a))),o.handleMoveUp=function(t){var e=o.props.statusIds.indexOf(t)-1;o._selectChild(e)},o.handleMoveDown=function(t){var e=o.props.statusIds.indexOf(t)+1;o._selectChild(e)},o.setRef=function(t){o.node=t},r=n,p()(o,r)}return v()(e,t),e.prototype._selectChild=function(t){var e=this.node.node.querySelector("article:nth-of-type("+(t+1)+") .focusable");e&&e.focus()},e.prototype.render=function(){var t=this,e=this.props,n=e.statusIds,o=u()(e,["statusIds"]),r=o.isLoading,i=r||n.size>0?n.map(function(e){return c()(_.a,{id:e,onMoveUp:t.handleMoveUp,onMoveDown:t.handleMoveDown},e)}):null;return y.a.createElement(w.a,a()({},o,{ref:this.setRef}),i)},e}(k.a),o.propTypes={scrollKey:j.a.string.isRequired,statusIds:O.a.list.isRequired,onScrollToBottom:j.a.func,onScrollToTop:j.a.func,onScroll:j.a.func,trackScroll:j.a.bool,shouldUpdateScroll:j.a.func,isLoading:j.a.bool,hasMore:j.a.bool,prepend:j.a.node,emptyMessage:j.a.node},o.defaultProps={trackScroll:!0},r)},319:function(t,e,n){"use strict";function o(){var t=n(320).default,e=n(0),o=n(21),r=document.getElementById("mastodon-timeline");if(null!==r){var i=JSON.parse(r.getAttribute("data-props"));o.render(e.createElement(t,i),r)}}function r(){(0,n(90).default)(o)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(75);n(109),Object(i.a)().then(r).catch(function(t){console.error(t)})},320:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"default",function(){return k});var o=n(2),r=n.n(o),i=n(1),a=n.n(i),s=n(3),c=n.n(s),l=n(4),u=n.n(l),d=n(0),f=n.n(d),h=n(9),p=n(126),m=n(23),v=n(6),g=n(7),y=n(460),b=n(621),O=n(18),M=Object(g.getLocale)(),j=M.localeData,_=M.messages;Object(v.e)(j);var C=Object(p.a)();O.c&&C.dispatch(Object(m.b)(O.c));var k=function(t){function e(){return a()(this,e),c()(this,t.apply(this,arguments))}return u()(e,t),e.prototype.render=function(){var t=this.props,e=t.locale,n=t.hashtag,o=void 0;return o=n?r()(b.a,{hashtag:n}):r()(y.a,{}),r()(v.d,{locale:e,messages:_},void 0,r()(h.Provider,{store:C},void 0,o))},e}(f.a.PureComponent)},460:function(t,e,n){"use strict";n.d(e,"a",function(){return j});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(9),v=n(158),g=n(16),y=n(99),b=n(98),O=n(6),M=Object(O.f)({title:{id:"standalone.public_title",defaultMessage:"A look inside..."}}),j=(o=Object(m.connect)())(r=Object(O.g)(r=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.handleHeaderClick=function(){o.column.scrollTop()},o.setRef=function(t){o.column=t},o.handleLoadMore=function(){o.props.dispatch(Object(g.u)())},r=n,u()(o,r)}return f()(e,t),e.prototype.componentDidMount=function(){var t=this.props.dispatch;t(Object(g.A)()),this.polling=setInterval(function(){t(Object(g.A)())},3e3)},e.prototype.componentWillUnmount=function(){void 0!==this.polling&&(clearInterval(this.polling),this.polling=null)},e.prototype.render=function(){var t=this.props.intl;return p.a.createElement(y.a,{ref:this.setRef},a()(b.a,{icon:"globe",title:t.formatMessage(M.title),onClick:this.handleHeaderClick}),a()(v.a,{timelineId:"public",loadMore:this.handleLoadMore,scrollKey:"standalone_public_timeline",trackScroll:!1}))},e}(p.a.PureComponent))||r)||r},6:function(t,e,n){"use strict";function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(Array.isArray(t)?t:[t]).forEach(function(t){t&&t.locale&&(P.a.__addLocaleData(t),R.a.__addLocaleData(t))})}function r(t){for(var e=(t||"").split("-");e.length>0;){if(i(e.join("-")))return!0;e.pop()}return!1}function i(t){var e=t&&t.toLowerCase();return!(!P.a.__localeData__[e]||!R.a.__localeData__[e])}function a(t){return(""+t).replace(Ot,function(t){return bt[t]})}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,o){return t.hasOwnProperty(o)?e[o]=t[o]:n.hasOwnProperty(o)&&(e[o]=n[o]),e},{})}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.intl;H()(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function l(t,e){if(t===e)return!0;if("object"!==(void 0===t?"undefined":K(t))||null===t||"object"!==(void 0===e?"undefined":K(e))||null===e)return!1;var n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(var r=Object.prototype.hasOwnProperty.bind(e),i=0;i<n.length;i++)if(!r(n[i])||t[n[i]]!==e[n[i]])return!1;return!0}function u(t,e,n){var o=t.props,r=t.state,i=t.context,a=void 0===i?{}:i,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=a.intl,d=void 0===u?{}:u,f=c.intl,h=void 0===f?{}:f;return!l(e,o)||!l(n,r)||!(h===d||l(s(h,yt),s(d,yt)))}function d(t){return t.displayName||t.name||"Component"}function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.intlPropName,o=void 0===n?"intl":n,r=e.withRef,i=void 0!==r&&r,a=function(e){function n(t,e){q(this,n);var o=Q(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t,e));return c(e),o}return Z(n,e),z(n,[{key:"getWrappedInstance",value:function(){return H()(i,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this.refs.wrappedInstance}},{key:"render",value:function(){return E.a.createElement(t,J({},this.props,V({},o,this.context.intl),{ref:i?"wrappedInstance":null}))}}]),n}(L.Component);return a.displayName="InjectIntl("+d(t)+")",a.contextTypes={intl:ht},a.WrappedComponent=t,a}function h(t){return t}function p(t){return P.a.prototype._resolveLocale(t)}function m(t){return P.a.prototype._findPluralRuleFunction(t)}function v(t){var e=R.a.thresholds;e.second=t.second,e.minute=t.minute,e.hour=t.hour,e.day=t.day,e.month=t.month}function g(t,e,n){var o=t&&t[e]&&t[e][n];if(o)return o}function y(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,i=t.formats,a=o.format,c=new Date(n),l=a&&g(i,"date",a),u=s(o,jt,l);try{return e.getDateTimeFormat(r,u).format(c)}catch(t){}return String(c)}function b(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,i=t.formats,a=o.format,c=new Date(n),l=a&&g(i,"time",a),u=s(o,jt,l);u.hour||u.minute||u.second||(u=J({},u,{hour:"numeric",minute:"numeric"}));try{return e.getDateTimeFormat(r,u).format(c)}catch(t){}return String(c)}function O(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,i=t.formats,a=o.format,c=new Date(n),l=new Date(o.now),u=a&&g(i,"relative",a),d=s(o,Ct,u),f=J({},R.a.thresholds);v(wt);try{return e.getRelativeFormat(r,d).format(c,{now:isFinite(l)?l:e.now()})}catch(t){}finally{v(f)}return String(c)}function M(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,i=t.formats,a=o.format,c=a&&g(i,"number",a),l=s(o,_t,c);try{return e.getNumberFormat(r,l).format(n)}catch(t){}return String(n)}function j(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,i=s(o,kt);try{return e.getPluralFormat(r,i).format(n)}catch(t){}return"other"}function _(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,i=t.formats,a=t.messages,s=t.defaultLocale,c=t.defaultFormats,l=n.id,u=n.defaultMessage;H()(l,"[React Intl] An `id` must be provided to format a message.");var d=a&&a[l];if(!(Object.keys(o).length>0))return d||u||l;var f=void 0;if(d)try{f=e.getMessageFormat(d,r,i).format(o)}catch(t){}if(!f&&u)try{f=e.getMessageFormat(u,s,c).format(o)}catch(t){}return f||d||u||l}function C(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return _(t,e,n,Object.keys(o).reduce(function(t,e){var n=o[e];return t[e]="string"==typeof n?a(n):n,t},{}))}function k(t){var e=Math.abs(t);return e<Nt?"second":e<Lt?"minute":e<Et?"hour":"day"}function w(t){switch(t){case"second":return Dt;case"minute":return Nt;case"hour":return Lt;case"day":return Et;default:return At}}function I(t,e){if(t===e)return!0;var n=new Date(t).getTime(),o=new Date(e).getTime();return isFinite(n)&&isFinite(o)&&n===o}n.d(e,"e",function(){return o}),n.d(e,"g",function(){return f}),n.d(e,"f",function(){return h}),n.d(e,"d",function(){return Pt}),n.d(e,"a",function(){return Ft}),n.d(e,"c",function(){return Ut}),n.d(e,"b",function(){return Wt});var x=n(81),S=n.n(x),T=n(53),P=n.n(T),F=n(64),R=n.n(F),D=n(5),N=n.n(D),L=n(0),E=n.n(L),A=n(13),H=n.n(A),U=n(82),B=n.n(U),W={locale:"en",pluralRuleFunction:function(t,e){var n=String(t).split("."),o=!n[1],r=Number(n[0])==t,i=r&&n[0].slice(-1),a=r&&n[0].slice(-2);return e?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==t&&o?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}}}},K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},z=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),V=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},J=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Z=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},G=function(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},Q=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},X=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)},Y=N.a.bool,$=N.a.number,tt=N.a.string,et=N.a.func,nt=N.a.object,ot=N.a.oneOf,rt=N.a.shape,it=N.a.any,at=N.a.oneOfType,st=ot(["best fit","lookup"]),ct=ot(["narrow","short","long"]),lt=ot(["numeric","2-digit"]),ut=et.isRequired,dt={locale:tt,formats:nt,messages:nt,textComponent:it,defaultLocale:tt,defaultFormats:nt},ft={formatDate:ut,formatTime:ut,formatRelative:ut,formatNumber:ut,formatPlural:ut,formatMessage:ut,formatHTMLMessage:ut},ht=rt(J({},dt,ft,{formatters:nt,now:ut})),pt=(tt.isRequired,at([tt,nt]),{localeMatcher:st,formatMatcher:ot(["basic","best fit"]),timeZone:tt,hour12:Y,weekday:ct,era:ct,year:lt,month:ot(["numeric","2-digit","narrow","short","long"]),day:lt,hour:lt,minute:lt,second:lt,timeZoneName:ot(["short","long"])}),mt={localeMatcher:st,style:ot(["decimal","currency","percent"]),currency:tt,currencyDisplay:ot(["symbol","code","name"]),useGrouping:Y,minimumIntegerDigits:$,minimumFractionDigits:$,maximumFractionDigits:$,minimumSignificantDigits:$,maximumSignificantDigits:$},vt={style:ot(["best fit","numeric"]),units:ot(["second","minute","hour","day","month","year"])},gt={style:ot(["cardinal","ordinal"])},yt=Object.keys(dt),bt={"&":"&",">":">","<":"<",'"':""","'":"'"},Ot=/[&><"']/g,Mt=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};q(this,t);var o="ordinal"===n.style,r=m(p(e));this.format=function(t){return r(t,o)}},jt=Object.keys(pt),_t=Object.keys(mt),Ct=Object.keys(vt),kt=Object.keys(gt),wt={second:60,minute:60,hour:24,day:30,month:12},It=Object.freeze({formatDate:y,formatTime:b,formatRelative:O,formatNumber:M,formatPlural:j,formatMessage:_,formatHTMLMessage:C}),xt=Object.keys(dt),St=Object.keys(ft),Tt={formats:{},messages:{},textComponent:"span",defaultLocale:"en",defaultFormats:{}},Pt=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};q(this,e);var o=Q(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));H()("undefined"!=typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var r=n.intl,i=void 0;i=isFinite(t.initialNow)?Number(t.initialNow):r?r.now():Date.now();var a=r||{},s=a.formatters,c=void 0===s?{getDateTimeFormat:B()(Intl.DateTimeFormat),getNumberFormat:B()(Intl.NumberFormat),getMessageFormat:B()(P.a),getRelativeFormat:B()(R.a),getPluralFormat:B()(Mt)}:s;return o.state=J({},c,{now:function(){return o._didDisplay?Date.now():i}}),o}return Z(e,t),z(e,[{key:"getConfig",value:function(){var t=this.context.intl,e=s(this.props,xt,t);for(var n in Tt)void 0===e[n]&&(e[n]=Tt[n]);if(!r(e.locale)){var o=e,i=(o.locale,o.defaultLocale),a=o.defaultFormats;e=J({},e,{locale:i,formats:a,messages:Tt.messages})}return e}},{key:"getBoundFormatFns",value:function(t,e){return St.reduce(function(n,o){return n[o]=It[o].bind(null,t,e),n},{})}},{key:"getChildContext",value:function(){var t=this.getConfig(),e=this.getBoundFormatFns(t,this.state),n=this.state,o=n.now,r=G(n,["now"]);return{intl:J({},t,e,{formatters:r,now:o})}}},{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"componentDidMount",value:function(){this._didDisplay=!0}},{key:"render",value:function(){return L.Children.only(this.props.children)}}]),e}(L.Component);Pt.displayName="IntlProvider",Pt.contextTypes={intl:ht},Pt.childContextTypes={intl:ht.isRequired};var Ft=function(t){function e(t,n){q(this,e);var o=Q(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return Z(e,t),z(e,[{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatDate,n=t.textComponent,o=this.props,r=o.value,i=o.children,a=e(r,this.props);return"function"==typeof i?i(a):E.a.createElement(n,null,a)}}]),e}(L.Component);Ft.displayName="FormattedDate",Ft.contextTypes={intl:ht};var Rt=function(t){function e(t,n){q(this,e);var o=Q(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return Z(e,t),z(e,[{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatTime,n=t.textComponent,o=this.props,r=o.value,i=o.children,a=e(r,this.props);return"function"==typeof i?i(a):E.a.createElement(n,null,a)}}]),e}(L.Component);Rt.displayName="FormattedTime",Rt.contextTypes={intl:ht};var Dt=1e3,Nt=6e4,Lt=36e5,Et=864e5,At=2147483647,Ht=function(t){function e(t,n){q(this,e);var o=Q(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));c(n);var r=isFinite(t.initialNow)?Number(t.initialNow):n.intl.now();return o.state={now:r},o}return Z(e,t),z(e,[{key:"scheduleNextUpdate",value:function(t,e){var n=this;clearTimeout(this._timer);var o=t.value,r=t.units,i=t.updateInterval,a=new Date(o).getTime();if(i&&isFinite(a)){var s=a-e.now,c=w(r||k(s)),l=Math.abs(s%c),u=s<0?Math.max(i,c-l):Math.max(i,l);this._timer=setTimeout(function(){n.setState({now:n.context.intl.now()})},u)}}},{key:"componentDidMount",value:function(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentWillReceiveProps",value:function(t){I(t.value,this.props.value)||this.setState({now:this.context.intl.now()})}},{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"componentWillUpdate",value:function(t,e){this.scheduleNextUpdate(t,e)}},{key:"componentWillUnmount",value:function(){clearTimeout(this._timer)}},{key:"render",value:function(){var t=this.context.intl,e=t.formatRelative,n=t.textComponent,o=this.props,r=o.value,i=o.children,a=e(r,J({},this.props,this.state));return"function"==typeof i?i(a):E.a.createElement(n,null,a)}}]),e}(L.Component);Ht.displayName="FormattedRelative",Ht.contextTypes={intl:ht},Ht.defaultProps={updateInterval:1e4};var Ut=function(t){function e(t,n){q(this,e);var o=Q(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return Z(e,t),z(e,[{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatNumber,n=t.textComponent,o=this.props,r=o.value,i=o.children,a=e(r,this.props);return"function"==typeof i?i(a):E.a.createElement(n,null,a)}}]),e}(L.Component);Ut.displayName="FormattedNumber",Ut.contextTypes={intl:ht};var Bt=function(t){function e(t,n){q(this,e);var o=Q(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return Z(e,t),z(e,[{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatPlural,n=t.textComponent,o=this.props,r=o.value,i=o.other,a=o.children,s=e(r,this.props),c=this.props[s]||i;return"function"==typeof a?a(c):E.a.createElement(n,null,c)}}]),e}(L.Component);Bt.displayName="FormattedPlural",Bt.contextTypes={intl:ht},Bt.defaultProps={style:"cardinal"};var Wt=function(t){function e(t,n){q(this,e);var o=Q(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return Z(e,t),z(e,[{key:"shouldComponentUpdate",value:function(t){var e=this.props.values;if(!l(t.values,e))return!0;for(var n=J({},t,{values:e}),o=arguments.length,r=Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return u.apply(void 0,[this,n].concat(r))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatMessage,n=t.textComponent,o=this.props,r=o.id,i=o.description,a=o.defaultMessage,s=o.values,c=o.tagName,l=void 0===c?n:c,u=o.children,d=void 0,f=void 0,h=void 0;if(s&&Object.keys(s).length>0){var p=Math.floor(1099511627776*Math.random()).toString(16),m=function(){var t=0;return function(){return"ELEMENT-"+p+"-"+(t+=1)}}();d="@__"+p+"__@",f={},h={},Object.keys(s).forEach(function(t){var e=s[t];if(Object(L.isValidElement)(e)){var n=m();f[t]=d+n+d,h[n]=e}else f[t]=e})}var v={id:r,description:i,defaultMessage:a},g=e(v,f||s),y=void 0;return y=h&&Object.keys(h).length>0?g.split(d).filter(function(t){return!!t}).map(function(t){return h[t]||t}):[g],"function"==typeof u?u.apply(void 0,X(y)):L.createElement.apply(void 0,[l,null].concat(X(y)))}}]),e}(L.Component);Wt.displayName="FormattedMessage",Wt.contextTypes={intl:ht},Wt.defaultProps={values:{}};var Kt=function(t){function e(t,n){q(this,e);var o=Q(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return Z(e,t),z(e,[{key:"shouldComponentUpdate",value:function(t){var e=this.props.values;if(!l(t.values,e))return!0;for(var n=J({},t,{values:e}),o=arguments.length,r=Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return u.apply(void 0,[this,n].concat(r))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatHTMLMessage,n=t.textComponent,o=this.props,r=o.id,i=o.description,a=o.defaultMessage,s=o.values,c=o.tagName,l=void 0===c?n:c,u=o.children,d={id:r,description:i,defaultMessage:a},f=e(d,s);if("function"==typeof u)return u(f);var h={__html:f};return E.a.createElement(l,{dangerouslySetInnerHTML:h})}}]),e}(L.Component);Kt.displayName="FormattedHTMLMessage",Kt.contextTypes={intl:ht},Kt.defaultProps={values:{}},o(W),o(S.a)},621:function(t,e,n){"use strict";n.d(e,"a",function(){return O});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(9),v=n(158),g=n(16),y=n(99),b=n(98),O=(o=Object(m.connect)())(r=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.handleHeaderClick=function(){o.column.scrollTop()},o.setRef=function(t){o.column=t},o.handleLoadMore=function(){o.props.dispatch(Object(g.s)(o.props.hashtag))},r=n,u()(o,r)}return f()(e,t),e.prototype.componentDidMount=function(){var t=this.props,e=t.dispatch,n=t.hashtag;e(Object(g.y)(n)),this.polling=setInterval(function(){e(Object(g.y)(n))},1e4)},e.prototype.componentWillUnmount=function(){void 0!==this.polling&&(clearInterval(this.polling),this.polling=null)},e.prototype.render=function(){var t=this.props.hashtag;return p.a.createElement(y.a,{ref:this.setRef},a()(b.a,{icon:"hashtag",title:t,onClick:this.handleHeaderClick}),a()(v.a,{trackScroll:!1,scrollKey:"standalone_hashtag_timeline",timelineId:"hashtag:"+t,loadMore:this.handleLoadMore}))},e}(p.a.PureComponent))||r}},[319]);
|
|
//# sourceMappingURL=about-d6275c885cd0e28a1186.js.map
|