-webpackJsonp([16,26],{150:function(e,t,n){"use strict";n.d(t,"a",function(){return g});var a=n(2),i=n.n(a),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,a,i;s()(this,t);for(var o=arguments.length,r=Array(o),c=0;c<o;c++)r[c]=arguments[c];return n=a=l()(this,e.call.apply(e,[this].concat(r))),a.handleClick=function(){a.props.onClick()},i=n,l()(a,i)}return d()(t,e),t.prototype.render=function(){var e=this.props,t=e.icon,n=e.type,a=e.active,o=e.columnHeaderId,s="";return t&&(s=i()("i",{className:"fa fa-fw fa-"+t+" column-header__icon"})),i()("h1",{className:f()("column-header",{active:a}),id:o||null},void 0,i()("button",{onClick:this.handleClick},void 0,s,n))},t}(p.a.PureComponent)},155:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"default",function(){return I});var a,i,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),M=n(10),C=n.n(M),O=n(11),j=Object(_.f)({toggle_visible:{id:"media_gallery.toggle_visible",defaultMessage:"Toggle visibility"}}),w=(i=a=function(e){function t(){var n,a,i;u()(this,t);for(var o=arguments.length,s=Array(o),r=0;r<o;r++)s[r]=arguments[r];return n=a=h()(this,e.call.apply(e,[this].concat(s))),a.handleMouseEnter=function(e){a.hoverToPlay()&&e.target.play()},a.handleMouseLeave=function(e){a.hoverToPlay()&&(e.target.pause(),e.target.currentTime=0)},a.handleClick=function(e){var t=a.props,n=t.index,i=t.onClick;0===e.button&&(e.preventDefault(),i(n)),e.stopPropagation()},i=n,h()(a,i)}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,a=e.size,i=e.standalone,o=50,s=100,r="auto",l="auto",d="auto",u="auto";1===a&&(o=100),(4===a||3===a&&n>0)&&(s=50),2===a?0===n?u="2px":l="2px":3===a?(0===n?u="2px":n>0&&(l="2px"),1===n?d="2px":n>1&&(r="2px")):4===a&&(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,M=t.getIn(["meta","focus","y"])||0,j=100*(_/2+.5),w=100*(M/-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:C()("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:C()("media-gallery__item",{standalone:i}),style:{left:l,top:r,right:u,bottom:d,width:o+"%",height:s+"%"}},t.get("id"),p)},t}(m.a.PureComponent),a.defaultProps={standalone:!1,index:0,size:1},i),I=Object(_.g)((r=s=function(e){function t(){var n,a,i;u()(this,t);for(var o=arguments.length,s=Array(o),r=0;r<o;r++)s[r]=arguments[r];return n=a=h()(this,e.call.apply(e,[this].concat(s))),a.state={visible:!a.props.sensitive||O.f},a.handleOpen=function(){a.setState({visible:!a.state.visible})},a.handleClick=function(e){a.props.onOpenMedia(a.props.media,e)},a.handleRef=function(e){e&&a.setState({width:e.offsetWidth})},i=n,h()(a,i)}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,a=t.intl,i=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=i?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:C()("spoiler-button",{"spoiler-button--visible":l})},void 0,c()(y.a,{title:a.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 a(e){return function(t){t({type:o,account:e}),t(Object(i.d)("MUTE"))}}t.a=a;var i=(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 a=n(2),i=n.n(a),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(90),m=n(35),b=function(e){function t(){var n,a,i;s()(this,t);for(var o=arguments.length,r=Array(o),c=0;c<o;c++)r[c]=arguments[c];return n=a=l()(this,e.call.apply(e,[this].concat(r))),a.handleHeaderClick=function(){var e=a.node.querySelector(".scrollable");e&&(a._interruptScrollAnimation=Object(v.b)(e))},a.handleScroll=p()(function(){void 0!==a._interruptScrollAnimation&&a._interruptScrollAnimation()},200),a.setRef=function(e){a.node=e},i=n,l()(a,i)}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,a=e.children,o=e.active,s=e.hideHeadingOnMobile,r=t&&(!s||s&&!Object(m.b)(window.innerWidth)),l=r&&t.replace(/ /g,"-"),c=r&&i()(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,a)},t}(f.a.PureComponent)},285:function(e,t,n){"use strict";var a=n(2),i=n.n(a),o=n(0),s=(n.n(o),n(9)),r=n(153),l=n(66),c=n(18),d=n(67),u=n(22),p=n(91),h=n(283),f=n(151),g=n(26),v=n(6),m=n(11),b=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")))},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:i()(v.b,{id:"confirmations.block.message",defaultMessage:"Are you sure you want to block {name}?",values:{name:i()("strong",{},void 0,"@",t.get("acct"))}}),confirm:n.formatMessage(b.blockConfirm),onConfirm:function(){return e(Object(u.q)(t.get("id")))}}))},onReport:function(t){e(Object(f.k)(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))},286:function(e,t,n){"use strict";n.d(t,"a",function(){return b});var a,i,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=(i=a=function(e){function t(){var n,a,i;l()(this,t);for(var o=arguments.length,s=Array(o),r=0;r<o;r++)s[r]=arguments[r];return n=a=d()(this,e.call.apply(e,[this].concat(s))),a.handleClick=function(){window.history&&1===window.history.length?a.context.router.history.push("/"):a.context.router.history.goBack()},i=n,d()(a,i)}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),a.contextTypes={router:m.a.object},i)},332:function(e,t,n){"use strict";n.d(t,"a",function(){return w});var a,i,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(333),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(".")},M=function(e){var t=document.createElement("a");return t.href=e,t.hostname},C=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=(i=a=function(e){function t(){var n,a,i;l()(this,t);for(var o=arguments.length,s=Array(o),r=0;r<o;r++)s[r]=arguments[r];return n=a=d()(this,e.call.apply(e,[this].concat(s))),a.state={width:280,embedded:!1},a.handlePhotoClick=function(){var e=a.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)},a.handleEmbedClick=function(){"photo"===a.props.card.get("type")?a.handlePhotoClick():a.setState({embedded:!0})},a.setRef=function(e){e&&a.setState({width:e.offsetWidth})},i=n,d()(a,i)}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,a=e.get("width")/e.get("height"),i=e.get("width")>e.get("height")?n/a:n*a;return f.a.createElement("div",{ref:this.setRef,className:"status-card__image status-card-video",dangerouslySetInnerHTML:t,style:{height:i}})},t.prototype.render=function(){var e=this.props,t=e.card,n=e.maxDescription,a=this.state,i=a.width,o=a.embedded;if(null===t)return null;var r=0===t.get("provider_name").length?k(M(t.get("url"))):t.get("provider_name"),l=t.get("width")>t.get("height")&&t.get("width")+100>=i||"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")?i/p:i*p,g=s()("div",{className:"status-card__content"},void 0,u,!l&&s()("p",{className:"status-card__description"},void 0,C(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?i: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),a.defaultProps={maxDescription:50},i)},333:function(e,t,n){(function(e,a){var i;!function(o){function s(e){throw new RangeError(A[e])}function r(e,t){for(var n=e.length,a=[];n--;)a[n]=t(e[n]);return a}function l(e,t){var n=e.split("@"),a="";return n.length>1&&(a=n[0]+"@",e=n[1]),e=e.replace(S,"."),a+r(e.split("."),t).join(".")}function c(e){for(var t,n,a=[],i=0,o=e.length;i<o;)t=e.charCodeAt(i++),t>=55296&&t<=56319&&i<o?(n=e.charCodeAt(i++),56320==(64512&n)?a.push(((1023&t)<<10)+(1023&n)+65536):(a.push(t),i--)):a.push(t);return a}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 a=0;for(e=n?D(e/j):e>>1,e+=D(e/t);e>T*C>>1;a+=k)e=D(e/T);return D(a+(T+1)*e/(e+O))}function f(e){var t,n,a,i,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),a=0;a<n;++a)e.charCodeAt(a)>=128&&s("not-basic"),g.push(e.charCodeAt(a));for(i=n>0?n+1:0;i<v;){for(o=m,r=1,l=k;i>=v&&s("invalid-input"),c=u(e.charCodeAt(i++)),(c>=k||c>D((_-m)/r))&&s("overflow"),m+=c*r,p=l<=y?M:l>=y+C?C:l-y,!(c<p);l+=k)f=k-p,r>D(_/f)&&s("overflow"),r*=f;t=g.length+1,y=h(m-o,t,0==o),D(m/t)>_-b&&s("overflow"),b+=D(m/t),m%=t,g.splice(m++,0,b)}return d(g)}function g(e){var t,n,a,i,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(a=i=O.length,i&&O.push(x);a<v;){for(l=_,r=0;r<v;++r)(g=e[r])>=t&&g<l&&(l=g);for(m=a+1,l-t>D((_-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?M:u>=o+C?C:u-o,!(d<f);u+=k)y=d-f,b=k-f,O.push(E(p(f+y%b,0))),d=D(y/b);O.push(E(p(d,0))),o=h(n,m,a==i),n=0,++a}++n,++t}return O.join("")}function v(e){return l(e,function(e){return R.test(e)?f(e.slice(4).toLowerCase()):e})}function m(e){return l(e,function(e){return N.test(e)?"xn--"+g(e):e})}var b=("object"==typeof t&&t&&t.nodeType,"object"==typeof e&&e&&e.nodeType,"object"==typeof a&&a);var y,_=2147483647,k=36,M=1,C=26,O=38,j=700,w=72,I=128,x="-",R=/^xn--/,N=/[^\x20-\x7E]/,S=/[\x2E\u3002\uFF0E\uFF61]/g,A={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=k-M,D=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!==(i=function(){return y}.call(t,n,t,e))&&(e.exports=i)}()}).call(t,n(73)(e),n(45))},811:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"default",function(){return G});var a,i,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(_),M=n(13),C=n.n(M),O=n(91),j=n(845),w=n(964),I=n(966),x=n(284),R=n(67),N=n(18),S=n(22),A=n(283),T=n(151),D=n(66),E=n(152),P=n(286),H=n(68),F=n(285),B=n(26),z=n(6),V=n(12),q=n.n(V),U=n(157),W=(n.n(U),n(11)),L=n(154),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(D.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=(a=Object(m.connect)(K),Object(z.g)(i=a((s=o=function(e){function t(){var n,a,i;d()(this,t);for(var o=arguments.length,s=Array(o),r=0;r<o;r++)s[r]=arguments[r];return n=a=p()(this,e.call.apply(e,[this].concat(s))),a.state={fullscreen:!1},a.handleFavouriteClick=function(e){e.get("favourited")?a.props.dispatch(Object(R.m)(e)):a.props.dispatch(Object(R.i)(e))},a.handleReplyClick=function(e){a.props.dispatch(Object(N.T)(e,a.context.router.history))},a.handleModalReblog=function(e){a.props.dispatch(Object(R.l)(e))},a.handleReblogClick=function(e,t){e.get("reblogged")?a.props.dispatch(Object(R.n)(e)):t.shiftKey||!W.b?a.handleModalReblog(e):a.props.dispatch(Object(B.d)("BOOST",{status:e,onReblog:a.handleModalReblog}))},a.handleDeleteClick=function(e){var t=a.props,n=t.dispatch,i=t.intl;n(W.e?Object(B.d)("CONFIRM",{message:i.formatMessage(J.deleteMessage),confirm:i.formatMessage(J.deleteConfirm),onConfirm:function(){return n(Object(O.f)(e.get("id")))}}):Object(O.f)(e.get("id")))},a.handleMentionClick=function(e,t){a.props.dispatch(Object(N.R)(e,t))},a.handleOpenMedia=function(e,t){a.props.dispatch(Object(B.d)("MEDIA",{media:e,index:t}))},a.handleOpenVideo=function(e,t){a.props.dispatch(Object(B.d)("VIDEO",{media:e,time:t}))},a.handleMuteClick=function(e){a.props.dispatch(Object(A.a)(e))},a.handleConversationMuteClick=function(e){e.get("muted")?a.props.dispatch(Object(O.k)(e.get("id"))):a.props.dispatch(Object(O.i)(e.get("id")))},a.handleToggleHidden=function(e){e.get("hidden")?a.props.dispatch(Object(O.j)(e.get("id"))):a.props.dispatch(Object(O.h)(e.get("id")))},a.handleToggleAll=function(){var e=a.props,t=e.status,n=e.ancestorsIds,i=e.descendantsIds,o=[t.get("id")].concat(n.toJS(),i.toJS());t.get("hidden")?a.props.dispatch(Object(O.j)(o)):a.props.dispatch(Object(O.h)(o))},a.handleBlockClick=function(e){var t=a.props,n=t.dispatch,i=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:i.formatMessage(J.blockConfirm),onConfirm:function(){return n(Object(S.q)(e.get("id")))}}))},a.handleReport=function(e){a.props.dispatch(Object(T.k)(e.get("account"),e))},a.handleHotkeyMoveUp=function(){a.handleMoveUp(a.props.status.get("id"))},a.handleHotkeyMoveDown=function(){a.handleMoveDown(a.props.status.get("id"))},a.handleHotkeyReply=function(e){e.preventDefault(),a.handleReplyClick(a.props.status)},a.handleHotkeyFavourite=function(){a.handleFavouriteClick(a.props.status)},a.handleHotkeyBoost=function(){a.handleReblogClick(a.props.status)},a.handleHotkeyMention=function(e){e.preventDefault(),a.handleMentionClick(a.props.status)},a.handleHotkeyOpenProfile=function(){a.context.router.history.push("/accounts/"+a.props.status.getIn(["account","id"]))},a.handleMoveUp=function(e){var t=a.props,n=t.status,i=t.ancestorsIds,o=t.descendantsIds;if(e===n.get("id"))a._selectChild(i.size-1);else{var s=i.indexOf(e);-1===s?(s=o.indexOf(e),a._selectChild(i.size+s)):a._selectChild(s-1)}},a.handleMoveDown=function(e){var t=a.props,n=t.status,i=t.ancestorsIds,o=t.descendantsIds;if(e===n.get("id"))a._selectChild(i.size+1);else{var s=i.indexOf(e);-1===s?(s=o.indexOf(e),a._selectChild(i.size+s+2)):a._selectChild(s+1)}},a.setRef=function(e){a.node=e},a.onFullScreenChange=function(){a.setState({fullscreen:Object(L.d)()})},i=n,p()(a,i)}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,a=n.status,i=n.ancestorsIds,o=n.descendantsIds,s=n.intl,r=this.state.fullscreen;if(null===a)return l()(x.a,{},void 0,l()(P.a,{}),l()(j.a,{}));i&&i.size>0&&(e=l()("div",{},void 0,this.renderChildren(i))),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(a.get("hidden")?J.revealAll:J.hideAll),"aria-label":s.formatMessage(a.get("hidden")?J.revealAll:J.hideAll),onClick:this.handleToggleAll,"aria-pressed":a.get("hidden")?"false":"true"},void 0,l()("i",{className:"fa fa-"+(a.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:a,onOpenVideo:this.handleOpenVideo,onOpenMedia:this.handleOpenMedia,onToggleHidden:this.handleToggleHidden}),l()(I.a,{status:a,onReply:this.handleReplyClick,onFavourite:this.handleFavouriteClick,onReblog:this.handleReblogClick,onDelete:this.handleDeleteClick,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:C.a.map,ancestorsIds:C.a.list,descendantsIds:C.a.list,intl:y.a.object.isRequired},i=s))||i)||i)},845:function(e,t,n){"use strict";var a=n(2),i=n.n(a),o=n(0),s=(n.n(o),n(6)),r=function(){return i()("div",{className:"regeneration-indicator missing-indicator"},void 0,i()("div",{},void 0,i()("div",{className:"regeneration-indicator__label"},void 0,i()(s.b,{id:"missing_indicator.label",tagName:"strong",defaultMessage:"Not found"}),i()(s.b,{id:"missing_indicator.sublabel",defaultMessage:"This resource could not be found"}))))};t.a=r},964:function(e,t,n){"use strict";n.d(t,"a",function(){return R});var a,i,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(56),y=n(55),_=n(102),k=n(155),M=n(337),C=n(44),O=n(6),j=n(965),w=n(12),I=n.n(w),x=n(74),R=(i=a=function(e){function t(){var n,a,i;l()(this,t);for(var o=arguments.length,s=Array(o),r=0;r<o;r++)s[r]=arguments[r];return n=a=d()(this,e.call.apply(e,[this].concat(s))),a.handleAccountClick=function(e){0===e.button&&(e.preventDefault(),a.context.router.history.push("/accounts/"+a.props.status.getIn(["account","id"]))),e.stopPropagation()},a.handleOpenVideo=function(e){a.props.onOpenVideo(a.props.status.getIn(["media_attachments",0]),e)},a.handleExpandedToggle=function(){a.props.onToggleHidden(a.props.status)},i=n,d()(a,i)}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="",a="",i="retweet";if(e.get("media_attachments").size>0)if(e.get("media_attachments").some(function(e){return"unknown"===e.get("type")}))t=s()(M.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")?i="envelope":"private"===e.get("visibility")&&(i="lock"),a="private"===e.get("visibility")?s()("i",{className:"fa fa-"+i}):s()(C.b,{to:"/statuses/"+e.get("id")+"/reblogs",className:"detailed-status__link"},void 0,s()("i",{className:"fa fa-"+i}),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," · ",a," · ",s()(C.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),a.contextTypes={router:g.a.object},a.propTypes={status:m.a.map.isRequired,onOpenMedia:g.a.func.isRequired,onOpenVideo:g.a.func.isRequired,onToggleHidden:g.a.func.isRequired},i)},965:function(e,t,n){"use strict";var a=n(9),i=n(332),o=function(e,t){var n=t.statusId;return{card:e.getIn(["cards",n],null)}};t.a=Object(a.connect)(o)(i.a)},966:function(e,t,n){"use strict";n.d(t,"a",function(){return C});var a,i,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(299),_=n(6),k=n(11),M=Object(_.f)({delete:{id:"status.delete",defaultMessage:"Delete"},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}"},report:{id:"status.report",defaultMessage:"Report @{name}"},share:{id:"status.share",defaultMessage:"Share"}}),C=Object(_.g)((o=i=function(e){function t(){var n,a,i;c()(this,t);for(var o=arguments.length,s=Array(o),r=0;r<o;r++)s[r]=arguments[r];return n=a=u()(this,e.call.apply(e,[this].concat(s))),a.handleReplyClick=function(){a.props.onReply(a.props.status)},a.handleReblogClick=function(e){a.props.onReblog(a.props.status,e)},a.handleFavouriteClick=function(){a.props.onFavourite(a.props.status)},a.handleDeleteClick=function(){a.props.onDelete(a.props.status)},a.handleMentionClick=function(){a.props.onMention(a.props.status.get("account"),a.context.router.history)},a.handleConversationMuteClick=function(){a.props.onMuteConversation(a.props.status)},a.handleBlockClick=function(){a.props.onBlock(a.props.status.get("account"))},a.handleReport=function(){a.props.onReport(a.props.status)},a.handlePinClick=function(){a.props.onPin(a.props.status)},a.handleShare=function(){navigator.share({text:a.props.status.get("search_index"),url:a.props.status.get("url")})},i=n,u()(a,i)}return h()(t,e),t.prototype.render=function(){var e=this.props,t=e.status,n=e.intl,a=(["public","unlisted"].includes(t.get("visibility")),t.get("muted")),i=[];k.g===t.getIn(["account","id"])?(i.push({text:n.formatMessage(a?M.unmuteConversation:M.muteConversation),action:this.handleConversationMuteClick}),i.push(null),i.push({text:n.formatMessage(M.delete),action:this.handleDeleteClick})):(i.push({text:n.formatMessage(M.mention,{name:t.getIn(["account","username"])}),action:this.handleMentionClick}),i.push(null),i.push({text:n.formatMessage(M.block,{name:t.getIn(["account","username"])}),action:this.handleBlockClick}),i.push({text:n.formatMessage(M.report,{name:t.getIn(["account","username"])}),action:this.handleReport}));var o="share"in navigator&&"public"===t.get("visibility")&&r()("div",{className:"detailed-status__button"},void 0,r()(b.a,{title:n.formatMessage(M.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(M.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(M.cannot_reblog):n.formatMessage(M.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(M.favourite),icon:"star",onClick:this.handleFavouriteClick,activeStyle:{color:"#ca8f04"}})),o,r()("div",{className:"detailed-status__action-bar-dropdown"},void 0,r()(y.a,{size:18,icon:"ellipsis-h",items:i,direction:"left",title:"More"})))},t}(g.a.PureComponent),i.contextTypes={router:m.a.object},a=o))||a}});
+(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{649:function(e,t,a){"use strict";a.d(t,"a",function(){return x});var r=a(0),i=a(2),s=a(6),o=a(1),n=a(3),d=a.n(n),c=a(5),l=a.n(c),u=a(26),p=a.n(u),h=a(194),b=a(195),g=a(209),f=a(496),O=a(502),m=a(358),j=a(7),v=a(497),M=a(25),y=a(132),k=a(642),_=a(12),C=a.n(_),R=a(30),w=a(503),x=function(n){function e(){for(var a,e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return a=n.call.apply(n,[this].concat(t))||this,Object(o.a)(Object(i.a)(a),"state",{height:null}),Object(o.a)(Object(i.a)(a),"handleAccountClick",function(e){0!==e.button||e.ctrlKey||e.metaKey||!a.context.router||(e.preventDefault(),a.context.router.history.push("/accounts/"+a.props.status.getIn(["account","id"]))),e.stopPropagation()}),Object(o.a)(Object(i.a)(a),"handleOpenVideo",function(e,t){a.props.onOpenVideo(e,t)}),Object(o.a)(Object(i.a)(a),"handleExpandedToggle",function(){a.props.onToggleHidden(a.props.status)}),Object(o.a)(Object(i.a)(a),"setRef",function(e){a.node=e,a._measureHeight()}),Object(o.a)(Object(i.a)(a),"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")}),a}Object(s.a)(e,n);var t=e.prototype;return t._measureHeight=function(e){var t=this;this.props.measureHeight&&this.node&&(Object(k.a)(function(){return t.node&&t.setState({height:Math.ceil(t.node.scrollHeight)+1})}),this.props.onHeightChange&&e&&this.props.onHeightChange())},t.componentDidUpdate=function(e,t){this._measureHeight(t.height!==this.state.height)},t.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 s="",n="",i="",o="retweet",c="";if(this.props.measureHeight&&(t.height=this.state.height+"px"),e.get("poll"))s=Object(r.a)(w.a,{pollId:e.get("poll")});else if(0<e.get("media_attachments").size)if(e.get("media_attachments").some(function(e){return"unknown"===e.get("type")}))s=Object(r.a)(O.a,{media:e.get("media_attachments")});else if("video"===e.getIn(["media_attachments",0,"type"])){var l=e.getIn(["media_attachments",0]);s=Object(r.a)(y.default,{preview:l.get("preview_url"),src:l.get("url"),alt:l.get("description"),width:300,height:150,inline:!0,onOpenVideo:this.handleOpenVideo,sensitive:e.get("sensitive")})}else s=Object(r.a)(f.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&&(s=Object(r.a)(v.a,{onOpenMedia:this.props.onOpenMedia,card:e.get("card",null)}));return e.get("application")&&(n=Object(r.a)("span",{},void 0," · ",Object(r.a)("a",{className:"detailed-status__application",href:e.getIn(["application","website"]),target:"_blank",rel:"noopener"},void 0,e.getIn(["application","name"])))),"direct"===e.get("visibility")?o="envelope":"private"===e.get("visibility")&&(o="lock"),i="private"===e.get("visibility")?Object(r.a)(R.a,{id:o}):this.context.router?Object(r.a)(m.a,{to:"/statuses/"+e.get("id")+"/reblogs",className:"detailed-status__link"},void 0,Object(r.a)(R.a,{id:o}),Object(r.a)("span",{className:"detailed-status__reblogs"},void 0,Object(r.a)(j.c,{value:e.get("reblogs_count")}))):Object(r.a)("a",{href:"/interact/"+e.get("id")+"?type=reblog",className:"detailed-status__link",onClick:this.handleModalLink},void 0,Object(r.a)(R.a,{id:o}),Object(r.a)("span",{className:"detailed-status__reblogs"},void 0,Object(r.a)(j.c,{value:e.get("reblogs_count")}))),c=this.context.router?Object(r.a)(m.a,{to:"/statuses/"+e.get("id")+"/favourites",className:"detailed-status__link"},void 0,Object(r.a)(R.a,{id:"star"}),Object(r.a)("span",{className:"detailed-status__favorites"},void 0,Object(r.a)(j.c,{value:e.get("favourites_count")}))):Object(r.a)("a",{href:"/interact/"+e.get("id")+"?type=favourite",className:"detailed-status__link",onClick:this.handleModalLink},void 0,Object(r.a)(R.a,{id:"star"}),Object(r.a)("span",{className:"detailed-status__favorites"},void 0,Object(r.a)(j.c,{value:e.get("favourites_count")}))),Object(r.a)("div",{style:t},void 0,d.a.createElement("div",{ref:this.setRef,className:C()("detailed-status",{compact:a})},Object(r.a)("a",{href:e.getIn(["account","url"]),onClick:this.handleAccountClick,className:"detailed-status__display-name"},void 0,Object(r.a)("div",{className:"detailed-status__display-avatar"},void 0,Object(r.a)(h.a,{account:e.get("account"),size:48})),Object(r.a)(b.a,{account:e.get("account"),localDomain:this.props.domain})),Object(r.a)(g.a,{status:e,expanded:!e.get("hidden"),onExpandedToggle:this.handleExpandedToggle}),s,Object(r.a)("div",{className:"detailed-status__meta"},void 0,Object(r.a)("a",{className:"detailed-status__datetime",href:e.get("url"),target:"_blank",rel:"noopener"},void 0,Object(r.a)(j.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," · ",c)))},e}(M.a);Object(o.a)(x,"contextTypes",{router:l.a.object}),Object(o.a)(x,"propTypes",{status:p.a.map,onOpenMedia:l.a.func.isRequired,onOpenVideo:l.a.func.isRequired,onToggleHidden:l.a.func.isRequired,measureHeight:l.a.bool,onHeightChange:l.a.func,domain:l.a.string.isRequired,compact:l.a.bool})},714:function(e,t,a){"use strict";a.r(t);var s,n,i,o,c,l,r,u=a(0),d=a(2),p=a(6),h=a(1),b=a(4),g=a.n(b),f=a(3),O=a.n(f),m=a(21),j=a(5),v=a.n(j),M=a(12),y=a.n(M),k=a(26),_=a.n(k),C=a(86),R=a(897),w=a(649),x=a(67),I=a(637),D=a(7),H=a(24),N=Object(D.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"},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"}}),A=Object(D.g)((i=n=function(n){function e(){for(var a,e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return a=n.call.apply(n,[this].concat(t))||this,Object(h.a)(Object(d.a)(a),"handleReplyClick",function(){a.props.onReply(a.props.status)}),Object(h.a)(Object(d.a)(a),"handleReblogClick",function(e){a.props.onReblog(a.props.status,e)}),Object(h.a)(Object(d.a)(a),"handleFavouriteClick",function(){a.props.onFavourite(a.props.status)}),Object(h.a)(Object(d.a)(a),"handleDeleteClick",function(){a.props.onDelete(a.props.status,a.context.router.history)}),Object(h.a)(Object(d.a)(a),"handleRedraftClick",function(){a.props.onDelete(a.props.status,a.context.router.history,!0)}),Object(h.a)(Object(d.a)(a),"handleDirectClick",function(){a.props.onDirect(a.props.status.get("account"),a.context.router.history)}),Object(h.a)(Object(d.a)(a),"handleMentionClick",function(){a.props.onMention(a.props.status.get("account"),a.context.router.history)}),Object(h.a)(Object(d.a)(a),"handleMuteClick",function(){a.props.onMute(a.props.status.get("account"))}),Object(h.a)(Object(d.a)(a),"handleConversationMuteClick",function(){a.props.onMuteConversation(a.props.status)}),Object(h.a)(Object(d.a)(a),"handleBlockClick",function(){a.props.onBlock(a.props.status)}),Object(h.a)(Object(d.a)(a),"handleReport",function(){a.props.onReport(a.props.status)}),Object(h.a)(Object(d.a)(a),"handlePinClick",function(){a.props.onPin(a.props.status)}),Object(h.a)(Object(d.a)(a),"handleShare",function(){navigator.share({text:a.props.status.get("search_index"),url:a.props.status.get("url")})}),Object(h.a)(Object(d.a)(a),"handleEmbed",function(){a.props.onEmbed(a.props.status)}),Object(h.a)(Object(d.a)(a),"handleCopy",function(){var e=a.props.status.get("url"),t=document.createElement("textarea");t.textContent=e,t.style.position="fixed",document.body.appendChild(t);try{t.select(),document.execCommand("copy")}catch(e){}finally{document.body.removeChild(t)}}),a}return Object(p.a)(e,n),e.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(N.copy),action:this.handleCopy}),i.push({text:a.formatMessage(N.embed),action:this.handleEmbed}),i.push(null)),H.k===t.getIn(["account","id"])?(s?i.push({text:a.formatMessage(t.get("pinned")?N.unpin:N.pin),action:this.handlePinClick}):"private"===t.get("visibility")&&i.push({text:a.formatMessage(t.get("reblogged")?N.cancel_reblog_private:N.reblog_private),action:this.handleReblogClick}),i.push(null),i.push({text:a.formatMessage(n?N.unmuteConversation:N.muteConversation),action:this.handleConversationMuteClick}),i.push(null),i.push({text:a.formatMessage(N.delete),action:this.handleDeleteClick}),i.push({text:a.formatMessage(N.redraft),action:this.handleRedraftClick})):(i.push({text:a.formatMessage(N.mention,{name:t.getIn(["account","username"])}),action:this.handleMentionClick}),i.push({text:a.formatMessage(N.direct,{name:t.getIn(["account","username"])}),action:this.handleDirectClick}),i.push(null),i.push({text:a.formatMessage(N.mute,{name:t.getIn(["account","username"])}),action:this.handleMuteClick}),i.push({text:a.formatMessage(N.block,{name:t.getIn(["account","username"])}),action:this.handleBlockClick}),i.push({text:a.formatMessage(N.report,{name:t.getIn(["account","username"])}),action:this.handleReport}),H.i&&(i.push(null),i.push({text:a.formatMessage(N.admin_account,{name:t.getIn(["account","username"])}),href:"/admin/accounts/"+t.getIn(["account","id"])}),i.push({text:a.formatMessage(N.admin_status),href:"/admin/accounts/"+t.getIn(["account","id"])+"/statuses/"+t.get("id")})));var o,c="share"in navigator&&"public"===t.get("visibility")&&Object(u.a)("div",{className:"detailed-status__button"},void 0,Object(u.a)(x.a,{title:a.formatMessage(N.share),icon:"share-alt",onClick:this.handleShare}));o=null===t.get("in_reply_to_id",null)?"reply":"reply-all";var l="retweet";"direct"===t.get("visibility")?l="envelope":"private"===t.get("visibility")&&(l="lock");var r="direct"===t.get("visibility")||"private"===t.get("visibility");return Object(u.a)("div",{className:"detailed-status__action-bar"},void 0,Object(u.a)("div",{className:"detailed-status__button"},void 0,Object(u.a)(x.a,{title:a.formatMessage(N.reply),icon:t.get("in_reply_to_account_id")===t.getIn(["account","id"])?"reply":o,onClick:this.handleReplyClick})),Object(u.a)("div",{className:"detailed-status__button"},void 0,Object(u.a)(x.a,{disabled:r,active:t.get("reblogged"),title:r?a.formatMessage(N.cannot_reblog):a.formatMessage(N.reblog),icon:l,onClick:this.handleReblogClick})),Object(u.a)("div",{className:"detailed-status__button"},void 0,Object(u.a)(x.a,{className:"star-icon",animate:!0,active:t.get("favourited"),title:a.formatMessage(N.favourite),icon:"star",onClick:this.handleFavouriteClick})),c,Object(u.a)("div",{className:"detailed-status__action-bar-dropdown"},void 0,Object(u.a)(I.a,{size:18,icon:"ellipsis-h",items:i,direction:"left",title:"More"})))},e}(O.a.PureComponent),Object(h.a)(n,"contextTypes",{router:v.a.object}),s=i))||s,T=a(626),S=a(58),B=a(22),E=a(27),F=a(196),U=a(94),z=a(200),P=a(427),V=a(629),q=a(628),K=a(903),L=a(57),J=a(25),W=a(343),X=a(230),G=a(769),Q=a(30);a.d(t,"default",function(){return Z});var Y=Object(D.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"},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?"},blockAndReport:{id:"confirmations.block.block_and_report",defaultMessage:"Block & Report"}}),Z=(o=Object(m.connect)(function(){var s=Object(z.f)();return function(n,e){var i=s(n,{id:e.params.statusId}),t=g.a.List(),a=g.a.List();return i&&(t=t.withMutations(function(e){for(var t=i.get("in_reply_to_id");t;)e.unshift(t),t=n.getIn(["contexts","inReplyTos",t])}),a=a.withMutations(function(e){for(var t=[i.get("id")];0<t.length;){var a=t.shift(),s=n.getIn(["contexts","replies",a]);i.get("id")!==a&&e.push(a),s&&s.reverse().forEach(function(e){t.unshift(e)})}})),{status:i,ancestorsIds:t,descendantsIds:a,askReplyConfirmation:0!==n.getIn(["compose","text"]).trim().length,domain:n.getIn(["meta","domain"])}}}),Object(D.g)(c=o((r=l=function(s){function e(){for(var o,e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return o=s.call.apply(s,[this].concat(t))||this,Object(h.a)(Object(d.a)(o),"state",{fullscreen:!1}),Object(h.a)(Object(d.a)(o),"handleFavouriteClick",function(e){e.get("favourited")?o.props.dispatch(Object(S.p)(e)):o.props.dispatch(Object(S.k)(e))}),Object(h.a)(Object(d.a)(o),"handlePin",function(e){e.get("pinned")?o.props.dispatch(Object(S.q)(e)):o.props.dispatch(Object(S.n)(e))}),Object(h.a)(Object(d.a)(o),"handleReplyClick",function(e){var t=o.props,a=t.askReplyConfirmation,s=t.dispatch,n=t.intl;s(a?Object(L.d)("CONFIRM",{message:n.formatMessage(Y.replyMessage),confirm:n.formatMessage(Y.replyConfirm),onConfirm:function(){return s(Object(B.fb)(e,o.context.router.history))}}):Object(B.fb)(e,o.context.router.history))}),Object(h.a)(Object(d.a)(o),"handleModalReblog",function(e){o.props.dispatch(Object(S.o)(e))}),Object(h.a)(Object(d.a)(o),"handleReblogClick",function(e,t){e.get("reblogged")?o.props.dispatch(Object(S.r)(e)):t&&t.shiftKey||!H.b?o.handleModalReblog(e):o.props.dispatch(Object(L.d)("BOOST",{status:e,onReblog:o.handleModalReblog}))}),Object(h.a)(Object(d.a)(o),"handleDeleteClick",function(e,t,a){void 0===a&&(a=!1);var s=o.props,n=s.dispatch,i=s.intl;H.d?n(Object(L.d)("CONFIRM",{message:i.formatMessage(a?Y.redraftMessage:Y.deleteMessage),confirm:i.formatMessage(a?Y.redraftConfirm:Y.deleteConfirm),onConfirm:function(){return n(Object(C.g)(e.get("id"),t,a))}})):n(Object(C.g)(e.get("id"),t,a))}),Object(h.a)(Object(d.a)(o),"handleDirectClick",function(e,t){o.props.dispatch(Object(B.X)(e,t))}),Object(h.a)(Object(d.a)(o),"handleMentionClick",function(e,t){o.props.dispatch(Object(B.bb)(e,t))}),Object(h.a)(Object(d.a)(o),"handleOpenMedia",function(e,t){o.props.dispatch(Object(L.d)("MEDIA",{media:e,index:t}))}),Object(h.a)(Object(d.a)(o),"handleOpenVideo",function(e,t){o.props.dispatch(Object(L.d)("VIDEO",{media:e,time:t}))}),Object(h.a)(Object(d.a)(o),"handleMuteClick",function(e){o.props.dispatch(Object(F.g)(e))}),Object(h.a)(Object(d.a)(o),"handleConversationMuteClick",function(e){e.get("muted")?o.props.dispatch(Object(C.l)(e.get("id"))):o.props.dispatch(Object(C.j)(e.get("id")))}),Object(h.a)(Object(d.a)(o),"handleToggleHidden",function(e){e.get("hidden")?o.props.dispatch(Object(C.k)(e.get("id"))):o.props.dispatch(Object(C.i)(e.get("id")))}),Object(h.a)(Object(d.a)(o),"handleToggleAll",function(){var e=o.props,t=e.status,a=e.ancestorsIds,s=e.descendantsIds,n=[t.get("id")].concat(a.toJS(),s.toJS());t.get("hidden")?o.props.dispatch(Object(C.k)(n)):o.props.dispatch(Object(C.i)(n))}),Object(h.a)(Object(d.a)(o),"handleBlockClick",function(e){var t=o.props,a=t.dispatch,s=t.intl,n=e.get("account");a(Object(L.d)("CONFIRM",{message:Object(u.a)(D.b,{id:"confirmations.block.message",defaultMessage:"Are you sure you want to block {name}?",values:{name:Object(u.a)("strong",{},void 0,"@",n.get("acct"))}}),confirm:s.formatMessage(Y.blockConfirm),onConfirm:function(){return a(Object(E.w)(n.get("id")))},secondary:s.formatMessage(Y.blockAndReport),onSecondary:function(){a(Object(E.w)(n.get("id"))),a(Object(U.k)(n,e))}}))}),Object(h.a)(Object(d.a)(o),"handleReport",function(e){o.props.dispatch(Object(U.k)(e.get("account"),e))}),Object(h.a)(Object(d.a)(o),"handleEmbed",function(e){o.props.dispatch(Object(L.d)("EMBED",{url:e.get("url")}))}),Object(h.a)(Object(d.a)(o),"handleHotkeyMoveUp",function(){o.handleMoveUp(o.props.status.get("id"))}),Object(h.a)(Object(d.a)(o),"handleHotkeyMoveDown",function(){o.handleMoveDown(o.props.status.get("id"))}),Object(h.a)(Object(d.a)(o),"handleHotkeyReply",function(e){e.preventDefault(),o.handleReplyClick(o.props.status)}),Object(h.a)(Object(d.a)(o),"handleHotkeyFavourite",function(){o.handleFavouriteClick(o.props.status)}),Object(h.a)(Object(d.a)(o),"handleHotkeyBoost",function(){o.handleReblogClick(o.props.status)}),Object(h.a)(Object(d.a)(o),"handleHotkeyMention",function(e){e.preventDefault(),o.handleMentionClick(o.props.status.get("account"))}),Object(h.a)(Object(d.a)(o),"handleHotkeyOpenProfile",function(){o.context.router.history.push("/accounts/"+o.props.status.getIn(["account","id"]))}),Object(h.a)(Object(d.a)(o),"handleHotkeyToggleHidden",function(){o.handleToggleHidden(o.props.status)}),Object(h.a)(Object(d.a)(o),"handleMoveUp",function(e){var t=o.props,a=t.status,s=t.ancestorsIds,n=t.descendantsIds;if(e===a.get("id"))o._selectChild(s.size-1);else{var i=s.indexOf(e);-1===i?(i=n.indexOf(e),o._selectChild(s.size+i)):o._selectChild(i-1)}}),Object(h.a)(Object(d.a)(o),"handleMoveDown",function(e){var t=o.props,a=t.status,s=t.ancestorsIds,n=t.descendantsIds;if(e===a.get("id"))o._selectChild(s.size+1);else{var i=s.indexOf(e);-1===i?(i=n.indexOf(e),o._selectChild(s.size+i+2)):o._selectChild(i+1)}}),Object(h.a)(Object(d.a)(o),"setRef",function(e){o.node=e}),Object(h.a)(Object(d.a)(o),"onFullScreenChange",function(){o.setState({fullscreen:Object(X.d)()})}),o}Object(p.a)(e,s);var t=e.prototype;return t.componentWillMount=function(){this.props.dispatch(Object(C.h)(this.props.params.statusId))},t.componentDidMount=function(){Object(X.a)(this.onFullScreenChange)},t.componentWillReceiveProps=function(e){e.params.statusId!==this.props.params.statusId&&e.params.statusId&&(this._scrolledIntoView=!1,this.props.dispatch(Object(C.h)(e.params.statusId)))},t._selectChild=function(e){var t=this.node.querySelectorAll(".focusable")[e];t&&t.focus()},t.renderChildren=function(e){var t=this;return e.map(function(e){return Object(u.a)(K.a,{id:e,onMoveUp:t.handleMoveUp,onMoveDown:t.handleMoveDown,contextType:"thread"},e)})},t.componentDidUpdate=function(){if(!this._scrolledIntoView){var e=this.props,t=e.status,a=e.ancestorsIds;if(t&&a&&0<a.size){var s=this.node.querySelectorAll(".focusable")[a.size-1];window.requestAnimationFrame(function(){s.scrollIntoView(!0)}),this._scrolledIntoView=!0}}},t.componentWillUnmount=function(){Object(X.b)(this.onFullScreenChange)},t.render=function(){var e,t,a=this.props,s=a.shouldUpdateScroll,n=a.status,i=a.ancestorsIds,o=a.descendantsIds,c=a.intl,l=a.domain,r=this.state.fullscreen;if(null===n)return Object(u.a)(T.a,{},void 0,Object(u.a)(V.a,{}),Object(u.a)(R.a,{}));i&&0<i.size&&(e=Object(u.a)("div",{},void 0,this.renderChildren(i))),o&&0<o.size&&(t=Object(u.a)("div",{},void 0,this.renderChildren(o)));var d={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 Object(u.a)(T.a,{label:c.formatMessage(Y.detailedStatus)},void 0,Object(u.a)(q.a,{showBackButton:!0,extraButton:Object(u.a)("button",{className:"column-header__button",title:c.formatMessage(n.get("hidden")?Y.revealAll:Y.hideAll),"aria-label":c.formatMessage(n.get("hidden")?Y.revealAll:Y.hideAll),onClick:this.handleToggleAll,"aria-pressed":n.get("hidden")?"false":"true"},void 0,Object(u.a)(Q.a,{id:n.get("hidden")?"eye-slash":"eye"}))}),Object(u.a)(P.a,{scrollKey:"thread",shouldUpdateScroll:s},void 0,O.a.createElement("div",{className:y()("scrollable",{fullscreen:r}),ref:this.setRef},e,Object(u.a)(W.HotKeys,{handlers:d},void 0,Object(u.a)("div",{className:y()("focusable","detailed-status__wrapper"),tabIndex:"0","aria-label":Object(G.b)(c,n,!1)},void 0,Object(u.a)(w.a,{status:n,onOpenVideo:this.handleOpenVideo,onOpenMedia:this.handleOpenMedia,onToggleHidden:this.handleToggleHidden,domain:l}),Object(u.a)(A,{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)))},e}(J.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,domain:v.a.string.isRequired}),c=r))||c)||c)}}]);
//# sourceMappingURL=status.js.map
\ No newline at end of file