-webpackJsonp([18],{1010:function(e,o,t){"use strict";t.d(o,"a",function(){return M});var n,a,i=t(2),s=t.n(i),c=t(1),r=t.n(c),l=t(3),u=t.n(l),d=t(4),p=t.n(d),f=t(0),m=(t.n(f),t(14)),g=t.n(m),h=t(12),v=t.n(h),b=t(296),_=t(13),M=(a=n=function(e){function o(){var t,n,a;r()(this,o);for(var i=arguments.length,s=Array(i),c=0;c<i;c++)s[c]=arguments[c];return t=n=u()(this,e.call.apply(e,[this].concat(s))),n.state={visible:!n.props.media.getIn(["status","sensitive"])||_.f},n.handleClick=function(){return!n.state.visible&&(n.setState({visible:!0}),!0)},a=t,u()(n,a)}return p()(o,e),o.prototype.render=function(){var e=this.props.media,o=this.state.visible,t=e.get("status"),n=e.getIn(["meta","focus","x"]),a=e.getIn(["meta","focus","y"]),i=100*(n/2+.5),c=100*(a/-2+.5),r={},l=void 0,u=void 0;return"gifv"===e.get("type")&&(l=s()("span",{className:"media-gallery__gifv__label"},void 0,"GIF")),o?(r.backgroundImage="url("+e.get("preview_url")+")",r.backgroundPosition=i+"% "+c+"%"):u=s()("span",{className:"account-gallery__item__icons"},void 0,s()("i",{className:"fa fa-eye-slash"})),s()("div",{className:"account-gallery__item"},void 0,s()(b.a,{to:"/statuses/"+t.get("id"),href:t.get("url"),style:r,onInterceptClick:this.handleClick},void 0,u,l))},o}(v.a),n.propTypes={media:g.a.map.isRequired},a)},153:function(e,o,t){"use strict";t.d(o,"a",function(){return g});var n=t(2),a=t.n(n),i=t(1),s=t.n(i),c=t(3),r=t.n(c),l=t(4),u=t.n(l),d=t(0),p=t.n(d),f=t(10),m=t.n(f),g=function(e){function o(){var t,n,a;s()(this,o);for(var i=arguments.length,c=Array(i),l=0;l<i;l++)c[l]=arguments[l];return t=n=r()(this,e.call.apply(e,[this].concat(c))),n.handleClick=function(){n.props.onClick()},a=t,r()(n,a)}return u()(o,e),o.prototype.render=function(){var e=this.props,o=e.icon,t=e.type,n=e.active,i=e.columnHeaderId,s="";return o&&(s=a()("i",{className:"fa fa-fw fa-"+o+" column-header__icon"})),a()("h1",{className:m()("column-header",{active:n}),id:i||null},void 0,a()("button",{onClick:this.handleClick},void 0,s,t))},o}(p.a.PureComponent)},283:function(e,o,t){"use strict";t.d(o,"a",function(){return b});var n=t(2),a=t.n(n),i=t(1),s=t.n(i),c=t(3),r=t.n(c),l=t(4),u=t.n(l),d=t(32),p=t.n(d),f=t(0),m=t.n(f),g=t(153),h=t(90),v=t(43),b=function(e){function o(){var t,n,a;s()(this,o);for(var i=arguments.length,c=Array(i),l=0;l<i;l++)c[l]=arguments[l];return t=n=r()(this,e.call.apply(e,[this].concat(c))),n.handleHeaderClick=function(){var e=n.node.querySelector(".scrollable");e&&(n._interruptScrollAnimation=Object(h.b)(e))},n.handleScroll=p()(function(){void 0!==n._interruptScrollAnimation&&n._interruptScrollAnimation()},200),n.setRef=function(e){n.node=e},a=t,r()(n,a)}return u()(o,e),o.prototype.scrollTop=function(){var e=this.node.querySelector(".scrollable");e&&(this._interruptScrollAnimation=Object(h.b)(e))},o.prototype.render=function(){var e=this.props,o=e.heading,t=e.icon,n=e.children,i=e.active,s=e.hideHeadingOnMobile,c=o&&(!s||s&&!Object(v.b)(window.innerWidth)),r=c&&o.replace(/ /g,"-"),l=c&&a()(g.a,{icon:t,active:i,type:o,onClick:this.handleHeaderClick,columnHeaderId:r});return m.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":r,className:"column",onScroll:this.handleScroll},l,n)},o}(m.a.PureComponent)},284:function(e,o,t){"use strict";t.d(o,"a",function(){return h});var n,a,i=t(2),s=t.n(i),c=t(1),r=t.n(c),l=t(3),u=t.n(l),d=t(4),p=t.n(d),f=t(0),m=t.n(f),g=t(7),h=(a=n=function(e){function o(){return r()(this,o),u()(this,e.apply(this,arguments))}return p()(o,e),o.prototype.render=function(){var e=this.props,o=e.disabled,t=e.visible;return s()("button",{className:"load-more",disabled:o||!t,style:{visibility:t?"visible":"hidden"},onClick:this.props.onClick},void 0,s()(g.b,{id:"status.load_more",defaultMessage:"Load more"}))},o}(m.a.PureComponent),n.defaultProps={visible:!0},a)},285:function(e,o,t){"use strict";t.d(o,"a",function(){return b});var n,a,i=t(2),s=t.n(i),c=t(1),r=t.n(c),l=t(3),u=t.n(l),d=t(4),p=t.n(d),f=t(0),m=t.n(f),g=t(7),h=t(5),v=t.n(h),b=(a=n=function(e){function o(){var t,n,a;r()(this,o);for(var i=arguments.length,s=Array(i),c=0;c<i;c++)s[c]=arguments[c];return t=n=u()(this,e.call.apply(e,[this].concat(s))),n.handleClick=function(){window.history&&1===window.history.length?n.context.router.history.push("/"):n.context.router.history.goBack()},a=t,u()(n,a)}return p()(o,e),o.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"}))},o}(m.a.PureComponent),n.contextTypes={router:v.a.object},a)},838:function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),t.d(o,"default",function(){return A});var n,a,i,s,c,r,l=t(2),u=t.n(l),d=t(1),p=t.n(d),f=t(3),m=t.n(f),g=t(4),h=t.n(g),v=t(0),b=(t.n(v),t(9)),_=t(14),M=t.n(_),k=t(5),y=t.n(k),w=t(22),I=t(19),N=t(298),O=t(283),R=t(285),j=t(12),C=t.n(j),D=t(68),T=t(1010),x=t(887),q=t(154),B=t(284),S=function(e,o){return{medias:Object(D.a)(e,o.params.accountId),isLoading:e.getIn(["timelines","account:"+o.params.accountId+":media","isLoading"]),hasMore:e.getIn(["timelines","account:"+o.params.accountId+":media","hasMore"])}},H=(a=n=function(e){function o(){var t,n,a;p()(this,o);for(var i=arguments.length,s=Array(i),c=0;c<i;c++)s[c]=arguments[c];return t=n=m()(this,e.call.apply(e,[this].concat(s))),n.handleLoadMore=function(){n.props.onLoadMore(n.props.maxId)},a=t,m()(n,a)}return h()(o,e),o.prototype.render=function(){return u()(B.a,{disabled:this.props.disabled,onLoadMore:this.handleLoadMore})},o}(C.a),n.propTypes={maxId:y.a.string,onLoadMore:y.a.func.isRequired},a),A=(i=Object(b.connect)(S))((r=c=function(e){function o(){var t,n,a;p()(this,o);for(var i=arguments.length,s=Array(i),c=0;c<i;c++)s[c]=arguments[c];return t=n=m()(this,e.call.apply(e,[this].concat(s))),n.handleScrollToBottom=function(){n.props.hasMore&&n.handleLoadMore(n.props.medias.last().getIn(["status","id"]))},n.handleScroll=function(e){var o=e.target,t=o.scrollTop;150>o.scrollHeight-t-o.clientHeight&&!n.props.isLoading&&n.handleScrollToBottom()},n.handleLoadMore=function(e){n.props.dispatch(Object(I.k)(n.props.params.accountId,{maxId:e}))},n.handleLoadOlder=function(e){e.preventDefault(),n.handleScrollToBottom()},a=t,m()(n,a)}return h()(o,e),o.prototype.componentDidMount=function(){this.props.dispatch(Object(w.u)(this.props.params.accountId)),this.props.dispatch(Object(I.k)(this.props.params.accountId))},o.prototype.componentWillReceiveProps=function(e){e.params.accountId!==this.props.params.accountId&&e.params.accountId&&(this.props.dispatch(Object(w.u)(e.params.accountId)),this.props.dispatch(Object(I.k)(this.props.params.accountId)))},o.prototype.render=function(){var e=this.props,o=e.medias,t=e.isLoading,n=e.hasMore,a=null;return!o&&t?u()(O.a,{},void 0,u()(N.a,{})):(!t&&o.size>0&&n&&(a=u()(B.a,{onClick:this.handleLoadOlder})),u()(O.a,{},void 0,u()(R.a,{}),u()(q.a,{scrollKey:"account_gallery"},void 0,u()("div",{className:"scrollable",onScroll:this.handleScroll},void 0,u()(x.a,{accountId:this.props.params.accountId}),u()("div",{className:"account-gallery__container"},void 0,o.map(function(e,t){return null===e?u()(H,{maxId:t>0?o.getIn(t-1,"id"):null},"more:"+o.getIn(t+1,"id")):u()(T.a,{media:e},e.get("id"))}),a)))))},o}(C.a),c.propTypes={params:y.a.object.isRequired,dispatch:y.a.func.isRequired,medias:M.a.list.isRequired,isLoading:y.a.bool,hasMore:y.a.bool},s=r))||s},881:function(e,o,t){"use strict";var n=t(2),a=t.n(n),i=t(0),s=(t.n(i),t(7)),c=function(){return a()("div",{className:"regeneration-indicator missing-indicator"},void 0,a()("div",{},void 0,a()("div",{className:"regeneration-indicator__figure"}),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"}))))};o.a=c},887:function(e,o,t){"use strict";var n=t(2),a=t.n(n),i=t(0),s=(t.n(i),t(9)),c=t(68),r=t(888),l=t(22),u=t(17),d=t(89),p=t(155),f=t(26),m=t(158),g=t(7),h=t(13),v=Object(g.f)({unfollowConfirm:{id:"confirmations.unfollow.confirm",defaultMessage:"Unfollow"},blockConfirm:{id:"confirmations.block.confirm",defaultMessage:"Block"},blockDomainConfirm:{id:"confirmations.domain_block.confirm",defaultMessage:"Hide entire domain"}}),b=function(){var e=Object(c.c)();return function(o,t){var n=t.accountId;return{account:e(o,n)}}},_=function(e,o){var t=o.intl;return{onFollow:function(o){e(o.getIn(["relationship","following"])||o.getIn(["relationship","requested"])?h.j?Object(f.d)("CONFIRM",{message:a()(g.b,{id:"confirmations.unfollow.message",defaultMessage:"Are you sure you want to unfollow {name}?",values:{name:a()("strong",{},void 0,"@",o.get("acct"))}}),confirm:t.formatMessage(v.unfollowConfirm),onConfirm:function(){return e(Object(l.D)(o.get("id")))}}):Object(l.D)(o.get("id")):Object(l.z)(o.get("id")))},onBlock:function(o){e(o.getIn(["relationship","blocking"])?Object(l.C)(o.get("id")):Object(f.d)("CONFIRM",{message:a()(g.b,{id:"confirmations.block.message",defaultMessage:"Are you sure you want to block {name}?",values:{name:a()("strong",{},void 0,"@",o.get("acct"))}}),confirm:t.formatMessage(v.blockConfirm),onConfirm:function(){return e(Object(l.q)(o.get("id")))}}))},onMention:function(o,t){e(Object(u.R)(o,t))},onDirect:function(o,t){e(Object(u.N)(o,t))},onReblogToggle:function(o){e(o.getIn(["relationship","showing_reblogs"])?Object(l.z)(o.get("id"),!1):Object(l.z)(o.get("id"),!0))},onReport:function(o){e(Object(p.k)(o))},onMute:function(o){e(o.getIn(["relationship","muting"])?Object(l.E)(o.get("id")):Object(d.g)(o))},onBlockDomain:function(o){e(Object(f.d)("CONFIRM",{message:a()(g.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.",values:{domain:a()("strong",{},void 0,o)}}),confirm:t.formatMessage(v.blockDomainConfirm),onConfirm:function(){return e(Object(m.e)(o))}}))},onUnblockDomain:function(o){e(Object(m.h)(o))}}};o.a=Object(g.g)(Object(s.connect)(b,_)(r.a))},888:function(e,o,t){"use strict";t.d(o,"a",function(){return O});var n,a,i=t(2),s=t.n(i),c=t(1),r=t.n(c),l=t(3),u=t.n(l),d=t(4),p=t.n(d),f=t(0),m=(t.n(f),t(14)),g=t.n(m),h=t(5),v=t.n(h),b=t(889),_=t(890),M=t(881),k=t(12),y=t.n(k),w=t(891),I=t(7),N=t(44),O=(a=n=function(e){function o(){var t,n,a;r()(this,o);for(var i=arguments.length,s=Array(i),c=0;c<i;c++)s[c]=arguments[c];return t=n=u()(this,e.call.apply(e,[this].concat(s))),n.handleFollow=function(){n.props.onFollow(n.props.account)},n.handleBlock=function(){n.props.onBlock(n.props.account)},n.handleMention=function(){n.props.onMention(n.props.account,n.context.router.history)},n.handleDirect=function(){n.props.onDirect(n.props.account,n.context.router.history)},n.handleReport=function(){n.props.onReport(n.props.account)},n.handleReblogToggle=function(){n.props.onReblogToggle(n.props.account)},n.handleMute=function(){n.props.onMute(n.props.account)},n.handleBlockDomain=function(){var e=n.props.account.get("acct").split("@")[1];e&&n.props.onBlockDomain(e)},n.handleUnblockDomain=function(){var e=n.props.account.get("acct").split("@")[1];e&&n.props.onUnblockDomain(e)},a=t,u()(n,a)}return p()(o,e),o.prototype.render=function(){var e=this.props,o=e.account,t=e.hideTabs;return null===o?s()(M.a,{}):s()("div",{className:"account-timeline__header"},void 0,o.get("moved")&&s()(w.a,{from:o,to:o.get("moved")}),s()(b.a,{account:o,onFollow:this.handleFollow,onBlock:this.handleBlock}),s()(_.a,{account:o,onBlock:this.handleBlock,onMention:this.handleMention,onDirect:this.handleDirect,onReblogToggle:this.handleReblogToggle,onReport:this.handleReport,onMute:this.handleMute,onBlockDomain:this.handleBlockDomain,onUnblockDomain:this.handleUnblockDomain}),!t&&s()("div",{className:"account__section-headline"},void 0,s()(N.c,{exact:!0,to:"/accounts/"+o.get("id")},void 0,s()(I.b,{id:"account.posts",defaultMessage:"Toots"})),s()(N.c,{exact:!0,to:"/accounts/"+o.get("id")+"/with_replies"},void 0,s()(I.b,{id:"account.posts_with_replies",defaultMessage:"Toots and replies"})),s()(N.c,{exact:!0,to:"/accounts/"+o.get("id")+"/media"},void 0,s()(I.b,{id:"account.media",defaultMessage:"Media"}))))},o}(y.a),n.propTypes={account:g.a.map,onFollow:v.a.func.isRequired,onBlock:v.a.func.isRequired,onMention:v.a.func.isRequired,onDirect:v.a.func.isRequired,onReblogToggle:v.a.func.isRequired,onReport:v.a.func.isRequired,onMute:v.a.func.isRequired,onBlockDomain:v.a.func.isRequired,onUnblockDomain:v.a.func.isRequired,hideTabs:v.a.bool},n.contextTypes={router:v.a.object},a)},889:function(e,o,t){"use strict";t.d(o,"a",function(){return q});var n,a,i,s,c,r=t(2),l=t.n(r),u=t(1),d=t.n(u),p=t(3),f=t.n(p),m=t(4),g=t.n(m),h=t(0),v=(t.n(h),t(14)),b=t.n(v),_=t(5),M=t.n(_),k=t(7),y=t(23),w=t(27),I=t(28),N=t.n(I),O=t(12),R=t.n(O),j=t(13),C=t(10),D=t.n(C),T=Object(k.f)({unfollow:{id:"account.unfollow",defaultMessage:"Unfollow"},follow:{id:"account.follow",defaultMessage:"Follow"},requested:{id:"account.requested",defaultMessage:"Awaiting approval. Click to cancel follow request"},unblock:{id:"account.unblock",defaultMessage:"Unblock @{name}"}}),x=(a=n=function(e){function o(){var t,n,a;d()(this,o);for(var i=arguments.length,s=Array(i),c=0;c<i;c++)s[c]=arguments[c];return t=n=f()(this,e.call.apply(e,[this].concat(s))),n.state={isHovered:!1},n.handleMouseOver=function(){n.state.isHovered||n.setState({isHovered:!0})},n.handleMouseOut=function(){n.state.isHovered&&n.setState({isHovered:!1})},a=t,f()(n,a)}return g()(o,e),o.prototype.render=function(){var e=this,o=this.props.account,t=this.state.isHovered;return l()(w.a,{defaultStyle:{radius:90},style:{radius:N()(t?30:90,{stiffness:180,damping:12})}},void 0,function(n){var a=n.radius;return l()("a",{href:o.get("url"),className:"account__header__avatar",role:"presentation",target:"_blank",rel:"noopener",style:{borderRadius:a+"px",backgroundImage:"url("+(j.a||t?o.get("avatar"):o.get("avatar_static"))+")"},onMouseOver:e.handleMouseOver,onMouseOut:e.handleMouseOut,onFocus:e.handleMouseOver,onBlur:e.handleMouseOut},void 0,l()("span",{style:{display:"none"}},void 0,o.get("acct")))})},o}(R.a),n.propTypes={account:b.a.map.isRequired},a),q=Object(k.g)((c=s=function(e){function o(){return d()(this,o),f()(this,e.apply(this,arguments))}return g()(o,e),o.prototype.render=function(){var e=this.props,o=e.account,t=e.intl;if(!o)return null;var n="",a="",i="",s="";j.g!==o.get("id")&&o.getIn(["relationship","followed_by"])?n=l()("span",{className:"account--follows-info"},void 0,l()(k.b,{id:"account.follows_you",defaultMessage:"Follows you"})):j.g!==o.get("id")&&o.getIn(["relationship","blocking"])&&(n=l()("span",{className:"account--follows-info"},void 0,l()(k.b,{id:"account.blocked",defaultMessage:"Blocked"}))),j.g!==o.get("id")&&o.getIn(["relationship","muting"])?a=l()("span",{className:"account--muting-info"},void 0,l()(k.b,{id:"account.muted",defaultMessage:"Muted"})):j.g!==o.get("id")&&o.getIn(["relationship","domain_blocking"])&&(a=l()("span",{className:"account--muting-info"},void 0,l()(k.b,{id:"account.domain_blocked",defaultMessage:"Domain hidden"}))),j.g!==o.get("id")&&(o.getIn(["relationship","requested"])?i=l()("div",{className:"account--action-button"},void 0,l()(y.a,{size:26,active:!0,icon:"hourglass",title:t.formatMessage(T.requested),onClick:this.props.onFollow})):o.getIn(["relationship","blocking"])?o.getIn(["relationship","blocking"])&&(i=l()("div",{className:"account--action-button"},void 0,l()(y.a,{size:26,icon:"unlock-alt",title:t.formatMessage(T.unblock,{name:o.get("username")}),onClick:this.props.onBlock}))):i=l()("div",{className:"account--action-button"},void 0,l()(y.a,{size:26,icon:o.getIn(["relationship","following"])?"user-times":"user-plus",active:o.getIn(["relationship","following"]),title:t.formatMessage(o.getIn(["relationship","following"])?T.unfollow:T.follow),onClick:this.props.onFollow}))),o.get("moved")&&!o.getIn(["relationship","following"])&&(i=""),o.get("locked")&&(s=l()("i",{className:"fa fa-lock"}));var c={__html:o.get("note_emojified")},r={__html:o.get("display_name_html")},u=o.get("fields")||[],d=o.get("bot")?l()("div",{className:"roles"},void 0,l()("div",{className:"account-role bot"},void 0,l()(k.b,{id:"account.badges.bot",defaultMessage:"Bot"}))):null;return l()("div",{className:D()("account__header",{inactive:!!o.get("moved")}),style:{backgroundImage:"url("+o.get("header")+")"}},void 0,l()("div",{},void 0,l()(x,{account:o}),l()("span",{className:"account__header__display-name",dangerouslySetInnerHTML:r}),l()("span",{className:"account__header__username"},void 0,"@",o.get("acct")," ",s),d,l()("div",{className:"account__header__content",dangerouslySetInnerHTML:c}),u.size>0&&l()("div",{className:"account__header__fields"},void 0,u.map(function(e,o){return l()("dl",{},o,l()("dt",{dangerouslySetInnerHTML:{__html:e.get("name_emojified")},title:e.get("name")}),l()("dd",{dangerouslySetInnerHTML:{__html:e.get("value_emojified")},title:e.get("value_plain")}))})),n,a,i))},o}(R.a),s.propTypes={account:b.a.map,onFollow:M.a.func.isRequired,onBlock:M.a.func.isRequired,intl:M.a.object.isRequired},i=c))||i},890:function(e,o,t){"use strict";t.d(o,"a",function(){return _});var n,a=t(2),i=t.n(a),s=t(1),c=t.n(s),r=t(3),l=t.n(r),u=t(4),d=t.n(u),p=t(0),f=t.n(p),m=t(300),g=t(44),h=t(7),v=t(13),b=Object(h.f)({mention:{id:"account.mention",defaultMessage:"Mention @{name}"},direct:{id:"account.direct",defaultMessage:"Direct message @{name}"},edit_profile:{id:"account.edit_profile",defaultMessage:"Edit profile"},unblock:{id:"account.unblock",defaultMessage:"Unblock @{name}"},unfollow:{id:"account.unfollow",defaultMessage:"Unfollow"},unmute:{id:"account.unmute",defaultMessage:"Unmute @{name}"},block:{id:"account.block",defaultMessage:"Block @{name}"},mute:{id:"account.mute",defaultMessage:"Mute @{name}"},follow:{id:"account.follow",defaultMessage:"Follow"},report:{id:"account.report",defaultMessage:"Report @{name}"},share:{id:"account.share",defaultMessage:"Share @{name}'s profile"},media:{id:"account.media",defaultMessage:"Media"},blockDomain:{id:"account.block_domain",defaultMessage:"Hide everything from {domain}"},unblockDomain:{id:"account.unblock_domain",defaultMessage:"Unhide {domain}"},hideReblogs:{id:"account.hide_reblogs",defaultMessage:"Hide boosts from @{name}"},showReblogs:{id:"account.show_reblogs",defaultMessage:"Show boosts from @{name}"}}),_=Object(h.g)(n=function(e){function o(){var t,n,a;c()(this,o);for(var i=arguments.length,s=Array(i),r=0;r<i;r++)s[r]=arguments[r];return t=n=l()(this,e.call.apply(e,[this].concat(s))),n.handleShare=function(){navigator.share({url:n.props.account.get("url")})},a=t,l()(n,a)}return d()(o,e),o.prototype.render=function(){var e=this.props,o=e.account,t=e.intl,n=[],a="";if(n.push({text:t.formatMessage(b.mention,{name:o.get("username")}),action:this.props.onMention}),n.push({text:t.formatMessage(b.direct,{name:o.get("username")}),action:this.props.onDirect}),"share"in navigator&&n.push({text:t.formatMessage(b.share,{name:o.get("username")}),action:this.handleShare}),n.push(null),o.get("id")===v.g?n.push({text:t.formatMessage(b.edit_profile),href:"/user-settings"}):(o.getIn(["relationship","following"])&&(o.getIn(["relationship","showing_reblogs"])?n.push({text:t.formatMessage(b.hideReblogs,{name:o.get("username")}),action:this.props.onReblogToggle}):n.push({text:t.formatMessage(b.showReblogs,{name:o.get("username")}),action:this.props.onReblogToggle})),o.getIn(["relationship","muting"])?n.push({text:t.formatMessage(b.unmute,{name:o.get("username")}),action:this.props.onMute}):n.push({text:t.formatMessage(b.mute,{name:o.get("username")}),action:this.props.onMute}),o.getIn(["relationship","blocking"])?n.push({text:t.formatMessage(b.unblock,{name:o.get("username")}),action:this.props.onBlock}):n.push({text:t.formatMessage(b.block,{name:o.get("username")}),action:this.props.onBlock}),n.push({text:t.formatMessage(b.report,{name:o.get("username")}),action:this.props.onReport})),o.get("acct")!==o.get("username")){var s=o.get("acct").split("@")[1];a=i()("div",{className:"account__disclaimer"},void 0,i()(h.b,{id:"account.disclaimer_full",defaultMessage:"Information below may reflect the user's profile incompletely."})," ",i()("a",{target:"_blank",rel:"noopener",href:o.get("url")},void 0,i()(h.b,{id:"account.view_full_profile",defaultMessage:"View full profile"}))),n.push(null),o.getIn(["relationship","domain_blocking"])?n.push({text:t.formatMessage(b.unblockDomain,{domain:s}),action:this.props.onUnblockDomain}):n.push({text:t.formatMessage(b.blockDomain,{domain:s}),action:this.props.onBlockDomain})}return i()("div",{},void 0,a,i()("div",{className:"account__action-bar"},void 0,i()("div",{className:"account__action-bar-dropdown"},void 0,i()(m.a,{items:n,icon:"bars",size:24,direction:"right"})),i()("div",{className:"account__action-bar-links"},void 0,i()(g.b,{className:"account__action-bar__tab",to:"/accounts/"+o.get("id")},void 0,i()("span",{},void 0,i()(h.b,{id:"account.posts",defaultMessage:"Toots"})),i()("strong",{},void 0,i()(h.c,{value:o.get("statuses_count")}))),i()(g.b,{className:"account__action-bar__tab",to:"/accounts/"+o.get("id")+"/following"},void 0,i()("span",{},void 0,i()(h.b,{id:"account.follows",defaultMessage:"Follows"})),i()("strong",{},void 0,i()(h.c,{value:o.get("following_count")}))),i()(g.b,{className:"account__action-bar__tab",to:"/accounts/"+o.get("id")+"/followers"},void 0,i()("span",{},void 0,i()(h.b,{id:"account.followers",defaultMessage:"Followers"})),i()("strong",{},void 0,i()(h.c,{value:o.get("followers_count")}))))))},o}(f.a.PureComponent))||n},891:function(e,o,t){"use strict";t.d(o,"a",function(){return w});var n,a,i=t(2),s=t.n(i),c=t(1),r=t.n(c),l=t(3),u=t.n(l),d=t(4),p=t.n(d),f=t(0),m=(t.n(f),t(5)),g=t.n(m),h=t(14),v=t.n(h),b=t(7),_=t(12),M=t.n(_),k=t(301),y=t(53),w=(a=n=function(e){function o(){var t,n,a;r()(this,o);for(var i=arguments.length,s=Array(i),c=0;c<i;c++)s[c]=arguments[c];return t=n=u()(this,e.call.apply(e,[this].concat(s))),n.handleAccountClick=function(e){0===e.button&&(e.preventDefault(),n.context.router.history.push("/accounts/"+n.props.to.get("id"))),e.stopPropagation()},a=t,u()(n,a)}return p()(o,e),o.prototype.render=function(){var e=this.props,o=e.from,t=e.to,n={__html:o.get("display_name_html")};return s()("div",{className:"account__moved-note"},void 0,s()("div",{className:"account__moved-note__message"},void 0,s()("div",{className:"account__moved-note__icon-wrapper"},void 0,s()("i",{className:"fa fa-fw fa-suitcase account__moved-note__icon"})),s()(b.b,{id:"account.moved_to",defaultMessage:"{name} has moved to:",values:{name:s()("bdi",{},void 0,s()("strong",{dangerouslySetInnerHTML:n}))}})),s()("a",{href:t.get("url"),onClick:this.handleAccountClick,className:"detailed-status__display-name"},void 0,s()("div",{className:"detailed-status__display-avatar"},void 0,s()(k.a,{account:t,friend:o})),s()(y.a,{account:t})))},o}(M.a),n.contextTypes={router:g.a.object},n.propTypes={from:v.a.map.isRequired,to:v.a.map.isRequired},a)}});
+(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{863:function(t,e,a){"use strict";a.r(e),a.d(e,"default",(function(){return z}));var n=a(0),o=a(2),c=a(9),i=a(6),s=a(8),r=a(1),l=a(3),d=a.n(l),p=a(15),u=a(16),h=a.n(u),b=a(5),m=a.n(b),f=a(26),O=a(36),g=a(306),j=a(757),v=a(764),y=a(21),_=a(210),I=a(215),M=a(14),L=a.n(M),w=a(27),R=a(22),x=a(120);var S=function(t){Object(s.a)(a,t);var e;e=a;function a(){for(var e,a=arguments.length,n=new Array(a),c=0;c<a;c++)n[c]=arguments[c];return e=t.call.apply(t,[this].concat(n))||this,Object(r.a)(Object(o.a)(e),"state",{visible:"hide_all"!==R.g&&!e.props.attachment.getIn(["status","sensitive"])||"show_all"===R.g,loaded:!1}),Object(r.a)(Object(o.a)(e),"setCanvasRef",(function(t){e.canvas=t})),Object(r.a)(Object(o.a)(e),"handleImageLoad",(function(){e.setState({loaded:!0})})),Object(r.a)(Object(o.a)(e),"handleMouseEnter",(function(t){e.hoverToPlay()&&t.target.play()})),Object(r.a)(Object(o.a)(e),"handleMouseLeave",(function(t){e.hoverToPlay()&&(t.target.pause(),t.target.currentTime=0)})),Object(r.a)(Object(o.a)(e),"handleClick",(function(t){0!==t.button||t.ctrlKey||t.metaKey||(t.preventDefault(),e.state.visible?e.props.onOpenMedia(e.props.attachment):e.setState({visible:!0}))})),e}var c=a.prototype;return c.componentDidMount=function(){this.props.attachment.get("blurhash")&&this._decode()},c.componentDidUpdate=function(t){t.attachment.get("blurhash")!==this.props.attachment.get("blurhash")&&this.props.attachment.get("blurhash")&&this._decode()},c._decode=function(){var t=this.props.attachment.get("blurhash"),e=Object(I.decode)(t,32,32);if(e){var a=this.canvas.getContext("2d"),n=new ImageData(e,32,32);a.putImageData(n,0,0)}},c.hoverToPlay=function(){return!R.a&&-1!==["gifv","video"].indexOf(this.props.attachment.get("type"))},c.render=function(){var t,e=this.props,a=e.attachment,o=e.displayWidth,c=this.state,i=c.visible,s=c.loaded,r=Math.floor((o-4)/3)-4+"px",l=r,p=a.get("status"),u=p.get("spoiler_text")||a.get("description"),h="";if("unknown"===a.get("type"));else if("audio"===a.get("type"))h=Object(n.a)("span",{className:"account-gallery__item__icons"},void 0,Object(n.a)(w.a,{id:"music"}));else if("image"===a.get("type")){var b=100*((a.getIn(["meta","focus","x"])||0)/2+.5),m=100*((a.getIn(["meta","focus","y"])||0)/-2+.5);h=Object(n.a)("img",{src:a.get("preview_url"),alt:a.get("description"),title:a.get("description"),style:{objectPosition:b+"% "+m+"%"},onLoad:this.handleImageLoad})}else if(-1!==["gifv","video"].indexOf(a.get("type"))){var f=!Object(x.a)()&&R.a,O="video"===a.get("type")?Object(n.a)(w.a,{id:"play"}):"GIF";h=Object(n.a)("div",{className:L()("media-gallery__gifv",{autoplay:f})},void 0,Object(n.a)("video",{className:"media-gallery__item-gifv-thumbnail","aria-label":a.get("description"),title:a.get("description"),role:"application",src:a.get("url"),onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,autoPlay:f,loop:!0,muted:!0}),Object(n.a)("span",{className:"media-gallery__gifv__label"},void 0,O))}return i||(t=Object(n.a)("span",{className:"account-gallery__item__icons"},void 0,Object(n.a)(w.a,{id:"eye-slash"}))),Object(n.a)("div",{className:"account-gallery__item",style:{width:r,height:l}},void 0,Object(n.a)("a",{className:"media-gallery__item-thumbnail",href:p.get("url"),onClick:this.handleClick,title:u,target:"_blank",rel:"noopener noreferrer"},void 0,d.a.createElement("canvas",{width:32,height:32,ref:this.setCanvasRef,className:L()("media-gallery__preview",{"media-gallery__preview--hidden":i&&s})}),i&&h,!i&&t))},a}(y.a);Object(r.a)(S,"propTypes",{attachment:h.a.map.isRequired,displayWidth:m.a.number.isRequired,onOpenMedia:m.a.func.isRequired});var D,C,N,T=a(1084),A=a(472),k=a(1081),q=a(1057),E=a(48);function P(t){return function(){var e,a=Object(i.a)(t);if(U()){var n=Object(i.a)(this).constructor;e=Reflect.construct(a,arguments,n)}else e=a.apply(this,arguments);return Object(c.a)(this,e)}}function U(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var W=function(t){Object(s.a)(e,t);P(e);function e(){for(var e,a=arguments.length,n=new Array(a),c=0;c<a;c++)n[c]=arguments[c];return e=t.call.apply(t,[this].concat(n))||this,Object(r.a)(Object(o.a)(e),"handleLoadMore",(function(){e.props.onLoadMore(e.props.maxId)})),e}return e.prototype.render=function(){return Object(n.a)(k.a,{disabled:this.props.disabled,onClick:this.handleLoadMore})},e}(y.a);Object(r.a)(W,"propTypes",{shouldUpdateScroll:m.a.func,maxId:m.a.string,onLoadMore:m.a.func.isRequired});var z=Object(p.connect)((function(t,e){return{isAccount:!!t.getIn(["accounts",e.params.accountId]),attachments:Object(_.a)(t,e.params.accountId),isLoading:t.getIn(["timelines","account:"+e.params.accountId+":media","isLoading"]),hasMore:t.getIn(["timelines","account:"+e.params.accountId+":media","hasMore"])}}))((N=C=function(t){Object(s.a)(e,t);P(e);function e(){for(var e,a=arguments.length,n=new Array(a),c=0;c<a;c++)n[c]=arguments[c];return e=t.call.apply(t,[this].concat(n))||this,Object(r.a)(Object(o.a)(e),"state",{width:323}),Object(r.a)(Object(o.a)(e),"handleScrollToBottom",(function(){e.props.hasMore&&e.handleLoadMore(e.props.attachments.size>0?e.props.attachments.last().getIn(["status","id"]):void 0)})),Object(r.a)(Object(o.a)(e),"handleScroll",(function(t){var a=t.target,n=a.scrollTop;150>a.scrollHeight-n-a.clientHeight&&!e.props.isLoading&&e.handleScrollToBottom()})),Object(r.a)(Object(o.a)(e),"handleLoadMore",(function(t){e.props.dispatch(Object(O.p)(e.props.params.accountId,{maxId:t}))})),Object(r.a)(Object(o.a)(e),"handleLoadOlder",(function(t){t.preventDefault(),e.handleScrollToBottom()})),Object(r.a)(Object(o.a)(e),"handleOpenMedia",(function(t){if("video"===t.get("type"))e.props.dispatch(Object(E.d)("VIDEO",{media:t,status:t.get("status")}));else if("audio"===t.get("type"))e.props.dispatch(Object(E.d)("AUDIO",{media:t,status:t.get("status")}));else{var a=t.getIn(["status","media_attachments"]),n=a.findIndex((function(e){return e.get("id")===t.get("id")}));e.props.dispatch(Object(E.d)("MEDIA",{media:a,index:n,status:t.get("status")}))}})),Object(r.a)(Object(o.a)(e),"handleRef",(function(t){t&&e.setState({width:t.offsetWidth})})),e}var a=e.prototype;return a.componentDidMount=function(){this.props.dispatch(Object(f.A)(this.props.params.accountId)),this.props.dispatch(Object(O.p)(this.props.params.accountId))},a.componentWillReceiveProps=function(t){t.params.accountId!==this.props.params.accountId&&t.params.accountId&&(this.props.dispatch(Object(f.A)(t.params.accountId)),this.props.dispatch(Object(O.p)(this.props.params.accountId)))},a.render=function(){var t=this,e=this.props,a=e.attachments,o=e.shouldUpdateScroll,c=e.isLoading,i=e.hasMore,s=e.isAccount,r=e.multiColumn,l=this.state.width;if(!s)return Object(n.a)(j.a,{},void 0,Object(n.a)(q.a,{}));if(!a&&c)return Object(n.a)(j.a,{},void 0,Object(n.a)(g.a,{}));var p=null;return!i||c&&0===a.size||(p=Object(n.a)(k.a,{visible:!c,onClick:this.handleLoadOlder})),Object(n.a)(j.a,{},void 0,Object(n.a)(v.a,{multiColumn:r}),Object(n.a)(A.a,{scrollKey:"account_gallery",shouldUpdateScroll:o},void 0,Object(n.a)("div",{className:"scrollable scrollable--flex",onScroll:this.handleScroll},void 0,Object(n.a)(T.a,{accountId:this.props.params.accountId}),d.a.createElement("div",{role:"feed",className:"account-gallery__container",ref:this.handleRef},a.map((function(e,o){return null===e?Object(n.a)(W,{maxId:o>0?a.getIn(o-1,"id"):null,onLoadMore:t.handleLoadMore},"more:"+a.getIn(o+1,"id")):Object(n.a)(S,{attachment:e,displayWidth:l,onOpenMedia:t.handleOpenMedia},e.get("id"))})),p),c&&0===a.size&&Object(n.a)("div",{className:"scrollable__append"},void 0,Object(n.a)(g.a,{})))))},e}(y.a),Object(r.a)(C,"propTypes",{params:m.a.object.isRequired,dispatch:m.a.func.isRequired,attachments:h.a.list.isRequired,isLoading:m.a.bool,hasMore:m.a.bool,isAccount:m.a.bool,multiColumn:m.a.bool}),D=N))||D}}]);
//# sourceMappingURL=account_gallery.js.map
\ No newline at end of file