-(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{710:function(e,t,a){"use strict";a.r(t);var s,n,i,o,l,d,r,c,u,p=a(0),h=a.n(p),g=a(6),f=a.n(g),v=a(3),m=a.n(v),b=a(7),M=a.n(b),k=a(5),y=a.n(k),C=a(1),_=a.n(C),O=a(12),I=a(2),j=a.n(I),R=a(14),w=a.n(R),x=a(17),D=a.n(x),N=a(31),H=a(198),T=a(40),A=a(39),S=a(96),B=a(383),F=a(228),E=a(810),U=a(4),P=a(696),V=Object(O.connect)(function(e,t){var a=t.statusId;return{card:e.getIn(["cards",a],null)}})(P.a),q=a(18),z=a(78),K=(n=s=function(e){function t(){var a,s,n;f()(this,t);for(var i=arguments.length,o=Array(i),l=0;l<i;l++)o[l]=arguments[l];return a=s=m()(this,e.call.apply(e,[this].concat(o))),s.handleAccountClick=function(e){0!==e.button||e.ctrlKey||e.metaKey||(e.preventDefault(),s.context.router.history.push("/accounts/"+s.props.status.getIn(["account","id"]))),e.stopPropagation()},s.handleOpenVideo=function(e,t){s.props.onOpenVideo(e,t)},s.handleExpandedToggle=function(){s.props.onToggleHidden(s.props.status)},n=a,m()(s,n)}return M()(t,e),t.prototype.render=function(){var e=this.props.status.get("reblog")?this.props.status.get("reblog"):this.props.status,t="",a="",s="",n="retweet";if(e.get("media_attachments").size>0)if(e.get("media_attachments").some(function(e){return"unknown"===e.get("type")}))t=h()(F.a,{media:e.get("media_attachments")});else if("video"===e.getIn(["media_attachments",0,"type"])){var i=e.getIn(["media_attachments",0]);t=h()(z.default,{preview:i.get("preview_url"),src:i.get("url"),alt:i.get("description"),width:300,height:150,inline:!0,onOpenVideo:this.handleOpenVideo,sensitive:e.get("sensitive")})}else t=h()(B.default,{standalone:!0,sensitive:e.get("sensitive"),media:e.get("media_attachments"),height:300,onOpenMedia:this.props.onOpenMedia});else 0===e.get("spoiler_text").length&&(t=h()(V,{onOpenMedia:this.props.onOpenMedia,statusId:e.get("id")}));return e.get("application")&&(a=h()("span",{},void 0," · ",h()("a",{className:"detailed-status__application",href:e.getIn(["application","website"]),target:"_blank",rel:"noopener"},void 0,e.getIn(["application","name"])))),"direct"===e.get("visibility")?n="envelope":"private"===e.get("visibility")&&(n="lock"),s="private"===e.get("visibility")?h()("i",{className:"fa fa-"+n}):h()(E.a,{to:"/statuses/"+e.get("id")+"/reblogs",className:"detailed-status__link"},void 0,h()("i",{className:"fa fa-"+n}),h()("span",{className:"detailed-status__reblogs"},void 0,h()(U.c,{value:e.get("reblogs_count")}))),h()("div",{className:"detailed-status"},void 0,h()("a",{href:e.getIn(["account","url"]),onClick:this.handleAccountClick,className:"detailed-status__display-name"},void 0,h()("div",{className:"detailed-status__display-avatar"},void 0,h()(T.a,{account:e.get("account"),size:48})),h()(A.a,{account:e.get("account")})),h()(S.a,{status:e,expanded:!e.get("hidden"),onExpandedToggle:this.handleExpandedToggle}),t,h()("div",{className:"detailed-status__meta"},void 0,h()("a",{className:"detailed-status__datetime",href:e.get("url"),target:"_blank",rel:"noopener"},void 0,h()(U.a,{value:new Date(e.get("created_at")),hour12:!1,year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit"})),a," · ",s," · ",h()(E.a,{to:"/statuses/"+e.get("id")+"/favourites",className:"detailed-status__link"},void 0,h()("i",{className:"fa fa-star"}),h()("span",{className:"detailed-status__favorites"},void 0,h()(U.c,{value:e.get("favourites_count")})))))},t}(q.a),s.contextTypes={router:j.a.object},s.propTypes={status:D.a.map.isRequired,onOpenMedia:j.a.func.isRequired,onOpenVideo:j.a.func.isRequired,onToggleHidden:j.a.func.isRequired},n),J=a(20),W=a(97),L=a(10),G=Object(U.f)({delete:{id:"status.delete",defaultMessage:"Delete"},redraft:{id:"status.redraft",defaultMessage:"Delete & re-draft"},direct:{id:"status.direct",defaultMessage:"Direct message @{name}"},mention:{id:"status.mention",defaultMessage:"Mention @{name}"},reply:{id:"status.reply",defaultMessage:"Reply"},reblog:{id:"status.reblog",defaultMessage:"Boost"},reblog_private:{id:"status.reblog_private",defaultMessage:"Boost to original audience"},cancel_reblog_private:{id:"status.cancel_reblog_private",defaultMessage:"Unboost"},cannot_reblog:{id:"status.cannot_reblog",defaultMessage:"This post cannot be boosted"},favourite:{id:"status.favourite",defaultMessage:"Favourite"},mute:{id:"status.mute",defaultMessage:"Mute @{name}"},muteConversation:{id:"status.mute_conversation",defaultMessage:"Mute conversation"},unmuteConversation:{id:"status.unmute_conversation",defaultMessage:"Unmute conversation"},block:{id:"status.block",defaultMessage:"Block @{name}"},report:{id:"status.report",defaultMessage:"Report @{name}"},share:{id:"status.share",defaultMessage:"Share"},pin:{id:"status.pin",defaultMessage:"Pin on profile"},unpin:{id:"status.unpin",defaultMessage:"Unpin from profile"},embed:{id:"status.embed",defaultMessage:"Embed"}}),Q=Object(U.g)((l=o=function(e){function t(){var a,s,n;f()(this,t);for(var i=arguments.length,o=Array(i),l=0;l<i;l++)o[l]=arguments[l];return a=s=m()(this,e.call.apply(e,[this].concat(o))),s.handleReplyClick=function(){s.props.onReply(s.props.status)},s.handleReblogClick=function(e){s.props.onReblog(s.props.status,e)},s.handleFavouriteClick=function(){s.props.onFavourite(s.props.status)},s.handleDeleteClick=function(){s.props.onDelete(s.props.status,s.context.router.history)},s.handleRedraftClick=function(){s.props.onDelete(s.props.status,s.context.router.history,!0)},s.handleDirectClick=function(){s.props.onDirect(s.props.status.get("account"),s.context.router.history)},s.handleMentionClick=function(){s.props.onMention(s.props.status.get("account"),s.context.router.history)},s.handleMuteClick=function(){s.props.onMute(s.props.status.get("account"))},s.handleConversationMuteClick=function(){s.props.onMuteConversation(s.props.status)},s.handleBlockClick=function(){s.props.onBlock(s.props.status.get("account"))},s.handleReport=function(){s.props.onReport(s.props.status)},s.handlePinClick=function(){s.props.onPin(s.props.status)},s.handleShare=function(){navigator.share({text:s.props.status.get("search_index"),url:s.props.status.get("url")})},s.handleEmbed=function(){s.props.onEmbed(s.props.status)},n=a,m()(s,n)}return M()(t,e),t.prototype.render=function(){var e=this.props,t=e.status,a=e.intl,s=["public","unlisted"].includes(t.get("visibility")),n=t.get("muted"),i=[];s&&(i.push({text:a.formatMessage(G.embed),action:this.handleEmbed}),i.push(null)),L.i===t.getIn(["account","id"])?(s?i.push({text:a.formatMessage(t.get("pinned")?G.unpin:G.pin),action:this.handlePinClick}):"private"===t.get("visibility")&&i.push({text:a.formatMessage(t.get("reblogged")?G.cancel_reblog_private:G.reblog_private),action:this.handleReblogClick}),i.push(null),i.push({text:a.formatMessage(n?G.unmuteConversation:G.muteConversation),action:this.handleConversationMuteClick}),i.push(null),i.push({text:a.formatMessage(G.delete),action:this.handleDeleteClick}),i.push({text:a.formatMessage(G.redraft),action:this.handleRedraftClick})):(i.push({text:a.formatMessage(G.mention,{name:t.getIn(["account","username"])}),action:this.handleMentionClick}),i.push({text:a.formatMessage(G.direct,{name:t.getIn(["account","username"])}),action:this.handleDirectClick}),i.push(null),i.push({text:a.formatMessage(G.mute,{name:t.getIn(["account","username"])}),action:this.handleMuteClick}),i.push({text:a.formatMessage(G.block,{name:t.getIn(["account","username"])}),action:this.handleBlockClick}),i.push({text:a.formatMessage(G.report,{name:t.getIn(["account","username"])}),action:this.handleReport}));var o="share"in navigator&&"public"===t.get("visibility")&&h()("div",{className:"detailed-status__button"},void 0,h()(J.a,{title:a.formatMessage(G.share),icon:"share-alt",onClick:this.handleShare})),l="retweet";"direct"===t.get("visibility")?l="envelope":"private"===t.get("visibility")&&(l="lock");var d="direct"===t.get("visibility")||"private"===t.get("visibility");return h()("div",{className:"detailed-status__action-bar"},void 0,h()("div",{className:"detailed-status__button"},void 0,h()(J.a,{title:a.formatMessage(G.reply),icon:null===t.get("in_reply_to_id",null)?"reply":"reply-all",onClick:this.handleReplyClick})),h()("div",{className:"detailed-status__button"},void 0,h()(J.a,{disabled:d,active:t.get("reblogged"),title:d?a.formatMessage(G.cannot_reblog):a.formatMessage(G.reblog),icon:l,onClick:this.handleReblogClick})),h()("div",{className:"detailed-status__button"},void 0,h()(J.a,{className:"star-icon",animate:!0,active:t.get("favourited"),title:a.formatMessage(G.favourite),icon:"star",onClick:this.handleFavouriteClick})),o,h()("div",{className:"detailed-status__action-bar-dropdown"},void 0,h()(W.a,{size:18,icon:"ellipsis-h",items:i,direction:"left",title:"More"})))},t}(_.a.PureComponent),o.contextTypes={router:j.a.object},i=l))||i,X=a(193),Y=a(26),Z=a(11),$=a(13),ee=a(45),te=a(42),ae=a(32),se=a(123),ne=a(196),ie=a(60),oe=a(154),le=a(21),de=a(118),re=a(56),ce=a(157);a.d(t,"default",function(){return pe});var ue=Object(U.f)({deleteConfirm:{id:"confirmations.delete.confirm",defaultMessage:"Delete"},deleteMessage:{id:"confirmations.delete.message",defaultMessage:"Are you sure you want to delete this status?"},redraftConfirm:{id:"confirmations.redraft.confirm",defaultMessage:"Delete & redraft"},redraftMessage:{id:"confirmations.redraft.message",defaultMessage:"Are you sure you want to delete this status and re-draft it? Favourites and boosts will be lost, and replies to the original post will be orphaned."},blockConfirm:{id:"confirmations.block.confirm",defaultMessage:"Block"},revealAll:{id:"status.show_more_all",defaultMessage:"Show more for all"},hideAll:{id:"status.show_less_all",defaultMessage:"Show less for all"},detailedStatus:{id:"status.detailed_status",defaultMessage:"Detailed conversation view"}}),pe=(d=Object(O.connect)(function(){var e=Object(ae.f)();return function(t,a){var s=e(t,{id:a.params.statusId}),n=y.a.List(),i=y.a.List();return s&&(n=n.withMutations(function(e){for(var a=s.get("in_reply_to_id");a;)e.unshift(a),a=t.getIn(["contexts","inReplyTos",a])}),i=i.withMutations(function(e){for(var a=[s.get("id")];a.length>0;){var n=a.shift(),i=t.getIn(["contexts","replies",n]);s.get("id")!==n&&e.push(n),i&&i.reverse().forEach(function(e){a.unshift(e)})}})),{status:s,ancestorsIds:n,descendantsIds:i}}}),Object(U.g)(r=d((u=c=function(e){function t(){var a,s,n;f()(this,t);for(var i=arguments.length,o=Array(i),l=0;l<i;l++)o[l]=arguments[l];return a=s=m()(this,e.call.apply(e,[this].concat(o))),s.state={fullscreen:!1},s.handleFavouriteClick=function(e){e.get("favourited")?s.props.dispatch(Object(Y.p)(e)):s.props.dispatch(Object(Y.k)(e))},s.handlePin=function(e){e.get("pinned")?s.props.dispatch(Object(Y.q)(e)):s.props.dispatch(Object(Y.n)(e))},s.handleReplyClick=function(e){s.props.dispatch(Object(Z.T)(e,s.context.router.history))},s.handleModalReblog=function(e){s.props.dispatch(Object(Y.o)(e))},s.handleReblogClick=function(e,t){e.get("reblogged")?s.props.dispatch(Object(Y.r)(e)):t.shiftKey||!L.b?s.handleModalReblog(e):s.props.dispatch(Object(le.d)("BOOST",{status:e,onReblog:s.handleModalReblog}))},s.handleDeleteClick=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=s.props,i=n.dispatch,o=n.intl;L.d?i(Object(le.d)("CONFIRM",{message:o.formatMessage(a?ue.redraftMessage:ue.deleteMessage),confirm:o.formatMessage(a?ue.redraftConfirm:ue.deleteConfirm),onConfirm:function(){return i(Object(N.g)(e.get("id"),t,a))}})):i(Object(N.g)(e.get("id"),t,a))},s.handleDirectClick=function(e,t){s.props.dispatch(Object(Z.N)(e,t))},s.handleMentionClick=function(e,t){s.props.dispatch(Object(Z.R)(e,t))},s.handleOpenMedia=function(e,t){s.props.dispatch(Object(le.d)("MEDIA",{media:e,index:t}))},s.handleOpenVideo=function(e,t){s.props.dispatch(Object(le.d)("VIDEO",{media:e,time:t}))},s.handleMuteClick=function(e){s.props.dispatch(Object(ee.g)(e))},s.handleConversationMuteClick=function(e){e.get("muted")?s.props.dispatch(Object(N.l)(e.get("id"))):s.props.dispatch(Object(N.j)(e.get("id")))},s.handleToggleHidden=function(e){e.get("hidden")?s.props.dispatch(Object(N.k)(e.get("id"))):s.props.dispatch(Object(N.i)(e.get("id")))},s.handleToggleAll=function(){var e=s.props,t=e.status,a=e.ancestorsIds,n=e.descendantsIds,i=[t.get("id")].concat(a.toJS(),n.toJS());t.get("hidden")?s.props.dispatch(Object(N.k)(i)):s.props.dispatch(Object(N.i)(i))},s.handleBlockClick=function(e){var t=s.props,a=t.dispatch,n=t.intl;a(Object(le.d)("CONFIRM",{message:h()(U.b,{id:"confirmations.block.message",defaultMessage:"Are you sure you want to block {name}?",values:{name:h()("strong",{},void 0,"@",e.get("acct"))}}),confirm:n.formatMessage(ue.blockConfirm),onConfirm:function(){return a(Object($.s)(e.get("id")))}}))},s.handleReport=function(e){s.props.dispatch(Object(te.k)(e.get("account"),e))},s.handleEmbed=function(e){s.props.dispatch(Object(le.d)("EMBED",{url:e.get("url")}))},s.handleHotkeyMoveUp=function(){s.handleMoveUp(s.props.status.get("id"))},s.handleHotkeyMoveDown=function(){s.handleMoveDown(s.props.status.get("id"))},s.handleHotkeyReply=function(e){e.preventDefault(),s.handleReplyClick(s.props.status)},s.handleHotkeyFavourite=function(){s.handleFavouriteClick(s.props.status)},s.handleHotkeyBoost=function(){s.handleReblogClick(s.props.status)},s.handleHotkeyMention=function(e){e.preventDefault(),s.handleMentionClick(s.props.status.get("account"))},s.handleHotkeyOpenProfile=function(){s.context.router.history.push("/accounts/"+s.props.status.getIn(["account","id"]))},s.handleHotkeyToggleHidden=function(){s.handleToggleHidden(s.props.status)},s.handleMoveUp=function(e){var t=s.props,a=t.status,n=t.ancestorsIds,i=t.descendantsIds;if(e===a.get("id"))s._selectChild(n.size-1);else{var o=n.indexOf(e);-1===o?(o=i.indexOf(e),s._selectChild(n.size+o)):s._selectChild(o-1)}},s.handleMoveDown=function(e){var t=s.props,a=t.status,n=t.ancestorsIds,i=t.descendantsIds;if(e===a.get("id"))s._selectChild(n.size+1);else{var o=n.indexOf(e);-1===o?(o=i.indexOf(e),s._selectChild(n.size+o+2)):s._selectChild(o+1)}},s.setRef=function(e){s.node=e},s.onFullScreenChange=function(){s.setState({fullscreen:Object(re.d)()})},n=a,m()(s,n)}return M()(t,e),t.prototype.componentWillMount=function(){this.props.dispatch(Object(N.h)(this.props.params.statusId))},t.prototype.componentDidMount=function(){Object(re.a)(this.onFullScreenChange)},t.prototype.componentWillReceiveProps=function(e){e.params.statusId!==this.props.params.statusId&&e.params.statusId&&(this._scrolledIntoView=!1,this.props.dispatch(Object(N.h)(e.params.statusId)))},t.prototype._selectChild=function(e){var t=this.node.querySelectorAll(".focusable")[e];t&&t.focus()},t.prototype.renderChildren=function(e){var t=this;return e.map(function(e){return h()(oe.a,{id:e,onMoveUp:t.handleMoveUp,onMoveDown:t.handleMoveDown,contextType:"thread"},e)})},t.prototype.componentDidUpdate=function(){if(!this._scrolledIntoView){var e=this.props,t=e.status,a=e.ancestorsIds;if(t&&a&&a.size>0){var s=this.node.querySelectorAll(".focusable")[a.size-1];window.requestAnimationFrame(function(){s.scrollIntoView(!0)}),this._scrolledIntoView=!0}}},t.prototype.componentWillUnmount=function(){Object(re.b)(this.onFullScreenChange)},t.prototype.render=function(){var e=void 0,t=void 0,a=this.props,s=a.shouldUpdateScroll,n=a.status,i=a.ancestorsIds,o=a.descendantsIds,l=a.intl,d=this.state.fullscreen;if(null===n)return h()(X.a,{},void 0,h()(ne.a,{}),h()(H.a,{}));i&&i.size>0&&(e=h()("div",{},void 0,this.renderChildren(i))),o&&o.size>0&&(t=h()("div",{},void 0,this.renderChildren(o)));var r={moveUp:this.handleHotkeyMoveUp,moveDown:this.handleHotkeyMoveDown,reply:this.handleHotkeyReply,favourite:this.handleHotkeyFavourite,boost:this.handleHotkeyBoost,mention:this.handleHotkeyMention,openProfile:this.handleHotkeyOpenProfile,toggleHidden:this.handleHotkeyToggleHidden};return h()(X.a,{label:l.formatMessage(ue.detailedStatus)},void 0,h()(ie.a,{showBackButton:!0,extraButton:h()("button",{className:"column-header__button",title:l.formatMessage(n.get("hidden")?ue.revealAll:ue.hideAll),"aria-label":l.formatMessage(n.get("hidden")?ue.revealAll:ue.hideAll),onClick:this.handleToggleAll,"aria-pressed":n.get("hidden")?"false":"true"},void 0,h()("i",{className:"fa fa-"+(n.get("hidden")?"eye-slash":"eye")}))}),h()(se.a,{scrollKey:"thread",shouldUpdateScroll:s},void 0,_.a.createElement("div",{className:w()("scrollable","detailed-status__wrapper",{fullscreen:d}),ref:this.setRef},e,h()(de.HotKeys,{handlers:r},void 0,h()("div",{className:"focusable",tabIndex:"0","aria-label":Object(ce.b)(l,n,!1,!n.get("hidden"))},void 0,h()(K,{status:n,onOpenVideo:this.handleOpenVideo,onOpenMedia:this.handleOpenMedia,onToggleHidden:this.handleToggleHidden}),h()(Q,{status:n,onReply:this.handleReplyClick,onFavourite:this.handleFavouriteClick,onReblog:this.handleReblogClick,onDelete:this.handleDeleteClick,onDirect:this.handleDirectClick,onMention:this.handleMentionClick,onMute:this.handleMuteClick,onMuteConversation:this.handleConversationMuteClick,onBlock:this.handleBlockClick,onReport:this.handleReport,onPin:this.handlePin,onEmbed:this.handleEmbed}))),t)))},t}(q.a),c.contextTypes={router:j.a.object},c.propTypes={params:j.a.object.isRequired,dispatch:j.a.func.isRequired,status:D.a.map,ancestorsIds:D.a.list,descendantsIds:D.a.list,intl:j.a.object.isRequired},r=u))||r)||r)}}]);
+(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{786:function(e,t,a){"use strict";a.d(t,"a",(function(){return x}));var n=a(0),o=a(2),i=(a(9),a(6),a(8)),s=a(1),c=a(3),l=a.n(c),r=a(5),d=a.n(r),u=a(16),p=a.n(u),h=a(115),b=a(122),g=a(234),m=a(539),f=a(322),O=a(7),j=a(540),v=a(21),k=a(88),M=a(228),y=a(778),_=a(14),C=a.n(_),w=a(27),I=a(590);var x=function(e){Object(i.a)(a,e);var t;t=a;function a(){for(var t,a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];return t=e.call.apply(e,[this].concat(n))||this,Object(s.a)(Object(o.a)(t),"state",{height:null}),Object(s.a)(Object(o.a)(t),"handleAccountClick",(function(e){0!==e.button||e.ctrlKey||e.metaKey||!t.context.router||(e.preventDefault(),t.context.router.history.push("/accounts/"+t.props.status.getIn(["account","id"]))),e.stopPropagation()})),Object(s.a)(Object(o.a)(t),"handleOpenVideo",(function(e,a){t.props.onOpenVideo(e,a)})),Object(s.a)(Object(o.a)(t),"handleExpandedToggle",(function(){t.props.onToggleHidden(t.props.status)})),Object(s.a)(Object(o.a)(t),"setRef",(function(e){t.node=e,t._measureHeight()})),Object(s.a)(Object(o.a)(t),"handleModalLink",(function(e){var t;e.preventDefault(),t="A"!==e.target.nodeName?e.target.parentNode.href:e.target.href,window.open(t,"mastodon-intent","width=445,height=600,resizable=no,menubar=no,status=no,scrollbars=yes")})),t}var c=a.prototype;return c._measureHeight=function(e){var t=this;this.props.measureHeight&&this.node&&(Object(y.a)((function(){return t.node&&t.setState({height:Math.ceil(t.node.scrollHeight)+1})})),this.props.onHeightChange&&e&&this.props.onHeightChange())},c.componentDidUpdate=function(e,t){this._measureHeight(t.height!==this.state.height)},c.render=function(){var e=this.props.status&&this.props.status.get("reblog")?this.props.status.get("reblog"):this.props.status,t={boxSizing:"border-box"},a=this.props.compact;if(!e)return null;var o="",i="",s="",c="retweet",r="";if(this.props.measureHeight&&(t.height=this.state.height+"px"),e.get("media_attachments").size>0)if("audio"===e.getIn(["media_attachments",0,"type"])){var d=e.getIn(["media_attachments",0]);o=Object(n.a)(M.default,{src:d.get("url"),alt:d.get("description"),duration:d.getIn(["meta","original","duration"],0),height:110,preload:!0})}else if("video"===e.getIn(["media_attachments",0,"type"])){var u=e.getIn(["media_attachments",0]);o=Object(n.a)(k.default,{preview:u.get("preview_url"),blurhash:u.get("blurhash"),src:u.get("url"),alt:u.get("description"),width:300,height:150,inline:!0,onOpenVideo:this.handleOpenVideo,sensitive:e.get("sensitive"),visible:this.props.showMedia,onToggleVisibility:this.props.onToggleMediaVisibility})}else o=Object(n.a)(m.default,{standalone:!0,sensitive:e.get("sensitive"),media:e.get("media_attachments"),height:300,onOpenMedia:this.props.onOpenMedia,visible:this.props.showMedia,onToggleVisibility:this.props.onToggleMediaVisibility});else 0===e.get("spoiler_text").length&&(o=Object(n.a)(j.a,{onOpenMedia:this.props.onOpenMedia,card:e.get("card",null)}));return e.get("application")&&(i=Object(n.a)("span",{},void 0," · ",Object(n.a)("a",{className:"detailed-status__application",href:e.getIn(["application","website"]),target:"_blank",rel:"noopener noreferrer"},void 0,e.getIn(["application","name"])))),"direct"===e.get("visibility")?c="envelope":"private"===e.get("visibility")&&(c="lock"),s=["private","direct"].includes(e.get("visibility"))?Object(n.a)(w.a,{id:c}):this.context.router?Object(n.a)(f.a,{to:"/statuses/"+e.get("id")+"/reblogs",className:"detailed-status__link"},void 0,Object(n.a)(w.a,{id:c}),Object(n.a)("span",{className:"detailed-status__reblogs"},void 0,Object(n.a)(I.a,{value:e.get("reblogs_count")}))):Object(n.a)("a",{href:"/interact/"+e.get("id")+"?type=reblog",className:"detailed-status__link",onClick:this.handleModalLink},void 0,Object(n.a)(w.a,{id:c}),Object(n.a)("span",{className:"detailed-status__reblogs"},void 0,Object(n.a)(I.a,{value:e.get("reblogs_count")}))),r=this.context.router?Object(n.a)(f.a,{to:"/statuses/"+e.get("id")+"/favourites",className:"detailed-status__link"},void 0,Object(n.a)(w.a,{id:"star"}),Object(n.a)("span",{className:"detailed-status__favorites"},void 0,Object(n.a)(I.a,{value:e.get("favourites_count")}))):Object(n.a)("a",{href:"/interact/"+e.get("id")+"?type=favourite",className:"detailed-status__link",onClick:this.handleModalLink},void 0,Object(n.a)(w.a,{id:"star"}),Object(n.a)("span",{className:"detailed-status__favorites"},void 0,Object(n.a)(I.a,{value:e.get("favourites_count")}))),Object(n.a)("div",{style:t},void 0,l.a.createElement("div",{ref:this.setRef,className:C()("detailed-status",{compact:a})},Object(n.a)("a",{href:e.getIn(["account","url"]),onClick:this.handleAccountClick,className:"detailed-status__display-name"},void 0,Object(n.a)("div",{className:"detailed-status__display-avatar"},void 0,Object(n.a)(h.a,{account:e.get("account"),size:48})),Object(n.a)(b.a,{account:e.get("account"),localDomain:this.props.domain})),Object(n.a)(g.a,{status:e,expanded:!e.get("hidden"),onExpandedToggle:this.handleExpandedToggle}),o,Object(n.a)("div",{className:"detailed-status__meta"},void 0,Object(n.a)("a",{className:"detailed-status__datetime",href:e.get("url"),target:"_blank",rel:"noopener noreferrer"},void 0,Object(n.a)(O.a,{value:new Date(e.get("created_at")),hour12:!1,year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit"})),i," · ",s," · ",r)))},a}(v.a);Object(s.a)(x,"contextTypes",{router:d.a.object}),Object(s.a)(x,"propTypes",{status:p.a.map,onOpenMedia:d.a.func.isRequired,onOpenVideo:d.a.func.isRequired,onToggleHidden:d.a.func.isRequired,measureHeight:d.a.bool,onHeightChange:d.a.func,domain:d.a.string.isRequired,compact:d.a.bool,showMedia:d.a.bool,onToggleMediaVisibility:d.a.func})},862:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return te}));var n,o,i,s=a(0),c=a(2),l=(a(9),a(6),a(8)),r=a(1),d=a(4),u=a.n(d),p=a(3),h=a.n(p),b=a(15),g=a(5),m=a.n(g),f=a(14),O=a.n(f),j=a(16),v=a.n(j),k=a(57),M=a(89),y=a(1057),_=a(786),C=a(53),w=a(723),I=a(7),x=a(22);var D,R,H,T,U=Object(I.f)({delete:{id:"status.delete",defaultMessage:"Delete"},redraft:{id:"status.redraft",defaultMessage:"Delete & re-draft"},direct:{id:"status.direct",defaultMessage:"Direct message @{name}"},mention:{id:"status.mention",defaultMessage:"Mention @{name}"},reply:{id:"status.reply",defaultMessage:"Reply"},reblog:{id:"status.reblog",defaultMessage:"Boost"},reblog_private:{id:"status.reblog_private",defaultMessage:"Boost to original audience"},cancel_reblog_private:{id:"status.cancel_reblog_private",defaultMessage:"Unboost"},cannot_reblog:{id:"status.cannot_reblog",defaultMessage:"This post cannot be boosted"},favourite:{id:"status.favourite",defaultMessage:"Favourite"},bookmark:{id:"status.bookmark",defaultMessage:"Bookmark"},more:{id:"status.more",defaultMessage:"More"},mute:{id:"status.mute",defaultMessage:"Mute @{name}"},muteConversation:{id:"status.mute_conversation",defaultMessage:"Mute conversation"},unmuteConversation:{id:"status.unmute_conversation",defaultMessage:"Unmute conversation"},block:{id:"status.block",defaultMessage:"Block @{name}"},report:{id:"status.report",defaultMessage:"Report @{name}"},share:{id:"status.share",defaultMessage:"Share"},pin:{id:"status.pin",defaultMessage:"Pin on profile"},unpin:{id:"status.unpin",defaultMessage:"Unpin from profile"},embed:{id:"status.embed",defaultMessage:"Embed"},admin_account:{id:"status.admin_account",defaultMessage:"Open moderation interface for @{name}"},admin_status:{id:"status.admin_status",defaultMessage:"Open this status in the moderation interface"},copy:{id:"status.copy",defaultMessage:"Copy link to status"},blockDomain:{id:"account.block_domain",defaultMessage:"Block domain {domain}"},unblockDomain:{id:"account.unblock_domain",defaultMessage:"Unblock domain {domain}"},unmute:{id:"account.unmute",defaultMessage:"Unmute @{name}"},unblock:{id:"account.unblock",defaultMessage:"Unblock @{name}"}}),B=Object(b.connect)((function(e,t){var a=t.status;return{relationship:e.getIn(["relationships",a.getIn(["account","id"])])}}))(n=Object(I.g)((i=o=function(e){Object(l.a)(a,e);var t;t=a;function a(){for(var t,a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return t=e.call.apply(e,[this].concat(n))||this,Object(r.a)(Object(c.a)(t),"handleReplyClick",(function(){t.props.onReply(t.props.status)})),Object(r.a)(Object(c.a)(t),"handleReblogClick",(function(e){t.props.onReblog(t.props.status,e)})),Object(r.a)(Object(c.a)(t),"handleFavouriteClick",(function(){t.props.onFavourite(t.props.status)})),Object(r.a)(Object(c.a)(t),"handleBookmarkClick",(function(e){t.props.onBookmark(t.props.status,e)})),Object(r.a)(Object(c.a)(t),"handleDeleteClick",(function(){t.props.onDelete(t.props.status,t.context.router.history)})),Object(r.a)(Object(c.a)(t),"handleRedraftClick",(function(){t.props.onDelete(t.props.status,t.context.router.history,!0)})),Object(r.a)(Object(c.a)(t),"handleDirectClick",(function(){t.props.onDirect(t.props.status.get("account"),t.context.router.history)})),Object(r.a)(Object(c.a)(t),"handleMentionClick",(function(){t.props.onMention(t.props.status.get("account"),t.context.router.history)})),Object(r.a)(Object(c.a)(t),"handleMuteClick",(function(){var e=t.props,a=e.status,n=e.relationship,o=e.onMute,i=e.onUnmute,s=a.get("account");n&&n.get("muting")?i(s):o(s)})),Object(r.a)(Object(c.a)(t),"handleBlockClick",(function(){var e=t.props,a=e.status,n=e.relationship,o=e.onBlock,i=e.onUnblock,s=a.get("account");n&&n.get("blocking")?i(s):o(a)})),Object(r.a)(Object(c.a)(t),"handleBlockDomain",(function(){var e=t.props,a=e.status;(0,e.onBlockDomain)(a.get("account").get("acct").split("@")[1])})),Object(r.a)(Object(c.a)(t),"handleUnblockDomain",(function(){var e=t.props,a=e.status;(0,e.onUnblockDomain)(a.get("account").get("acct").split("@")[1])})),Object(r.a)(Object(c.a)(t),"handleConversationMuteClick",(function(){t.props.onMuteConversation(t.props.status)})),Object(r.a)(Object(c.a)(t),"handleReport",(function(){t.props.onReport(t.props.status)})),Object(r.a)(Object(c.a)(t),"handlePinClick",(function(){t.props.onPin(t.props.status)})),Object(r.a)(Object(c.a)(t),"handleShare",(function(){navigator.share({text:t.props.status.get("search_index"),url:t.props.status.get("url")})})),Object(r.a)(Object(c.a)(t),"handleEmbed",(function(){t.props.onEmbed(t.props.status)})),Object(r.a)(Object(c.a)(t),"handleCopy",(function(){var e=t.props.status.get("url"),a=document.createElement("textarea");a.textContent=e,a.style.position="fixed",document.body.appendChild(a);try{a.select(),document.execCommand("copy")}catch(e){}finally{document.body.removeChild(a)}})),t}return a.prototype.render=function(){var e=this.props,t=e.status,a=e.relationship,n=e.intl,o=["public","unlisted"].includes(t.get("visibility")),i=t.get("muted"),c=t.get("account"),l=[];if(o&&(l.push({text:n.formatMessage(U.copy),action:this.handleCopy}),l.push({text:n.formatMessage(U.embed),action:this.handleEmbed}),l.push(null)),x.n===t.getIn(["account","id"]))o?l.push({text:n.formatMessage(t.get("pinned")?U.unpin:U.pin),action:this.handlePinClick}):"private"===t.get("visibility")&&l.push({text:n.formatMessage(t.get("reblogged")?U.cancel_reblog_private:U.reblog_private),action:this.handleReblogClick}),l.push(null),l.push({text:n.formatMessage(i?U.unmuteConversation:U.muteConversation),action:this.handleConversationMuteClick}),l.push(null),l.push({text:n.formatMessage(U.delete),action:this.handleDeleteClick}),l.push({text:n.formatMessage(U.redraft),action:this.handleRedraftClick});else{if(l.push({text:n.formatMessage(U.mention,{name:t.getIn(["account","username"])}),action:this.handleMentionClick}),l.push({text:n.formatMessage(U.direct,{name:t.getIn(["account","username"])}),action:this.handleDirectClick}),l.push(null),a&&a.get("muting")?l.push({text:n.formatMessage(U.unmute,{name:c.get("username")}),action:this.handleMuteClick}):l.push({text:n.formatMessage(U.mute,{name:c.get("username")}),action:this.handleMuteClick}),a&&a.get("blocking")?l.push({text:n.formatMessage(U.unblock,{name:c.get("username")}),action:this.handleBlockClick}):l.push({text:n.formatMessage(U.block,{name:c.get("username")}),action:this.handleBlockClick}),l.push({text:n.formatMessage(U.report,{name:t.getIn(["account","username"])}),action:this.handleReport}),c.get("acct")!==c.get("username")){var r=c.get("acct").split("@")[1];l.push(null),a&&a.get("domain_blocking")?l.push({text:n.formatMessage(U.unblockDomain,{domain:r}),action:this.handleUnblockDomain}):l.push({text:n.formatMessage(U.blockDomain,{domain:r}),action:this.handleBlockDomain})}x.k&&(l.push(null),l.push({text:n.formatMessage(U.admin_account,{name:t.getIn(["account","username"])}),href:"/admin/accounts/"+t.getIn(["account","id"])}),l.push({text:n.formatMessage(U.admin_status),href:"/admin/accounts/"+t.getIn(["account","id"])+"/statuses/"+t.get("id")}))}var d,u="share"in navigator&&o&&Object(s.a)("div",{className:"detailed-status__button"},void 0,Object(s.a)(C.a,{title:n.formatMessage(U.share),icon:"share-alt",onClick:this.handleShare}));d=null===t.get("in_reply_to_id",null)?"reply":"reply-all";var p="retweet";return"direct"===t.get("visibility")?p="envelope":"private"===t.get("visibility")&&(p="lock"),Object(s.a)("div",{className:"detailed-status__action-bar"},void 0,Object(s.a)("div",{className:"detailed-status__button"},void 0,Object(s.a)(C.a,{title:n.formatMessage(U.reply),icon:t.get("in_reply_to_account_id")===t.getIn(["account","id"])?"reply":d,onClick:this.handleReplyClick})),Object(s.a)("div",{className:"detailed-status__button"},void 0,Object(s.a)(C.a,{disabled:!o,active:t.get("reblogged"),title:o?n.formatMessage(U.reblog):n.formatMessage(U.cannot_reblog),icon:p,onClick:this.handleReblogClick})),Object(s.a)("div",{className:"detailed-status__button"},void 0,Object(s.a)(C.a,{className:"star-icon",animate:!0,active:t.get("favourited"),title:n.formatMessage(U.favourite),icon:"star",onClick:this.handleFavouriteClick})),u,Object(s.a)("div",{className:"detailed-status__button"},void 0,Object(s.a)(C.a,{className:"bookmark-icon",active:t.get("bookmarked"),title:n.formatMessage(U.bookmark),icon:"bookmark",onClick:this.handleBookmarkClick})),Object(s.a)("div",{className:"detailed-status__action-bar-dropdown"},void 0,Object(s.a)(w.a,{size:18,icon:"ellipsis-h",status:t,items:l,direction:"left",title:n.formatMessage(U.more)})))},a}(h.a.PureComponent),Object(r.a)(o,"contextTypes",{router:m.a.object}),n=i))||n)||n,N=a(757),S=a(46),V=a(23),A=a(26),E=a(84),F=a(212),z=a(230),P=a(105),q=a(210),L=a(472),J=a(764),K=a(759),W=a(1080),Y=a(48),X=a(21),G=a(301),Q=a(261),Z=a(871),$=a(27);var ee=Object(I.f)({deleteConfirm:{id:"confirmations.delete.confirm",defaultMessage:"Delete"},deleteMessage:{id:"confirmations.delete.message",defaultMessage:"Are you sure you want to delete this status?"},redraftConfirm:{id:"confirmations.redraft.confirm",defaultMessage:"Delete & redraft"},redraftMessage:{id:"confirmations.redraft.message",defaultMessage:"Are you sure you want to delete this status and re-draft it? Favourites and boosts will be lost, and replies to the original post will be orphaned."},revealAll:{id:"status.show_more_all",defaultMessage:"Show more for all"},hideAll:{id:"status.show_less_all",defaultMessage:"Show less for all"},detailedStatus:{id:"status.detailed_status",defaultMessage:"Detailed conversation view"},replyConfirm:{id:"confirmations.reply.confirm",defaultMessage:"Reply"},replyMessage:{id:"confirmations.reply.message",defaultMessage:"Replying now will overwrite the message you are currently composing. Are you sure you want to proceed?"},blockDomainConfirm:{id:"confirmations.domain_block.confirm",defaultMessage:"Hide entire domain"}}),te=(D=Object(b.connect)((function(){var e=Object(q.f)(),t=Object(k.a)([function(e,t){return t.id},function(e){return e.getIn(["contexts","inReplyTos"])}],(function(e,t){var a=u.a.List();return a=a.withMutations((function(a){for(var n=e;n;)a.unshift(n),n=t.get(n)}))})),a=Object(k.a)([function(e,t){return t.id},function(e){return e.getIn(["contexts","replies"])},function(e){return e.get("statuses")}],(function(e,t,a){for(var n=[],o=[e];o.length>0;){var i=o.shift(),s=t.get(i);e!==i&&n.push(i),s&&s.reverse().forEach((function(e){o.unshift(e)}))}var c=n.findIndex((function(e){return a.get(e).get("in_reply_to_account_id")!==a.get(e).get("account")}));return-1!==c&&n.forEach((function(e,t){t>c&&a.get(e).get("in_reply_to_account_id")===a.get(e).get("account")&&(n.splice(t,1),n.splice(c,0,e),c+=1)})),u.a.List(n)}));return function(n,o){var i=e(n,{id:o.params.statusId}),s=u.a.List(),c=u.a.List();return i&&(s=t(n,{id:i.get("in_reply_to_id")}),c=a(n,{id:i.get("id")})),{status:i,ancestorsIds:s,descendantsIds:c,askReplyConfirmation:0!==n.getIn(["compose","text"]).trim().length,domain:n.getIn(["meta","domain"])}}})),Object(I.g)(R=D((T=H=function(e){Object(l.a)(a,e);var t;t=a;function a(){for(var t,a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return t=e.call.apply(e,[this].concat(n))||this,Object(r.a)(Object(c.a)(t),"state",{fullscreen:!1,showMedia:Object(Z.b)(t.props.status),loadedStatusId:void 0}),Object(r.a)(Object(c.a)(t),"handleToggleMediaVisibility",(function(){t.setState({showMedia:!t.state.showMedia})})),Object(r.a)(Object(c.a)(t),"handleFavouriteClick",(function(e){e.get("favourited")?t.props.dispatch(Object(S.v)(e)):t.props.dispatch(Object(S.p)(e))})),Object(r.a)(Object(c.a)(t),"handlePin",(function(e){e.get("pinned")?t.props.dispatch(Object(S.w)(e)):t.props.dispatch(Object(S.s)(e))})),Object(r.a)(Object(c.a)(t),"handleReplyClick",(function(e){var a=t.props,n=a.askReplyConfirmation,o=a.dispatch,i=a.intl;o(n?Object(Y.d)("CONFIRM",{message:i.formatMessage(ee.replyMessage),confirm:i.formatMessage(ee.replyConfirm),onConfirm:function(){return o(Object(V.gb)(e,t.context.router.history))}}):Object(V.gb)(e,t.context.router.history))})),Object(r.a)(Object(c.a)(t),"handleModalReblog",(function(e){t.props.dispatch(Object(S.t)(e))})),Object(r.a)(Object(c.a)(t),"handleReblogClick",(function(e,a){e.get("reblogged")?t.props.dispatch(Object(S.x)(e)):a&&a.shiftKey||!x.b?t.handleModalReblog(e):t.props.dispatch(Object(Y.d)("BOOST",{status:e,onReblog:t.handleModalReblog}))})),Object(r.a)(Object(c.a)(t),"handleBookmarkClick",(function(e){e.get("bookmarked")?t.props.dispatch(Object(S.u)(e)):t.props.dispatch(Object(S.o)(e))})),Object(r.a)(Object(c.a)(t),"handleDeleteClick",(function(e,a,n){void 0===n&&(n=!1);var o=t.props,i=o.dispatch,s=o.intl;x.e?i(Object(Y.d)("CONFIRM",{message:s.formatMessage(n?ee.redraftMessage:ee.deleteMessage),confirm:s.formatMessage(n?ee.redraftConfirm:ee.deleteConfirm),onConfirm:function(){return i(Object(M.h)(e.get("id"),a,n))}})):i(Object(M.h)(e.get("id"),a,n))})),Object(r.a)(Object(c.a)(t),"handleDirectClick",(function(e,a){t.props.dispatch(Object(V.X)(e,a))})),Object(r.a)(Object(c.a)(t),"handleMentionClick",(function(e,a){t.props.dispatch(Object(V.cb)(e,a))})),Object(r.a)(Object(c.a)(t),"handleOpenMedia",(function(e,a){t.props.dispatch(Object(Y.d)("MEDIA",{media:e,index:a}))})),Object(r.a)(Object(c.a)(t),"handleOpenVideo",(function(e,a){t.props.dispatch(Object(Y.d)("VIDEO",{media:e,time:a}))})),Object(r.a)(Object(c.a)(t),"handleHotkeyOpenMedia",(function(e){var a=t._properStatus();e.preventDefault(),a.get("media_attachments").size>0&&("audio"===a.getIn(["media_attachments",0,"type"])||("video"===a.getIn(["media_attachments",0,"type"])?t.handleOpenVideo(a.getIn(["media_attachments",0]),0):t.handleOpenMedia(a.get("media_attachments"),0)))})),Object(r.a)(Object(c.a)(t),"handleMuteClick",(function(e){t.props.dispatch(Object(F.g)(e))})),Object(r.a)(Object(c.a)(t),"handleConversationMuteClick",(function(e){e.get("muted")?t.props.dispatch(Object(M.n)(e.get("id"))):t.props.dispatch(Object(M.k)(e.get("id")))})),Object(r.a)(Object(c.a)(t),"handleToggleHidden",(function(e){e.get("hidden")?t.props.dispatch(Object(M.l)(e.get("id"))):t.props.dispatch(Object(M.j)(e.get("id")))})),Object(r.a)(Object(c.a)(t),"handleToggleAll",(function(){var e=t.props,a=e.status,n=e.ancestorsIds,o=e.descendantsIds,i=[a.get("id")].concat(n.toJS(),o.toJS());a.get("hidden")?t.props.dispatch(Object(M.l)(i)):t.props.dispatch(Object(M.j)(i))})),Object(r.a)(Object(c.a)(t),"handleBlockClick",(function(e){var a=t.props.dispatch,n=e.get("account");a(Object(z.f)(n))})),Object(r.a)(Object(c.a)(t),"handleReport",(function(e){t.props.dispatch(Object(P.k)(e.get("account"),e))})),Object(r.a)(Object(c.a)(t),"handleEmbed",(function(e){t.props.dispatch(Object(Y.d)("EMBED",{url:e.get("url")}))})),Object(r.a)(Object(c.a)(t),"handleUnmuteClick",(function(e){t.props.dispatch(Object(A.L)(e.get("id")))})),Object(r.a)(Object(c.a)(t),"handleUnblockClick",(function(e){t.props.dispatch(Object(A.J)(e.get("id")))})),Object(r.a)(Object(c.a)(t),"handleBlockDomainClick",(function(e){t.props.dispatch(Object(Y.d)("CONFIRM",{message:Object(s.a)(I.b,{id:"confirmations.domain_block.message",defaultMessage:"Are you really, really sure you want to block the entire {domain}? In most cases a few targeted blocks or mutes are sufficient and preferable. You will not see content from that domain in any public timelines or your notifications. Your followers from that domain will be removed.",values:{domain:Object(s.a)("strong",{},void 0,e)}}),confirm:t.props.intl.formatMessage(ee.blockDomainConfirm),onConfirm:function(){return t.props.dispatch(Object(E.e)(e))}}))})),Object(r.a)(Object(c.a)(t),"handleUnblockDomainClick",(function(e){t.props.dispatch(Object(E.h)(e))})),Object(r.a)(Object(c.a)(t),"handleHotkeyMoveUp",(function(){t.handleMoveUp(t.props.status.get("id"))})),Object(r.a)(Object(c.a)(t),"handleHotkeyMoveDown",(function(){t.handleMoveDown(t.props.status.get("id"))})),Object(r.a)(Object(c.a)(t),"handleHotkeyReply",(function(e){e.preventDefault(),t.handleReplyClick(t.props.status)})),Object(r.a)(Object(c.a)(t),"handleHotkeyFavourite",(function(){t.handleFavouriteClick(t.props.status)})),Object(r.a)(Object(c.a)(t),"handleHotkeyBoost",(function(){t.handleReblogClick(t.props.status)})),Object(r.a)(Object(c.a)(t),"handleHotkeyMention",(function(e){e.preventDefault(),t.handleMentionClick(t.props.status.get("account"))})),Object(r.a)(Object(c.a)(t),"handleHotkeyOpenProfile",(function(){t.context.router.history.push("/accounts/"+t.props.status.getIn(["account","id"]))})),Object(r.a)(Object(c.a)(t),"handleHotkeyToggleHidden",(function(){t.handleToggleHidden(t.props.status)})),Object(r.a)(Object(c.a)(t),"handleHotkeyToggleSensitive",(function(){t.handleToggleMediaVisibility()})),Object(r.a)(Object(c.a)(t),"handleMoveUp",(function(e){var a=t.props,n=a.status,o=a.ancestorsIds,i=a.descendantsIds;if(e===n.get("id"))t._selectChild(o.size-1,!0);else{var s=o.indexOf(e);-1===s?(s=i.indexOf(e),t._selectChild(o.size+s,!0)):t._selectChild(s-1,!0)}})),Object(r.a)(Object(c.a)(t),"handleMoveDown",(function(e){var a=t.props,n=a.status,o=a.ancestorsIds,i=a.descendantsIds;if(e===n.get("id"))t._selectChild(o.size+1,!1);else{var s=o.indexOf(e);-1===s?(s=i.indexOf(e),t._selectChild(o.size+s+2,!1)):t._selectChild(s+1,!1)}})),Object(r.a)(Object(c.a)(t),"setRef",(function(e){t.node=e})),Object(r.a)(Object(c.a)(t),"onFullScreenChange",(function(){t.setState({fullscreen:Object(Q.d)()})})),t}var n=a.prototype;return n.componentWillMount=function(){this.props.dispatch(Object(M.i)(this.props.params.statusId))},n.componentDidMount=function(){Object(Q.a)(this.onFullScreenChange)},n.componentWillReceiveProps=function(e){e.params.statusId!==this.props.params.statusId&&e.params.statusId&&(this._scrolledIntoView=!1,this.props.dispatch(Object(M.i)(e.params.statusId))),e.status&&e.status.get("id")!==this.state.loadedStatusId&&this.setState({showMedia:Object(Z.b)(e.status),loadedStatusId:e.status.get("id")})},n._selectChild=function(e,t){var a=this.node,n=a.querySelectorAll(".focusable")[e];n&&(t&&a.scrollTop>n.offsetTop?n.scrollIntoView(!0):!t&&a.scrollTop+a.clientHeight<n.offsetTop+n.offsetHeight&&n.scrollIntoView(!1),n.focus())},n.renderChildren=function(e){var t=this;return e.map((function(e){return Object(s.a)(W.a,{id:e,onMoveUp:t.handleMoveUp,onMoveDown:t.handleMoveDown,contextType:"thread"},e)}))},n.componentDidUpdate=function(){if(!this._scrolledIntoView){var e=this.props,t=e.status,a=e.ancestorsIds;if(t&&a&&a.size>0){var n=this.node.querySelectorAll(".focusable")[a.size-1];window.requestAnimationFrame((function(){n.scrollIntoView(!0)})),this._scrolledIntoView=!0}}},n.componentWillUnmount=function(){Object(Q.b)(this.onFullScreenChange)},n.render=function(){var e,t,a=this.props,n=a.shouldUpdateScroll,o=a.status,i=a.ancestorsIds,c=a.descendantsIds,l=a.intl,r=a.domain,d=a.multiColumn,u=this.state.fullscreen;if(null===o)return Object(s.a)(N.a,{},void 0,Object(s.a)(J.a,{multiColumn:d}),Object(s.a)(y.a,{}));i&&i.size>0&&(e=Object(s.a)("div",{},void 0,this.renderChildren(i))),c&&c.size>0&&(t=Object(s.a)("div",{},void 0,this.renderChildren(c)));var p={moveUp:this.handleHotkeyMoveUp,moveDown:this.handleHotkeyMoveDown,reply:this.handleHotkeyReply,favourite:this.handleHotkeyFavourite,boost:this.handleHotkeyBoost,mention:this.handleHotkeyMention,openProfile:this.handleHotkeyOpenProfile,toggleHidden:this.handleHotkeyToggleHidden,toggleSensitive:this.handleHotkeyToggleSensitive,openMedia:this.handleHotkeyOpenMedia};return(Object(s.a)(N.a,{bindToDocument:!d,label:l.formatMessage(ee.detailedStatus)},void 0,Object(s.a)(K.a,{showBackButton:!0,multiColumn:d,extraButton:Object(s.a)("button",{className:"column-header__button",title:l.formatMessage(o.get("hidden")?ee.revealAll:ee.hideAll),"aria-label":l.formatMessage(o.get("hidden")?ee.revealAll:ee.hideAll),onClick:this.handleToggleAll,"aria-pressed":o.get("hidden")?"false":"true"},void 0,Object(s.a)($.a,{id:o.get("hidden")?"eye-slash":"eye"}))}),Object(s.a)(L.a,{scrollKey:"thread",shouldUpdateScroll:n},void 0,h.a.createElement("div",{className:O()("scrollable",{fullscreen:u}),ref:this.setRef},e,Object(s.a)(G.HotKeys,{handlers:p},void 0,Object(s.a)("div",{className:O()("focusable","detailed-status__wrapper"),tabIndex:"0","aria-label":Object(Z.c)(l,o,!1)},void 0,Object(s.a)(_.a,{status:o,onOpenVideo:this.handleOpenVideo,onOpenMedia:this.handleOpenMedia,onToggleHidden:this.handleToggleHidden,domain:r,showMedia:this.state.showMedia,onToggleMediaVisibility:this.handleToggleMediaVisibility},"details-"+o.get("id")),Object(s.a)(B,{status:o,onReply:this.handleReplyClick,onFavourite:this.handleFavouriteClick,onReblog:this.handleReblogClick,onBookmark:this.handleBookmarkClick,onDelete:this.handleDeleteClick,onDirect:this.handleDirectClick,onMention:this.handleMentionClick,onMute:this.handleMuteClick,onUnmute:this.handleUnmuteClick,onMuteConversation:this.handleConversationMuteClick,onBlock:this.handleBlockClick,onUnblock:this.handleUnblockClick,onBlockDomain:this.handleBlockDomainClick,onUnblockDomain:this.handleUnblockDomainClick,onReport:this.handleReport,onPin:this.handlePin,onEmbed:this.handleEmbed},"action-bar-"+o.get("id")))),t))))},a}(X.a),Object(r.a)(H,"contextTypes",{router:m.a.object}),Object(r.a)(H,"propTypes",{params:m.a.object.isRequired,dispatch:m.a.func.isRequired,status:v.a.map,ancestorsIds:v.a.list,descendantsIds:v.a.list,intl:m.a.object.isRequired,askReplyConfirmation:m.a.bool,multiColumn:m.a.bool,domain:m.a.string.isRequired}),R=T))||R)||R)}}]);
//# sourceMappingURL=status.js.map
\ No newline at end of file