distraction.party/priv/static/packs/features/account_gallery.js
2018-06-02 16:11:38 +02:00

2 lines
No EOL
23 KiB
JavaScript

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)}});
//# sourceMappingURL=account_gallery.js.map