-webpackJsonp([15,25],{150:function(e,t,n){"use strict";n.d(t,"a",function(){return g});var i=n(2),a=n.n(i),o=n(1),s=n.n(o),r=n(3),l=n.n(r),c=n(4),d=n.n(c),u=n(0),p=n.n(u),h=n(10),f=n.n(h),g=function(e){function t(){var n,i,a;s()(this,t);for(var o=arguments.length,r=Array(o),c=0;c<o;c++)r[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(r))),i.handleClick=function(){i.props.onClick()},a=n,l()(i,a)}return d()(t,e),t.prototype.render=function(){var e=this.props,t=e.icon,n=e.type,i=e.active,o=e.columnHeaderId,s="";return t&&(s=a()("i",{className:"fa fa-fw fa-"+t+" column-header__icon"})),a()("h1",{className:f()("column-header",{active:i}),id:o||null},void 0,a()("button",{onClick:this.handleClick},void 0,s,n))},t}(p.a.PureComponent)},154:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"default",function(){return I});var i,a,o,s,r,l=n(2),c=n.n(l),d=n(1),u=n.n(d),p=n(3),h=n.n(p),f=n(4),g=n.n(f),v=n(0),m=n.n(v),b=n(8),y=(n.n(b),n(23)),_=n(6),k=n(35),C=n(10),M=n.n(C),O=n(12),j=Object(_.f)({toggle_visible:{id:"media_gallery.toggle_visible",defaultMessage:"Toggle visibility"}}),w=(a=i=function(e){function t(){var n,i,a;u()(this,t);for(var o=arguments.length,s=Array(o),r=0;r<o;r++)s[r]=arguments[r];return n=i=h()(this,e.call.apply(e,[this].concat(s))),i.handleMouseEnter=function(e){i.hoverToPlay()&&e.target.play()},i.handleMouseLeave=function(e){i.hoverToPlay()&&(e.target.pause(),e.target.currentTime=0)},i.handleClick=function(e){var t=i.props,n=t.index,a=t.onClick;0===e.button&&(e.preventDefault(),a(n)),e.stopPropagation()},a=n,h()(i,a)}return g()(t,e),t.prototype.hoverToPlay=function(){var e=this.props.attachment;return!O.a&&"gifv"===e.get("type")},t.prototype.render=function(){var e=this.props,t=e.attachment,n=e.index,i=e.size,a=e.standalone,o=50,s=100,r="auto",l="auto",d="auto",u="auto";1===i&&(o=100),(4===i||3===i&&n>0)&&(s=50),2===i?0===n?u="2px":l="2px":3===i?(0===n?u="2px":n>0&&(l="2px"),1===n?d="2px":n>1&&(r="2px")):4===i&&(0!==n&&2!==n||(u="2px"),1!==n&&3!==n||(l="2px"),n<2?d="2px":r="2px");var p="";if("image"===t.get("type")){var h=t.get("preview_url"),f=t.getIn(["meta","small","width"]),g=t.get("url"),v=t.getIn(["meta","original","width"]),m="number"==typeof v&&"number"==typeof f,b=m?g+" "+v+"w, "+h+" "+f+"w":null,y=m?"(min-width: 1025px) "+o/100*320+"px, "+o+"vw":null,_=t.getIn(["meta","focus","x"])||0,C=t.getIn(["meta","focus","y"])||0,j=100*(_/2+.5),w=100*(C/-2+.5);p=c()("a",{className:"media-gallery__item-thumbnail",href:t.get("remote_url")||g,onClick:this.handleClick,target:"_blank"},void 0,c()("img",{src:h,srcSet:b,sizes:y,alt:t.get("description"),title:t.get("description"),style:{objectPosition:j+"% "+w+"%"}}))}else if("gifv"===t.get("type")){var I=!Object(k.a)()&&O.a;p=c()("div",{className:M()("media-gallery__gifv",{autoplay:I})},void 0,c()("video",{className:"media-gallery__item-gifv-thumbnail","aria-label":t.get("description"),role:"application",src:t.get("url"),onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,autoPlay:I,loop:!0,muted:!0}),c()("span",{className:"media-gallery__gifv__label"},void 0,"GIF"))}return c()("div",{className:M()("media-gallery__item",{standalone:a}),style:{left:l,top:r,right:u,bottom:d,width:o+"%",height:s+"%"}},t.get("id"),p)},t}(m.a.PureComponent),i.defaultProps={standalone:!1,index:0,size:1},a),I=Object(_.g)((r=s=function(e){function t(){var n,i,a;u()(this,t);for(var o=arguments.length,s=Array(o),r=0;r<o;r++)s[r]=arguments[r];return n=i=h()(this,e.call.apply(e,[this].concat(s))),i.state={visible:!i.props.sensitive||O.f},i.handleOpen=function(){i.setState({visible:!i.state.visible})},i.handleClick=function(e){i.props.onOpenMedia(i.props.media,e)},i.handleRef=function(e){e&&i.setState({width:e.offsetWidth})},a=n,h()(i,a)}return g()(t,e),t.prototype.componentWillReceiveProps=function(e){Object(b.is)(e.media,this.props.media)||this.setState({visible:!e.sensitive})},t.prototype.isStandaloneEligible=function(){var e=this.props,t=e.media;return e.standalone&&1===t.size&&t.getIn([0,"meta","small","aspect"])},t.prototype.render=function(){var e=this,t=this.props,n=t.media,i=t.intl,a=t.sensitive,o=t.height,s=this.state,r=s.width,l=s.visible,d=void 0,u={};if(this.isStandaloneEligible()?r&&(u.height=r/this.props.media.getIn([0,"meta","small","aspect"])):u.height=r?r/(16/9):o,l){var p=n.take(4).size;d=this.isStandaloneEligible()?c()(w,{standalone:!0,onClick:this.handleClick,attachment:n.get(0)}):n.take(4).map(function(t,n){return c()(w,{onClick:e.handleClick,attachment:t,index:n,size:p},t.get("id"))})}else{var h=void 0;h=a?c()(_.b,{id:"status.sensitive_warning",defaultMessage:"Sensitive content"}):c()(_.b,{id:"status.media_hidden",defaultMessage:"Media hidden"}),d=m.a.createElement("button",{type:"button",className:"media-spoiler",onClick:this.handleOpen,style:u,ref:this.handleRef},c()("span",{className:"media-spoiler__warning"},void 0,h),c()("span",{className:"media-spoiler__trigger"},void 0,c()(_.b,{id:"status.sensitive_toggle",defaultMessage:"Click to view"})))}return m.a.createElement("div",{className:"media-gallery",style:u,ref:this.handleRef},c()("div",{className:M()("spoiler-button",{"spoiler-button--visible":l})},void 0,c()(y.a,{title:i.formatMessage(j.toggle_visible),icon:l?"eye":"eye-slash",overlay:!0,onClick:this.handleOpen})),d)},t}(m.a.PureComponent),s.defaultProps={standalone:!1},o=r))||o},283:function(e,t,n){"use strict";function i(e){return function(t){t({type:o,account:e}),t(Object(a.d)("MUTE"))}}t.a=i;var a=(n(14),n(22),n(15),n(26)),o="MUTES_INIT_MODAL"},284:function(e,t,n){"use strict";n.d(t,"a",function(){return b});var i=n(2),a=n.n(i),o=n(1),s=n.n(o),r=n(3),l=n.n(r),c=n(4),d=n.n(c),u=n(34),p=n.n(u),h=n(0),f=n.n(h),g=n(150),v=n(91),m=n(35),b=function(e){function t(){var n,i,a;s()(this,t);for(var o=arguments.length,r=Array(o),c=0;c<o;c++)r[c]=arguments[c];return n=i=l()(this,e.call.apply(e,[this].concat(r))),i.handleHeaderClick=function(){var e=i.node.querySelector(".scrollable");e&&(i._interruptScrollAnimation=Object(v.b)(e))},i.handleScroll=p()(function(){void 0!==i._interruptScrollAnimation&&i._interruptScrollAnimation()},200),i.setRef=function(e){i.node=e},a=n,l()(i,a)}return d()(t,e),t.prototype.scrollTop=function(){var e=this.node.querySelector(".scrollable");e&&(this._interruptScrollAnimation=Object(v.b)(e))},t.prototype.render=function(){var e=this.props,t=e.heading,n=e.icon,i=e.children,o=e.active,s=e.hideHeadingOnMobile,r=t&&(!s||s&&!Object(m.b)(window.innerWidth)),l=r&&t.replace(/ /g,"-"),c=r&&a()(g.a,{icon:n,active:o,type:t,onClick:this.handleHeaderClick,columnHeaderId:l});return f.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":l,className:"column",onScroll:this.handleScroll},c,i)},t}(f.a.PureComponent)},285:function(e,t,n){"use strict";function i(e,t){return function(n){n({type:o,account:e,status:t}),n(Object(a.d)("REPORT"))}}t.a=i;var a=(n(14),n(26)),o="REPORT_INIT"},286:function(e,t,n){"use strict";var i=n(2),a=n.n(i),o=n(0),s=(n.n(o),n(9)),r=n(152),l=n(67),c=n(18),d=n(68),u=n(22),p=n(92),h=n(283),f=n(285),g=n(26),v=n(6),m=n(12),b=(n(36),Object(v.f)({deleteConfirm:{id:"confirmations.delete.confirm",defaultMessage:"Delete"},deleteMessage:{id:"confirmations.delete.message",defaultMessage:"Are you sure you want to delete this status?"},blockConfirm:{id:"confirmations.block.confirm",defaultMessage:"Block"}})),y=function(){var e=Object(l.e)();return function(t,n){return{status:e(t,n.id)}}},_=function(e,t){var n=t.intl;return{onReply:function(t,n){e(Object(c.T)(t,n))},onModalReblog:function(t){e(Object(d.l)(t))},onReblog:function(t,n){t.get("reblogged")?e(Object(d.n)(t)):n.shiftKey||!m.b?this.onModalReblog(t):e(Object(g.d)("BOOST",{status:t,onReblog:this.onModalReblog}))},onFavourite:function(t){e(t.get("favourited")?Object(d.m)(t):Object(d.i)(t))},onDelete:function(t){e(m.e?Object(g.d)("CONFIRM",{message:n.formatMessage(b.deleteMessage),confirm:n.formatMessage(b.deleteConfirm),onConfirm:function(){return e(Object(p.f)(t.get("id")))}}):Object(p.f)(t.get("id")))},onDirect:function(t,n){e(Object(c.N)(t,n))},onMention:function(t,n){e(Object(c.R)(t,n))},onOpenMedia:function(t,n){e(Object(g.d)("MEDIA",{media:t,index:n}))},onOpenVideo:function(t,n){e(Object(g.d)("VIDEO",{media:t,time:n}))},onBlock:function(t){e(Object(g.d)("CONFIRM",{message:a()(v.b,{id:"confirmations.block.message",defaultMessage:"Are you sure you want to block {name}?",values:{name:a()("strong",{},void 0,"@",t.get("acct"))}}),confirm:n.formatMessage(b.blockConfirm),onConfirm:function(){return e(Object(u.q)(t.get("id")))}}))},onReport:function(t){e(Object(f.a)(t.get("account"),t))},onMute:function(t){e(Object(h.a)(t))},onMuteConversation:function(t){e(t.get("muted")?Object(p.k)(t.get("id")):Object(p.i)(t.get("id")))},onToggleHidden:function(t){e(t.get("hidden")?Object(p.j)(t.get("id")):Object(p.h)(t.get("id")))}}};t.a=Object(v.g)(Object(s.connect)(y,_)(r.a))},287:function(e,t,n){"use strict";n.d(t,"a",function(){return b});var i,a,o=n(2),s=n.n(o),r=n(1),l=n.n(r),c=n(3),d=n.n(c),u=n(4),p=n.n(u),h=n(0),f=n.n(h),g=n(6),v=n(5),m=n.n(v),b=(a=i=function(e){function t(){var n,i,a;l()(this,t);for(var o=arguments.length,s=Array(o),r=0;r<o;r++)s[r]=arguments[r];return n=i=d()(this,e.call.apply(e,[this].concat(s))),i.handleClick=function(){window.history&&1===window.history.length?i.context.router.history.push("/"):i.context.router.history.goBack()},a=n,d()(i,a)}return p()(t,e),t.prototype.render=function(){return s()("button",{onClick:this.handleClick,className:"column-back-button"},void 0,s()("i",{className:"fa fa-fw fa-chevron-left column-back-button__icon"}),s()(g.b,{id:"column_back_button.label",defaultMessage:"Back"}))},t}(f.a.PureComponent),i.contextTypes={router:m.a.object},a)},333:function(e,t,n){"use strict";n.d(t,"a",function(){return w});var i,a,o=n(2),s=n.n(o),r=n(1),l=n.n(r),c=n(3),d=n.n(c),u=n(4),p=n.n(u),h=n(0),f=n.n(h),g=n(8),v=n.n(g),m=n(334),b=n.n(m),y=n(10),_=n.n(y),k=function(e){return e.split(".").map(function(e){return 0===e.indexOf("xn--")?b.a.decode(e.slice("xn--".length)):e}).join(".")},C=function(e){var t=document.createElement("a");return t.href=e,t.hostname},M=function(e,t){var n=e.indexOf(" ",t);return-1===n?e:e.substring(0,n)+(e.length>t?"…":"")},O=new DOMParser,j=function(e){var t=O.parseFromString(e,"text/html").documentElement,n=t.querySelector("iframe");return n?(-1!==n.src.indexOf("?")?n.src+="&":n.src+="?",n.src+="autoplay=1&auto_play=1",t.querySelector("body").innerHTML):e},w=(a=i=function(e){function t(){var n,i,a;l()(this,t);for(var o=arguments.length,s=Array(o),r=0;r<o;r++)s[r]=arguments[r];return n=i=d()(this,e.call.apply(e,[this].concat(s))),i.state={width:280,embedded:!1},i.handlePhotoClick=function(){var e=i.props,t=e.card;(0,e.onOpenMedia)(v.a.fromJS([{type:"image",url:t.get("embed_url"),description:t.get("title"),meta:{original:{width:t.get("width"),height:t.get("height")}}}]),0)},i.handleEmbedClick=function(){"photo"===i.props.card.get("type")?i.handlePhotoClick():i.setState({embedded:!0})},i.setRef=function(e){e&&i.setState({width:e.offsetWidth})},a=n,d()(i,a)}return p()(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.card!==e.card&&this.setState({embedded:!1})},t.prototype.renderVideo=function(){var e=this.props.card,t={__html:j(e.get("html"))},n=this.state.width,i=e.get("width")/e.get("height"),a=e.get("width")>e.get("height")?n/i:n*i;return f.a.createElement("div",{ref:this.setRef,className:"status-card__image status-card-video",dangerouslySetInnerHTML:t,style:{height:a}})},t.prototype.render=function(){var e=this.props,t=e.card,n=e.maxDescription,i=this.state,a=i.width,o=i.embedded;if(null===t)return null;var r=0===t.get("provider_name").length?k(C(t.get("url"))):t.get("provider_name"),l=t.get("width")>t.get("height")&&t.get("width")+100>=a||"link"!==t.get("type"),c=_()("status-card",{horizontal:l}),d="link"!==t.get("type"),u=d?s()("a",{className:"status-card__title",href:t.get("url"),title:t.get("title"),rel:"noopener",target:"_blank"},void 0,s()("strong",{},void 0,t.get("title"))):s()("strong",{className:"status-card__title",title:t.get("title")},void 0,t.get("title")),p=t.get("width")/t.get("height"),h=t.get("width")>t.get("height")?a/p:a*p,g=s()("div",{className:"status-card__content"},void 0,u,!l&&s()("p",{className:"status-card__description"},void 0,M(t.get("description")||"",n)),s()("span",{className:"status-card__host"},void 0,r)),v="",m=s()("div",{style:{backgroundImage:"url("+t.get("image")+")",width:l?a:null,height:l?h:null},className:"status-card__image-image"});if(d){if(o)v=this.renderVideo();else{var b="play";"photo"===t.get("type")&&(b="search-plus"),v=s()("div",{className:"status-card__image"},void 0,m,s()("div",{className:"status-card__actions"},void 0,s()("div",{},void 0,s()("button",{onClick:this.handleEmbedClick},void 0,s()("i",{className:"fa fa-"+b})),s()("a",{href:t.get("url"),target:"_blank",rel:"noopener"},void 0,s()("i",{className:"fa fa-external-link"})))))}return f.a.createElement("div",{className:c,ref:this.setRef},v,g)}return t.get("image")&&(v=s()("div",{className:"status-card__image"},void 0,m)),f.a.createElement("a",{href:t.get("url"),className:c,target:"_blank",rel:"noopener",ref:this.setRef},v,g)},t}(f.a.PureComponent),i.defaultProps={maxDescription:50},a)},334:function(e,t,n){(function(e,i){var a;!function(o){function s(e){throw new RangeError(D[e])}function r(e,t){for(var n=e.length,i=[];n--;)i[n]=t(e[n]);return i}function l(e,t){var n=e.split("@"),i="";return n.length>1&&(i=n[0]+"@",e=n[1]),e=e.replace(S,"."),i+r(e.split("."),t).join(".")}function c(e){for(var t,n,i=[],a=0,o=e.length;a<o;)t=e.charCodeAt(a++),t>=55296&&t<=56319&&a<o?(n=e.charCodeAt(a++),56320==(64512&n)?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),a--)):i.push(t);return i}function d(e){return r(e,function(e){var t="";return e>65535&&(e-=65536,t+=E(e>>>10&1023|55296),e=56320|1023&e),t+=E(e)}).join("")}function u(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:k}function p(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function h(e,t,n){var i=0;for(e=n?A(e/j):e>>1,e+=A(e/t);e>T*M>>1;i+=k)e=A(e/T);return A(i+(T+1)*e/(e+O))}function f(e){var t,n,i,a,o,r,l,c,p,f,g=[],v=e.length,m=0,b=I,y=w;for(n=e.lastIndexOf(x),n<0&&(n=0),i=0;i<n;++i)e.charCodeAt(i)>=128&&s("not-basic"),g.push(e.charCodeAt(i));for(a=n>0?n+1:0;a<v;){for(o=m,r=1,l=k;a>=v&&s("invalid-input"),c=u(e.charCodeAt(a++)),(c>=k||c>A((_-m)/r))&&s("overflow"),m+=c*r,p=l<=y?C:l>=y+M?M:l-y,!(c<p);l+=k)f=k-p,r>A(_/f)&&s("overflow"),r*=f;t=g.length+1,y=h(m-o,t,0==o),A(m/t)>_-b&&s("overflow"),b+=A(m/t),m%=t,g.splice(m++,0,b)}return d(g)}function g(e){var t,n,i,a,o,r,l,d,u,f,g,v,m,b,y,O=[];for(e=c(e),v=e.length,t=I,n=0,o=w,r=0;r<v;++r)(g=e[r])<128&&O.push(E(g));for(i=a=O.length,a&&O.push(x);i<v;){for(l=_,r=0;r<v;++r)(g=e[r])>=t&&g<l&&(l=g);for(m=i+1,l-t>A((_-n)/m)&&s("overflow"),n+=(l-t)*m,t=l,r=0;r<v;++r)if(g=e[r],g<t&&++n>_&&s("overflow"),g==t){for(d=n,u=k;f=u<=o?C:u>=o+M?M:u-o,!(d<f);u+=k)y=d-f,b=k-f,O.push(E(p(f+y%b,0))),d=A(y/b);O.push(E(p(d,0))),o=h(n,m,i==a),n=0,++i}++n,++t}return O.join("")}function v(e){return l(e,function(e){return N.test(e)?f(e.slice(4).toLowerCase()):e})}function m(e){return l(e,function(e){return R.test(e)?"xn--"+g(e):e})}var b=("object"==typeof t&&t&&t.nodeType,"object"==typeof e&&e&&e.nodeType,"object"==typeof i&&i);var y,_=2147483647,k=36,C=1,M=26,O=38,j=700,w=72,I=128,x="-",N=/^xn--/,R=/[^\x20-\x7E]/,S=/[\x2E\u3002\uFF0E\uFF61]/g,D={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=k-C,A=Math.floor,E=String.fromCharCode;y={version:"1.4.1",ucs2:{decode:c,encode:d},decode:f,encode:g,toASCII:m,toUnicode:v},void 0!==(a=function(){return y}.call(t,n,t,e))&&(e.exports=a)}()}).call(t,n(74)(e),n(46))},810:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"default",function(){return G});var i,a,o,s,r=n(2),l=n.n(r),c=n(1),d=n.n(c),u=n(3),p=n.n(u),h=n(4),f=n.n(h),g=n(0),v=n.n(g),m=n(9),b=n(5),y=n.n(b),_=n(10),k=n.n(_),C=n(13),M=n.n(C),O=n(92),j=n(843),w=n(962),I=n(964),x=n(284),N=n(68),R=n(18),S=n(22),D=n(283),T=n(285),A=n(67),E=n(151),P=n(287),H=n(69),F=n(286),B=n(26),z=n(6),V=n(11),q=n.n(V),U=n(156),W=(n.n(U),n(12)),L=n(153),J=Object(z.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"},revealAll:{id:"status.show_more_all",defaultMessage:"Show more for all"},hideAll:{id:"status.show_less_all",defaultMessage:"Show less for all"}}),K=function(){var e=Object(A.e)();return function(t,n){return{status:e(t,n.params.statusId),ancestorsIds:t.getIn(["contexts","ancestors",n.params.statusId]),descendantsIds:t.getIn(["contexts","descendants",n.params.statusId])}}},G=(i=Object(m.connect)(K),Object(z.g)(a=i((s=o=function(e){function t(){var n,i,a;d()(this,t);for(var o=arguments.length,s=Array(o),r=0;r<o;r++)s[r]=arguments[r];return n=i=p()(this,e.call.apply(e,[this].concat(s))),i.state={fullscreen:!1},i.handleFavouriteClick=function(e){e.get("favourited")?i.props.dispatch(Object(N.m)(e)):i.props.dispatch(Object(N.i)(e))},i.handleReplyClick=function(e){i.props.dispatch(Object(R.T)(e,i.context.router.history))},i.handleModalReblog=function(e){i.props.dispatch(Object(N.l)(e))},i.handleReblogClick=function(e,t){e.get("reblogged")?i.props.dispatch(Object(N.n)(e)):t.shiftKey||!W.b?i.handleModalReblog(e):i.props.dispatch(Object(B.d)("BOOST",{status:e,onReblog:i.handleModalReblog}))},i.handleDeleteClick=function(e){var t=i.props,n=t.dispatch,a=t.intl;n(W.e?Object(B.d)("CONFIRM",{message:a.formatMessage(J.deleteMessage),confirm:a.formatMessage(J.deleteConfirm),onConfirm:function(){return n(Object(O.f)(e.get("id")))}}):Object(O.f)(e.get("id")))},i.handleDirectClick=function(e,t){i.props.dispatch(Object(R.N)(e,t))},i.handleMentionClick=function(e,t){i.props.dispatch(Object(R.R)(e,t))},i.handleOpenMedia=function(e,t){i.props.dispatch(Object(B.d)("MEDIA",{media:e,index:t}))},i.handleOpenVideo=function(e,t){i.props.dispatch(Object(B.d)("VIDEO",{media:e,time:t}))},i.handleMuteClick=function(e){i.props.dispatch(Object(D.a)(e))},i.handleConversationMuteClick=function(e){e.get("muted")?i.props.dispatch(Object(O.k)(e.get("id"))):i.props.dispatch(Object(O.i)(e.get("id")))},i.handleToggleHidden=function(e){e.get("hidden")?i.props.dispatch(Object(O.j)(e.get("id"))):i.props.dispatch(Object(O.h)(e.get("id")))},i.handleToggleAll=function(){var e=i.props,t=e.status,n=e.ancestorsIds,a=e.descendantsIds,o=[t.get("id")].concat(n.toJS(),a.toJS());t.get("hidden")?i.props.dispatch(Object(O.j)(o)):i.props.dispatch(Object(O.h)(o))},i.handleBlockClick=function(e){var t=i.props,n=t.dispatch,a=t.intl;n(Object(B.d)("CONFIRM",{message:l()(z.b,{id:"confirmations.block.message",defaultMessage:"Are you sure you want to block {name}?",values:{name:l()("strong",{},void 0,"@",e.get("acct"))}}),confirm:a.formatMessage(J.blockConfirm),onConfirm:function(){return n(Object(S.q)(e.get("id")))}}))},i.handleReport=function(e){i.props.dispatch(Object(T.a)(e.get("account"),e))},i.handleHotkeyMoveUp=function(){i.handleMoveUp(i.props.status.get("id"))},i.handleHotkeyMoveDown=function(){i.handleMoveDown(i.props.status.get("id"))},i.handleHotkeyReply=function(e){e.preventDefault(),i.handleReplyClick(i.props.status)},i.handleHotkeyFavourite=function(){i.handleFavouriteClick(i.props.status)},i.handleHotkeyBoost=function(){i.handleReblogClick(i.props.status)},i.handleHotkeyMention=function(e){e.preventDefault(),i.handleMentionClick(i.props.status)},i.handleHotkeyOpenProfile=function(){i.context.router.history.push("/accounts/"+i.props.status.getIn(["account","id"]))},i.handleMoveUp=function(e){var t=i.props,n=t.status,a=t.ancestorsIds,o=t.descendantsIds;if(e===n.get("id"))i._selectChild(a.size-1);else{var s=a.indexOf(e);-1===s?(s=o.indexOf(e),i._selectChild(a.size+s)):i._selectChild(s-1)}},i.handleMoveDown=function(e){var t=i.props,n=t.status,a=t.ancestorsIds,o=t.descendantsIds;if(e===n.get("id"))i._selectChild(a.size+1);else{var s=a.indexOf(e);-1===s?(s=o.indexOf(e),i._selectChild(a.size+s+2)):i._selectChild(s+1)}},i.setRef=function(e){i.node=e},i.onFullScreenChange=function(){i.setState({fullscreen:Object(L.d)()})},a=n,p()(i,a)}return f()(t,e),t.prototype.componentWillMount=function(){this.props.dispatch(Object(O.g)(this.props.params.statusId))},t.prototype.componentDidMount=function(){Object(L.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(O.g)(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 l()(F.a,{id:e,onMoveUp:t.handleMoveUp,onMoveDown:t.handleMoveDown},e)})},t.prototype.componentDidUpdate=function(){if(!this._scrolledIntoView){var e=this.props,t=e.status,n=e.ancestorsIds;if(t&&n&&n.size>0){this.node.querySelectorAll(".focusable")[n.size-1].scrollIntoView(!0),this._scrolledIntoView=!0}}},t.prototype.componentWillUnmount=function(){Object(L.b)(this.onFullScreenChange)},t.prototype.render=function(){var e=void 0,t=void 0,n=this.props,i=n.status,a=n.ancestorsIds,o=n.descendantsIds,s=n.intl,r=this.state.fullscreen;if(null===i)return l()(x.a,{},void 0,l()(P.a,{}),l()(j.a,{}));a&&a.size>0&&(e=l()("div",{},void 0,this.renderChildren(a))),o&&o.size>0&&(t=l()("div",{},void 0,this.renderChildren(o)));var c={moveUp:this.handleHotkeyMoveUp,moveDown:this.handleHotkeyMoveDown,reply:this.handleHotkeyReply,favourite:this.handleHotkeyFavourite,boost:this.handleHotkeyBoost,mention:this.handleHotkeyMention,openProfile:this.handleHotkeyOpenProfile};return l()(x.a,{},void 0,l()(H.a,{showBackButton:!0,extraButton:l()("button",{className:"column-header__button",title:s.formatMessage(i.get("hidden")?J.revealAll:J.hideAll),"aria-label":s.formatMessage(i.get("hidden")?J.revealAll:J.hideAll),onClick:this.handleToggleAll,"aria-pressed":i.get("hidden")?"false":"true"},void 0,l()("i",{className:"fa fa-"+(i.get("hidden")?"eye-slash":"eye")}))}),l()(E.a,{scrollKey:"thread"},void 0,v.a.createElement("div",{className:k()("scrollable","detailed-status__wrapper",{fullscreen:r}),ref:this.setRef},e,l()(U.HotKeys,{handlers:c},void 0,l()("div",{className:"focusable",tabIndex:"0"},void 0,l()(w.a,{status:i,onOpenVideo:this.handleOpenVideo,onOpenMedia:this.handleOpenMedia,onToggleHidden:this.handleToggleHidden}),l()(I.a,{status:i,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}))),t)))},t}(q.a),o.contextTypes={router:y.a.object},o.propTypes={params:y.a.object.isRequired,dispatch:y.a.func.isRequired,status:M.a.map,ancestorsIds:M.a.list,descendantsIds:M.a.list,intl:y.a.object.isRequired},a=s))||a)||a)},843:function(e,t,n){"use strict";var i=n(2),a=n.n(i),o=n(0),s=(n.n(o),n(6)),r=function(){return a()("div",{className:"regeneration-indicator missing-indicator"},void 0,a()("div",{},void 0,a()("div",{className:"regeneration-indicator__label"},void 0,a()(s.b,{id:"missing_indicator.label",tagName:"strong",defaultMessage:"Not found"}),a()(s.b,{id:"missing_indicator.sublabel",defaultMessage:"This resource could not be found"}))))};t.a=r},962:function(e,t,n){"use strict";n.d(t,"a",function(){return N});var i,a,o=n(2),s=n.n(o),r=n(1),l=n.n(r),c=n(3),d=n.n(c),u=n(4),p=n.n(u),h=n(0),f=(n.n(h),n(5)),g=n.n(f),v=n(13),m=n.n(v),b=n(57),y=n(56),_=n(105),k=n(154),C=n(338),M=n(45),O=n(6),j=n(963),w=n(11),I=n.n(w),x=n(75),N=(a=i=function(e){function t(){var n,i,a;l()(this,t);for(var o=arguments.length,s=Array(o),r=0;r<o;r++)s[r]=arguments[r];return n=i=d()(this,e.call.apply(e,[this].concat(s))),i.handleAccountClick=function(e){0===e.button&&(e.preventDefault(),i.context.router.history.push("/accounts/"+i.props.status.getIn(["account","id"]))),e.stopPropagation()},i.handleOpenVideo=function(e){i.props.onOpenVideo(i.props.status.getIn(["media_attachments",0]),e)},i.handleExpandedToggle=function(){i.props.onToggleHidden(i.props.status)},a=n,d()(i,a)}return p()(t,e),t.prototype.render=function(){var e=this.props.status.get("reblog")?this.props.status.get("reblog"):this.props.status,t="",n="",i="",a="retweet";if(e.get("media_attachments").size>0)if(e.get("media_attachments").some(function(e){return"unknown"===e.get("type")}))t=s()(C.a,{media:e.get("media_attachments")});else if("video"===e.getIn(["media_attachments",0,"type"])){var o=e.getIn(["media_attachments",0]);t=s()(x.default,{preview:o.get("preview_url"),src:o.get("url"),width:300,height:150,inline:!0,onOpenVideo:this.handleOpenVideo,sensitive:e.get("sensitive")})}else t=s()(k.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=s()(j.a,{onOpenMedia:this.props.onOpenMedia,statusId:e.get("id")}));return e.get("application")&&(n=s()("span",{},void 0," · ",s()("a",{className:"detailed-status__application",href:e.getIn(["application","website"]),target:"_blank",rel:"noopener"},void 0,e.getIn(["application","name"])))),"direct"===e.get("visibility")?a="envelope":"private"===e.get("visibility")&&(a="lock"),i="private"===e.get("visibility")?s()("i",{className:"fa fa-"+a}):s()(M.b,{to:"/statuses/"+e.get("id")+"/reblogs",className:"detailed-status__link"},void 0,s()("i",{className:"fa fa-"+a}),s()("span",{className:"detailed-status__reblogs"},void 0,s()(O.c,{value:e.get("reblogs_count")}))),s()("div",{className:"detailed-status"},void 0,s()("a",{href:e.getIn(["account","url"]),onClick:this.handleAccountClick,className:"detailed-status__display-name"},void 0,s()("div",{className:"detailed-status__display-avatar"},void 0,s()(b.a,{account:e.get("account"),size:48})),s()(y.a,{account:e.get("account")})),s()(_.a,{status:e,expanded:!e.get("hidden"),onExpandedToggle:this.handleExpandedToggle}),t,s()("div",{className:"detailed-status__meta"},void 0,s()("a",{className:"detailed-status__datetime",href:e.get("url"),target:"_blank",rel:"noopener"},void 0,s()(O.a,{value:new Date(e.get("created_at")),hour12:!1,year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit"})),n," · ",i," · ",s()(M.b,{to:"/statuses/"+e.get("id")+"/favourites",className:"detailed-status__link"},void 0,s()("i",{className:"fa fa-star"}),s()("span",{className:"detailed-status__favorites"},void 0,s()(O.c,{value:e.get("favourites_count")})))))},t}(I.a),i.contextTypes={router:g.a.object},i.propTypes={status:m.a.map.isRequired,onOpenMedia:g.a.func.isRequired,onOpenVideo:g.a.func.isRequired,onToggleHidden:g.a.func.isRequired},a)},963:function(e,t,n){"use strict";var i=n(9),a=n(333),o=function(e,t){var n=t.statusId;return{card:e.getIn(["cards",n],null)}};t.a=Object(i.connect)(o)(a.a)},964:function(e,t,n){"use strict";n.d(t,"a",function(){return M});var i,a,o,s=n(2),r=n.n(s),l=n(1),c=n.n(l),d=n(3),u=n.n(d),p=n(4),h=n.n(p),f=n(0),g=n.n(f),v=n(5),m=n.n(v),b=n(23),y=n(300),_=n(6),k=n(12),C=Object(_.f)({delete:{id:"status.delete",defaultMessage:"Delete"},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"},cannot_reblog:{id:"status.cannot_reblog",defaultMessage:"This post cannot be boosted"},favourite:{id:"status.favourite",defaultMessage:"Favourite"},muteConversation:{id:"status.mute_conversation",defaultMessage:"Mute conversation"},unmuteConversation:{id:"status.unmute_conversation",defaultMessage:"Unmute conversation"},block:{id:"status.block",defaultMessage:"Block @{name}"},share:{id:"status.share",defaultMessage:"Share"}}),M=Object(_.g)((o=a=function(e){function t(){var n,i,a;c()(this,t);for(var o=arguments.length,s=Array(o),r=0;r<o;r++)s[r]=arguments[r];return n=i=u()(this,e.call.apply(e,[this].concat(s))),i.handleReplyClick=function(){i.props.onReply(i.props.status)},i.handleReblogClick=function(e){i.props.onReblog(i.props.status,e)},i.handleFavouriteClick=function(){i.props.onFavourite(i.props.status)},i.handleDeleteClick=function(){i.props.onDelete(i.props.status)},i.handleDirectClick=function(){i.props.onDirect(i.props.status.get("account"),i.context.router.history)},i.handleMentionClick=function(){i.props.onMention(i.props.status.get("account"),i.context.router.history)},i.handleConversationMuteClick=function(){i.props.onMuteConversation(i.props.status)},i.handleBlockClick=function(){i.props.onBlock(i.props.status.get("account"))},i.handlePinClick=function(){i.props.onPin(i.props.status)},i.handleShare=function(){navigator.share({text:i.props.status.get("search_index"),url:i.props.status.get("url")})},a=n,u()(i,a)}return h()(t,e),t.prototype.render=function(){var e=this.props,t=e.status,n=e.intl,i=(["public","unlisted"].includes(t.get("visibility")),t.get("muted")),a=[];k.g===t.getIn(["account","id"])?(a.push({text:n.formatMessage(i?C.unmuteConversation:C.muteConversation),action:this.handleConversationMuteClick}),a.push(null),a.push({text:n.formatMessage(C.delete),action:this.handleDeleteClick})):(a.push({text:n.formatMessage(C.mention,{name:t.getIn(["account","username"])}),action:this.handleMentionClick}),a.push({text:n.formatMessage(C.direct,{name:t.getIn(["account","username"])}),action:this.handleDirectClick}),a.push({text:n.formatMessage(C.block,{name:t.getIn(["account","username"])}),action:this.handleBlockClick}));var o="share"in navigator&&"public"===t.get("visibility")&&r()("div",{className:"detailed-status__button"},void 0,r()(b.a,{title:n.formatMessage(C.share),icon:"share-alt",onClick:this.handleShare})),s="retweet";"direct"===t.get("visibility")?s="envelope":"private"===t.get("visibility")&&(s="lock");var l="direct"===t.get("visibility")||"private"===t.get("visibility");return r()("div",{className:"detailed-status__action-bar"},void 0,r()("div",{className:"detailed-status__button"},void 0,r()(b.a,{title:n.formatMessage(C.reply),icon:null===t.get("in_reply_to_id",null)?"reply":"reply-all",onClick:this.handleReplyClick})),r()("div",{className:"detailed-status__button"},void 0,r()(b.a,{disabled:l,active:t.get("reblogged"),title:l?n.formatMessage(C.cannot_reblog):n.formatMessage(C.reblog),icon:s,onClick:this.handleReblogClick})),r()("div",{className:"detailed-status__button"},void 0,r()(b.a,{animate:!0,active:t.get("favourited"),title:n.formatMessage(C.favourite),icon:"star",onClick:this.handleFavouriteClick,activeStyle:{color:"#d8a070"}})),o,r()("div",{className:"detailed-status__action-bar-dropdown"},void 0,r()(y.a,{size:18,icon:"ellipsis-h",items:a,direction:"left",title:"More"})))},t}(g.a.PureComponent),a.contextTypes={router:m.a.object},i=o))||i}});
+(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{760:function(e,t,a){"use strict";a.d(t,"a",(function(){return I}));var n=a(0),i=a(2),o=a(7),s=a(1),c=a(3),l=a.n(c),r=a(5),d=a.n(r),u=a(14),p=a.n(u),h=a(111),b=a(118),g=a(229),f=a(533),m=a(316),O=a(6),j=a(534),v=a(18),k=a(84),M=a(224),y=a(752),_=a(12),C=a.n(_),w=a(26),I=function(e){function t(){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(s.a)(Object(i.a)(t),"state",{height:null}),Object(s.a)(Object(i.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(i.a)(t),"handleOpenVideo",(function(e,a){t.props.onOpenVideo(e,a)})),Object(s.a)(Object(i.a)(t),"handleExpandedToggle",(function(){t.props.onToggleHidden(t.props.status)})),Object(s.a)(Object(i.a)(t),"setRef",(function(e){t.node=e,t._measureHeight()})),Object(s.a)(Object(i.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}Object(o.a)(t,e);var a=t.prototype;return a._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())},a.componentDidUpdate=function(e,t){this._measureHeight(t.height!==this.state.height)},a.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 i="",o="",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]);i=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]);i=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 i=Object(n.a)(f.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&&(i=Object(n.a)(j.a,{onOpenMedia:this.props.onOpenMedia,card:e.get("card",null)}));return e.get("application")&&(o=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"===e.get("visibility")?Object(n.a)(w.a,{id:c}):this.context.router?Object(n.a)(m.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)(O.c,{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)(O.c,{value:e.get("reblogs_count")}))),r=this.context.router?Object(n.a)(m.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)(O.c,{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)(O.c,{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}),i,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"})),o," · ",s," · ",r)))},t}(v.a);Object(s.a)(I,"contextTypes",{router:d.a.object}),Object(s.a)(I,"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})},836:function(e,t,a){"use strict";a.r(t);var n,i,o,s,c,l,r,d=a(0),u=a(2),p=a(7),h=a(1),b=a(4),g=a.n(b),f=a(3),m=a.n(f),O=a(13),j=a(5),v=a.n(j),k=a(12),M=a.n(k),y=a(14),_=a.n(y),C=a(54),w=a(85),I=a(1030),x=a(760),D=a(50),R=a(710),H=a(6),T=a(20),U=Object(H.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"},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:"Hide everything from {domain}"},unblockDomain:{id:"account.unblock_domain",defaultMessage:"Unhide {domain}"},unmute:{id:"account.unmute",defaultMessage:"Unmute @{name}"},unblock:{id:"account.unblock",defaultMessage:"Unblock @{name}"}}),N=Object(O.connect)((function(e,t){var a=t.status;return{relationship:e.getIn(["relationships",a.getIn(["account","id"])])}}))(n=Object(H.g)((o=i=function(e){function t(){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(h.a)(Object(u.a)(t),"handleReplyClick",(function(){t.props.onReply(t.props.status)})),Object(h.a)(Object(u.a)(t),"handleReblogClick",(function(e){t.props.onReblog(t.props.status,e)})),Object(h.a)(Object(u.a)(t),"handleFavouriteClick",(function(){t.props.onFavourite(t.props.status)})),Object(h.a)(Object(u.a)(t),"handleBookmarkClick",(function(e){t.props.onBookmark(t.props.status,e)})),Object(h.a)(Object(u.a)(t),"handleDeleteClick",(function(){t.props.onDelete(t.props.status,t.context.router.history)})),Object(h.a)(Object(u.a)(t),"handleRedraftClick",(function(){t.props.onDelete(t.props.status,t.context.router.history,!0)})),Object(h.a)(Object(u.a)(t),"handleDirectClick",(function(){t.props.onDirect(t.props.status.get("account"),t.context.router.history)})),Object(h.a)(Object(u.a)(t),"handleMentionClick",(function(){t.props.onMention(t.props.status.get("account"),t.context.router.history)})),Object(h.a)(Object(u.a)(t),"handleMuteClick",(function(){var e=t.props,a=e.status,n=e.relationship,i=e.onMute,o=e.onUnmute,s=a.get("account");n&&n.get("muting")?o(s):i(s)})),Object(h.a)(Object(u.a)(t),"handleBlockClick",(function(){var e=t.props,a=e.status,n=e.relationship,i=e.onBlock,o=e.onUnblock,s=a.get("account");n&&n.get("blocking")?o(s):i(a)})),Object(h.a)(Object(u.a)(t),"handleBlockDomain",(function(){var e=t.props,a=e.status;(0,e.onBlockDomain)(a.get("account").get("acct").split("@")[1])})),Object(h.a)(Object(u.a)(t),"handleUnblockDomain",(function(){var e=t.props,a=e.status;(0,e.onUnblockDomain)(a.get("account").get("acct").split("@")[1])})),Object(h.a)(Object(u.a)(t),"handleConversationMuteClick",(function(){t.props.onMuteConversation(t.props.status)})),Object(h.a)(Object(u.a)(t),"handleReport",(function(){t.props.onReport(t.props.status)})),Object(h.a)(Object(u.a)(t),"handlePinClick",(function(){t.props.onPin(t.props.status)})),Object(h.a)(Object(u.a)(t),"handleShare",(function(){navigator.share({text:t.props.status.get("search_index"),url:t.props.status.get("url")})})),Object(h.a)(Object(u.a)(t),"handleEmbed",(function(){t.props.onEmbed(t.props.status)})),Object(h.a)(Object(u.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 Object(p.a)(t,e),t.prototype.render=function(){var e=this.props,t=e.status,a=e.relationship,n=e.intl,i=["public","unlisted"].includes(t.get("visibility")),o=t.get("muted"),s=t.get("account"),c=[];if(i&&(c.push({text:n.formatMessage(U.copy),action:this.handleCopy}),c.push({text:n.formatMessage(U.embed),action:this.handleEmbed}),c.push(null)),T.n===t.getIn(["account","id"]))i?c.push({text:n.formatMessage(t.get("pinned")?U.unpin:U.pin),action:this.handlePinClick}):"private"===t.get("visibility")&&c.push({text:n.formatMessage(t.get("reblogged")?U.cancel_reblog_private:U.reblog_private),action:this.handleReblogClick}),c.push(null),c.push({text:n.formatMessage(o?U.unmuteConversation:U.muteConversation),action:this.handleConversationMuteClick}),c.push(null),c.push({text:n.formatMessage(U.delete),action:this.handleDeleteClick}),c.push({text:n.formatMessage(U.redraft),action:this.handleRedraftClick});else{if(c.push({text:n.formatMessage(U.mention,{name:t.getIn(["account","username"])}),action:this.handleMentionClick}),c.push({text:n.formatMessage(U.direct,{name:t.getIn(["account","username"])}),action:this.handleDirectClick}),c.push(null),a&&a.get("muting")?c.push({text:n.formatMessage(U.unmute,{name:s.get("username")}),action:this.handleMuteClick}):c.push({text:n.formatMessage(U.mute,{name:s.get("username")}),action:this.handleMuteClick}),a&&a.get("blocking")?c.push({text:n.formatMessage(U.unblock,{name:s.get("username")}),action:this.handleBlockClick}):c.push({text:n.formatMessage(U.block,{name:s.get("username")}),action:this.handleBlockClick}),c.push({text:n.formatMessage(U.report,{name:t.getIn(["account","username"])}),action:this.handleReport}),s.get("acct")!==s.get("username")){var l=s.get("acct").split("@")[1];c.push(null),a&&a.get("domain_blocking")?c.push({text:n.formatMessage(U.unblockDomain,{domain:l}),action:this.handleUnblockDomain}):c.push({text:n.formatMessage(U.blockDomain,{domain:l}),action:this.handleBlockDomain})}T.k&&(c.push(null),c.push({text:n.formatMessage(U.admin_account,{name:t.getIn(["account","username"])}),href:"/admin/accounts/"+t.getIn(["account","id"])}),c.push({text:n.formatMessage(U.admin_status),href:"/admin/accounts/"+t.getIn(["account","id"])+"/statuses/"+t.get("id")}))}var r,u="share"in navigator&&"public"===t.get("visibility")&&Object(d.a)("div",{className:"detailed-status__button"},void 0,Object(d.a)(D.a,{title:n.formatMessage(U.share),icon:"share-alt",onClick:this.handleShare}));r=null===t.get("in_reply_to_id",null)?"reply":"reply-all";var p="retweet";"direct"===t.get("visibility")?p="envelope":"private"===t.get("visibility")&&(p="lock");var h="direct"===t.get("visibility")||"private"===t.get("visibility");return Object(d.a)("div",{className:"detailed-status__action-bar"},void 0,Object(d.a)("div",{className:"detailed-status__button"},void 0,Object(d.a)(D.a,{title:n.formatMessage(U.reply),icon:t.get("in_reply_to_account_id")===t.getIn(["account","id"])?"reply":r,onClick:this.handleReplyClick})),Object(d.a)("div",{className:"detailed-status__button"},void 0,Object(d.a)(D.a,{disabled:h,active:t.get("reblogged"),title:h?n.formatMessage(U.cannot_reblog):n.formatMessage(U.reblog),icon:p,onClick:this.handleReblogClick})),Object(d.a)("div",{className:"detailed-status__button"},void 0,Object(d.a)(D.a,{className:"star-icon",animate:!0,active:t.get("favourited"),title:n.formatMessage(U.favourite),icon:"star",onClick:this.handleFavouriteClick})),u,Object(d.a)("div",{className:"detailed-status__button"},void 0,Object(d.a)(D.a,{className:"bookmark-icon",active:t.get("bookmarked"),title:n.formatMessage(U.bookmark),icon:"bookmark",onClick:this.handleBookmarkClick})),Object(d.a)("div",{className:"detailed-status__action-bar-dropdown"},void 0,Object(d.a)(R.a,{size:18,icon:"ellipsis-h",status:t,items:c,direction:"left",title:"More"})))},t}(m.a.PureComponent),Object(h.a)(i,"contextTypes",{router:v.a.object}),n=o))||n)||n,B=a(731),S=a(45),V=a(21),A=a(25),E=a(80),F=a(208),z=a(226),P=a(100),q=a(206),L=a(467),J=a(738),K=a(733),W=a(1053),Y=a(47),X=a(18),G=a(295),Q=a(258),Z=a(845),$=a(26);a.d(t,"default",(function(){return te}));var ee=Object(H.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=(s=Object(O.connect)((function(){var e=Object(q.f)(),t=Object(C.a)([function(e,t){return t.id},function(e){return e.getIn(["contexts","inReplyTos"])}],(function(e,t){var a=g.a.List();return a=a.withMutations((function(a){for(var n=e;n;)a.unshift(n),n=t.get(n)}))})),a=Object(C.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=[],i=[e];i.length>0;){var o=i.shift(),s=t.get(o);e!==o&&n.push(o),s&&s.reverse().forEach((function(e){i.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)})),g.a.List(n)}));return function(n,i){var o=e(n,{id:i.params.statusId}),s=g.a.List(),c=g.a.List();return o&&(s=t(n,{id:o.get("in_reply_to_id")}),c=a(n,{id:o.get("id")})),{status:o,ancestorsIds:s,descendantsIds:c,askReplyConfirmation:0!==n.getIn(["compose","text"]).trim().length,domain:n.getIn(["meta","domain"])}}})),Object(H.g)(c=s((r=l=function(e){function t(){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(h.a)(Object(u.a)(t),"state",{fullscreen:!1,showMedia:Object(Z.b)(t.props.status),loadedStatusId:void 0}),Object(h.a)(Object(u.a)(t),"handleToggleMediaVisibility",(function(){t.setState({showMedia:!t.state.showMedia})})),Object(h.a)(Object(u.a)(t),"handleFavouriteClick",(function(e){e.get("favourited")?t.props.dispatch(Object(S.v)(e)):t.props.dispatch(Object(S.p)(e))})),Object(h.a)(Object(u.a)(t),"handlePin",(function(e){e.get("pinned")?t.props.dispatch(Object(S.w)(e)):t.props.dispatch(Object(S.s)(e))})),Object(h.a)(Object(u.a)(t),"handleReplyClick",(function(e){var a=t.props,n=a.askReplyConfirmation,i=a.dispatch,o=a.intl;i(n?Object(Y.d)("CONFIRM",{message:o.formatMessage(ee.replyMessage),confirm:o.formatMessage(ee.replyConfirm),onConfirm:function(){return i(Object(V.gb)(e,t.context.router.history))}}):Object(V.gb)(e,t.context.router.history))})),Object(h.a)(Object(u.a)(t),"handleModalReblog",(function(e){t.props.dispatch(Object(S.t)(e))})),Object(h.a)(Object(u.a)(t),"handleReblogClick",(function(e,a){e.get("reblogged")?t.props.dispatch(Object(S.x)(e)):a&&a.shiftKey||!T.b?t.handleModalReblog(e):t.props.dispatch(Object(Y.d)("BOOST",{status:e,onReblog:t.handleModalReblog}))})),Object(h.a)(Object(u.a)(t),"handleBookmarkClick",(function(e){e.get("bookmarked")?t.props.dispatch(Object(S.u)(e)):t.props.dispatch(Object(S.o)(e))})),Object(h.a)(Object(u.a)(t),"handleDeleteClick",(function(e,a,n){void 0===n&&(n=!1);var i=t.props,o=i.dispatch,s=i.intl;T.e?o(Object(Y.d)("CONFIRM",{message:s.formatMessage(n?ee.redraftMessage:ee.deleteMessage),confirm:s.formatMessage(n?ee.redraftConfirm:ee.deleteConfirm),onConfirm:function(){return o(Object(w.h)(e.get("id"),a,n))}})):o(Object(w.h)(e.get("id"),a,n))})),Object(h.a)(Object(u.a)(t),"handleDirectClick",(function(e,a){t.props.dispatch(Object(V.X)(e,a))})),Object(h.a)(Object(u.a)(t),"handleMentionClick",(function(e,a){t.props.dispatch(Object(V.cb)(e,a))})),Object(h.a)(Object(u.a)(t),"handleOpenMedia",(function(e,a){t.props.dispatch(Object(Y.d)("MEDIA",{media:e,index:a}))})),Object(h.a)(Object(u.a)(t),"handleOpenVideo",(function(e,a){t.props.dispatch(Object(Y.d)("VIDEO",{media:e,time:a}))})),Object(h.a)(Object(u.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(h.a)(Object(u.a)(t),"handleMuteClick",(function(e){t.props.dispatch(Object(F.g)(e))})),Object(h.a)(Object(u.a)(t),"handleConversationMuteClick",(function(e){e.get("muted")?t.props.dispatch(Object(w.n)(e.get("id"))):t.props.dispatch(Object(w.k)(e.get("id")))})),Object(h.a)(Object(u.a)(t),"handleToggleHidden",(function(e){e.get("hidden")?t.props.dispatch(Object(w.l)(e.get("id"))):t.props.dispatch(Object(w.j)(e.get("id")))})),Object(h.a)(Object(u.a)(t),"handleToggleAll",(function(){var e=t.props,a=e.status,n=e.ancestorsIds,i=e.descendantsIds,o=[a.get("id")].concat(n.toJS(),i.toJS());a.get("hidden")?t.props.dispatch(Object(w.l)(o)):t.props.dispatch(Object(w.j)(o))})),Object(h.a)(Object(u.a)(t),"handleBlockClick",(function(e){var a=t.props.dispatch,n=e.get("account");a(Object(z.f)(n))})),Object(h.a)(Object(u.a)(t),"handleReport",(function(e){t.props.dispatch(Object(P.k)(e.get("account"),e))})),Object(h.a)(Object(u.a)(t),"handleEmbed",(function(e){t.props.dispatch(Object(Y.d)("EMBED",{url:e.get("url")}))})),Object(h.a)(Object(u.a)(t),"handleUnmuteClick",(function(e){t.props.dispatch(Object(A.L)(e.get("id")))})),Object(h.a)(Object(u.a)(t),"handleUnblockClick",(function(e){t.props.dispatch(Object(A.J)(e.get("id")))})),Object(h.a)(Object(u.a)(t),"handleBlockDomainClick",(function(e){t.props.dispatch(Object(Y.d)("CONFIRM",{message:Object(d.a)(H.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(d.a)("strong",{},void 0,e)}}),confirm:t.props.intl.formatMessage(ee.blockDomainConfirm),onConfirm:function(){return t.props.dispatch(Object(E.e)(e))}}))})),Object(h.a)(Object(u.a)(t),"handleUnblockDomainClick",(function(e){t.props.dispatch(Object(E.h)(e))})),Object(h.a)(Object(u.a)(t),"handleHotkeyMoveUp",(function(){t.handleMoveUp(t.props.status.get("id"))})),Object(h.a)(Object(u.a)(t),"handleHotkeyMoveDown",(function(){t.handleMoveDown(t.props.status.get("id"))})),Object(h.a)(Object(u.a)(t),"handleHotkeyReply",(function(e){e.preventDefault(),t.handleReplyClick(t.props.status)})),Object(h.a)(Object(u.a)(t),"handleHotkeyFavourite",(function(){t.handleFavouriteClick(t.props.status)})),Object(h.a)(Object(u.a)(t),"handleHotkeyBoost",(function(){t.handleReblogClick(t.props.status)})),Object(h.a)(Object(u.a)(t),"handleHotkeyMention",(function(e){e.preventDefault(),t.handleMentionClick(t.props.status.get("account"))})),Object(h.a)(Object(u.a)(t),"handleHotkeyOpenProfile",(function(){t.context.router.history.push("/accounts/"+t.props.status.getIn(["account","id"]))})),Object(h.a)(Object(u.a)(t),"handleHotkeyToggleHidden",(function(){t.handleToggleHidden(t.props.status)})),Object(h.a)(Object(u.a)(t),"handleHotkeyToggleSensitive",(function(){t.handleToggleMediaVisibility()})),Object(h.a)(Object(u.a)(t),"handleMoveUp",(function(e){var a=t.props,n=a.status,i=a.ancestorsIds,o=a.descendantsIds;if(e===n.get("id"))t._selectChild(i.size-1,!0);else{var s=i.indexOf(e);-1===s?(s=o.indexOf(e),t._selectChild(i.size+s,!0)):t._selectChild(s-1,!0)}})),Object(h.a)(Object(u.a)(t),"handleMoveDown",(function(e){var a=t.props,n=a.status,i=a.ancestorsIds,o=a.descendantsIds;if(e===n.get("id"))t._selectChild(i.size+1,!1);else{var s=i.indexOf(e);-1===s?(s=o.indexOf(e),t._selectChild(i.size+s+2,!1)):t._selectChild(s+1,!1)}})),Object(h.a)(Object(u.a)(t),"setRef",(function(e){t.node=e})),Object(h.a)(Object(u.a)(t),"onFullScreenChange",(function(){t.setState({fullscreen:Object(Q.d)()})})),t}Object(p.a)(t,e);var a=t.prototype;return a.componentWillMount=function(){this.props.dispatch(Object(w.i)(this.props.params.statusId))},a.componentDidMount=function(){Object(Q.a)(this.onFullScreenChange)},a.componentWillReceiveProps=function(e){e.params.statusId!==this.props.params.statusId&&e.params.statusId&&(this._scrolledIntoView=!1,this.props.dispatch(Object(w.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")})},a._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())},a.renderChildren=function(e){var t=this;return e.map((function(e){return Object(d.a)(W.a,{id:e,onMoveUp:t.handleMoveUp,onMoveDown:t.handleMoveDown,contextType:"thread"},e)}))},a.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}}},a.componentWillUnmount=function(){Object(Q.b)(this.onFullScreenChange)},a.render=function(){var e,t,a=this.props,n=a.shouldUpdateScroll,i=a.status,o=a.ancestorsIds,s=a.descendantsIds,c=a.intl,l=a.domain,r=a.multiColumn,u=this.state.fullscreen;if(null===i)return Object(d.a)(B.a,{},void 0,Object(d.a)(J.a,{multiColumn:r}),Object(d.a)(I.a,{}));o&&o.size>0&&(e=Object(d.a)("div",{},void 0,this.renderChildren(o))),s&&s.size>0&&(t=Object(d.a)("div",{},void 0,this.renderChildren(s)));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(d.a)(B.a,{bindToDocument:!r,label:c.formatMessage(ee.detailedStatus)},void 0,Object(d.a)(K.a,{showBackButton:!0,multiColumn:r,extraButton:Object(d.a)("button",{className:"column-header__button",title:c.formatMessage(i.get("hidden")?ee.revealAll:ee.hideAll),"aria-label":c.formatMessage(i.get("hidden")?ee.revealAll:ee.hideAll),onClick:this.handleToggleAll,"aria-pressed":i.get("hidden")?"false":"true"},void 0,Object(d.a)($.a,{id:i.get("hidden")?"eye-slash":"eye"}))}),Object(d.a)(L.a,{scrollKey:"thread",shouldUpdateScroll:n},void 0,m.a.createElement("div",{className:M()("scrollable",{fullscreen:u}),ref:this.setRef},e,Object(d.a)(G.HotKeys,{handlers:p},void 0,Object(d.a)("div",{className:M()("focusable","detailed-status__wrapper"),tabIndex:"0","aria-label":Object(Z.c)(c,i,!1)},void 0,Object(d.a)(x.a,{status:i,onOpenVideo:this.handleOpenVideo,onOpenMedia:this.handleOpenMedia,onToggleHidden:this.handleToggleHidden,domain:l,showMedia:this.state.showMedia,onToggleMediaVisibility:this.handleToggleMediaVisibility},"details-"+i.get("id")),Object(d.a)(N,{status:i,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-"+i.get("id")))),t)))},t}(X.a),Object(h.a)(l,"contextTypes",{router:v.a.object}),Object(h.a)(l,"propTypes",{params:v.a.object.isRequired,dispatch:v.a.func.isRequired,status:_.a.map,ancestorsIds:_.a.list,descendantsIds:_.a.list,intl:v.a.object.isRequired,askReplyConfirmation:v.a.bool,multiColumn:v.a.bool,domain:v.a.string.isRequired}),c=r))||c)||c)}}]);
//# sourceMappingURL=status.js.map
\ No newline at end of file