pleroma/priv/static/packs/features/account_gallery.js

2 lines
24 KiB
JavaScript

webpackJsonp([17],{1001:function(e,o,t){"use strict";t.d(o,"a",function(){return M});var n,a,i=t(2),s=t.n(i),r=t(1),c=t.n(r),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(287),_=t(13),M=(a=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=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),r=100*(a/-2+.5),c={},l=void 0,u=void 0;return"gifv"===e.get("type")&&(l=s()("span",{className:"media-gallery__gifv__label"},void 0,"GIF")),o?(c.backgroundImage="url("+e.get("preview_url")+")",c.backgroundPosition=i+"% "+r+"%"):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:c,onInterceptClick:this.handleClick},void 0,u,l))},o}(v.a),n.propTypes={media:g.a.map.isRequired},a)},155: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),r=t(3),c=t.n(r),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,r=Array(i),l=0;l<i;l++)r[l]=arguments[l];return t=n=c()(this,e.call.apply(e,[this].concat(r))),n.handleClick=function(){n.props.onClick()},a=t,c()(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)},274: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),r=t(3),c=t.n(r),l=t(4),u=t.n(l),d=t(32),p=t.n(d),f=t(0),m=t.n(f),g=t(155),h=t(91),v=t(43),b=function(e){function o(){var t,n,a;s()(this,o);for(var i=arguments.length,r=Array(i),l=0;l<i;l++)r[l]=arguments[l];return t=n=c()(this,e.call.apply(e,[this].concat(r))),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,c()(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,r=o&&(!s||s&&!Object(v.b)(window.innerWidth)),c=r&&o.replace(/ /g,"-"),l=r&&a()(g.a,{icon:t,active:i,type:o,onClick:this.handleHeaderClick,columnHeaderId:c});return m.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":c,className:"column",onScroll:this.handleScroll},l,n)},o}(m.a.PureComponent)},275:function(e,o,t){"use strict";t.d(o,"a",function(){return h});var n,a,i=t(2),s=t.n(i),r=t(1),c=t.n(r),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 c()(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)},276:function(e,o,t){"use strict";t.d(o,"a",function(){return b});var n,a,i=t(2),s=t.n(i),r=t(1),c=t.n(r),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;c()(this,o);for(var i=arguments.length,s=Array(i),r=0;r<i;r++)s[r]=arguments[r];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)},823:function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),t.d(o,"default",function(){return H});var n,a,i,s,r,c,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(289),O=t(274),j=t(276),R=t(12),C=t.n(R),x=t(67),D=t(1001),q=t(878),T=t(156),B=t(275),S=function(e,o){return{medias:Object(x.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"])}},F=(a=n=function(e){function o(){var t,n,a;p()(this,o);for(var i=arguments.length,s=Array(i),r=0;r<i;r++)s[r]=arguments[r];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),H=(i=Object(b.connect)(S))((c=r=function(e){function o(){var t,n,a;p()(this,o);for(var i=arguments.length,s=Array(i),r=0;r<i;r++)s[r]=arguments[r];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()(j.a,{}),u()(T.a,{scrollKey:"account_gallery"},void 0,u()("div",{className:"scrollable",onScroll:this.handleScroll},void 0,u()(q.a,{accountId:this.props.params.accountId}),u()("div",{className:"account-gallery__container"},void 0,o.map(function(e,t){return null===e?u()(F,{maxId:t>0?o.getIn(t-1,"id"):null},"more:"+o.getIn(t+1,"id")):u()(D.a,{media:e},e.get("id"))}),a)))))},o}(C.a),r.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=c))||s},866:function(e,o,t){"use strict";var n=t(2),a=t.n(n),i=t(0),s=(t.n(i),t(7)),r=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=r},871:function(e,o,t){"use strict";t.d(o,"a",function(){return r});var n=t(2),a=t.n(n),i=t(0),s=(t.n(i),t(7)),r=function(e){return e<1e3?a()(s.c,{value:e}):a()(i.Fragment,{},void 0,a()(s.c,{value:e/1e3,maximumFractionDigits:1}),"K")}},878:function(e,o,t){"use strict";var n=t(2),a=t.n(n),i=t(0),s=(t.n(i),t(9)),r=t(67),c=t(879),l=t(22),u=t(17),d=t(90),p=t(157),f=t(26),m=t(160),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(r.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.l?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. You will not see content from that domain in any public timelines or your notifications. Your followers from that domain will be removed.",values:{domain: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,_)(c.a))},879:function(e,o,t){"use strict";t.d(o,"a",function(){return O});var n,a,i=t(2),s=t.n(i),r=t(1),c=t.n(r),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(880),_=t(881),M=t(866),k=t(12),y=t.n(k),w=t(882),I=t(7),N=t(44),O=(a=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=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)},880:function(e,o,t){"use strict";t.d(o,"a",function(){return D});var n,a,i,s,r,c=t(2),l=t.n(c),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.n(w),t(12)),N=t.n(I),O=t(13),j=t(10),R=t.n(j),C=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}"},edit_profile:{id:"account.edit_profile",defaultMessage:"Edit profile"}}),x=(a=n=function(e){function o(){var t,n,a;d()(this,o);for(var i=arguments.length,s=Array(i),r=0;r<i;r++)s[r]=arguments[r];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.props.account,o=this.state.isHovered;return l()("a",{href:e.get("url"),className:"account__header__avatar",role:"presentation",target:"_blank",rel:"noopener",style:{backgroundImage:"url("+(O.a||o?e.get("avatar"):e.get("avatar_static"))+")"},onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut,onFocus:this.handleMouseOver,onBlur:this.handleMouseOut},void 0,l()("span",{style:{display:"none"}},void 0,e.get("acct")))},o}(N.a),n.propTypes={account:b.a.map.isRequired},a),D=Object(k.g)((r=s=function(e){function o(){var t,n,a;d()(this,o);for(var i=arguments.length,s=Array(i),r=0;r<i;r++)s[r]=arguments[r];return t=n=f()(this,e.call.apply(e,[this].concat(s))),n.openEditProfile=function(){window.open("/user-settings","_blank")},a=t,f()(n,a)}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="";O.i!==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"})):O.i!==o.get("id")&&o.getIn(["relationship","blocking"])&&(n=l()("span",{className:"account--follows-info"},void 0,l()(k.b,{id:"account.blocked",defaultMessage:"Blocked"}))),O.i!==o.get("id")&&o.getIn(["relationship","muting"])?a=l()("span",{className:"account--muting-info"},void 0,l()(k.b,{id:"account.muted",defaultMessage:"Muted"})):O.i!==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"}))),O.i!==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(C.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(C.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"])?C.unfollow:C.follow),onClick:this.props.onFollow})):i=l()("div",{className:"account--action-button"},void 0,l()(y.a,{size:26,icon:"pencil",title:t.formatMessage(C.edit_profile),onClick:this.openEditProfile})),o.get("moved")&&!o.getIn(["relationship","following"])&&(i=""),o.get("locked")&&(s=l()("i",{className:"fa fa-lock"}));var r={__html:o.get("note_emojified")},c={__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:R()("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:c}),l()("span",{className:"account__header__username"},void 0,"@",o.get("acct")," ",s),d,l()("div",{className:"account__header__content",dangerouslySetInnerHTML:r}),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}(N.a),s.propTypes={account:b.a.map,onFollow:M.a.func.isRequired,onBlock:M.a.func.isRequired,intl:M.a.object.isRequired},i=r))||i},881:function(e,o,t){"use strict";t.d(o,"a",function(){return M});var n,a=t(2),i=t.n(a),s=t(1),r=t.n(s),c=t(3),l=t.n(c),u=t(4),d=t.n(u),p=t(0),f=t.n(p),m=t(291),g=t(44),h=t(7),v=t(13),b=t(871),_=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}"},pins:{id:"navigation_bar.pins",defaultMessage:"Pinned toots"},preferences:{id:"navigation_bar.preferences",defaultMessage:"Preferences"},follow_requests:{id:"navigation_bar.follow_requests",defaultMessage:"Follow requests"},favourites:{id:"navigation_bar.favourites",defaultMessage:"Favourites"},lists:{id:"navigation_bar.lists",defaultMessage:"Lists"},blocks:{id:"navigation_bar.blocks",defaultMessage:"Blocked users"},domain_blocks:{id:"navigation_bar.domain_blocks",defaultMessage:"Hidden domains"},mutes:{id:"navigation_bar.mutes",defaultMessage:"Muted users"}}),M=Object(h.g)(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=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(o.get("id")!==v.i&&(n.push({text:t.formatMessage(_.mention,{name:o.get("username")}),action:this.props.onMention}),n.push({text:t.formatMessage(_.direct,{name:o.get("username")}),action:this.props.onDirect}),n.push(null)),"share"in navigator&&(n.push({text:t.formatMessage(_.share,{name:o.get("username")}),action:this.handleShare}),n.push(null)),o.get("id")===v.i?(n.push({text:t.formatMessage(_.preferences),href:"/user-settings"}),n.push({text:t.formatMessage(_.pins),to:"/pinned"}),n.push(null),n.push({text:t.formatMessage(_.follow_requests),to:"/follow_requests"}),n.push({text:t.formatMessage(_.favourites),to:"/favourites"}),n.push({text:t.formatMessage(_.lists),to:"/lists"}),n.push(null),n.push({text:t.formatMessage(_.mutes),to:"/mutes"}),n.push({text:t.formatMessage(_.blocks),to:"/blocks"}),n.push({text:t.formatMessage(_.domain_blocks),to:"/domain_blocks"})):(o.getIn(["relationship","following"])&&(o.getIn(["relationship","showing_reblogs"])?n.push({text:t.formatMessage(_.hideReblogs,{name:o.get("username")}),action:this.props.onReblogToggle}):n.push({text:t.formatMessage(_.showReblogs,{name:o.get("username")}),action:this.props.onReblogToggle})),o.getIn(["relationship","muting"])?n.push({text:t.formatMessage(_.unmute,{name:o.get("username")}),action:this.props.onMute}):n.push({text:t.formatMessage(_.mute,{name:o.get("username")}),action:this.props.onMute}),o.getIn(["relationship","blocking"])?n.push({text:t.formatMessage(_.unblock,{name:o.get("username")}),action:this.props.onBlock}):n.push({text:t.formatMessage(_.block,{name:o.get("username")}),action:this.props.onBlock}),n.push({text:t.formatMessage(_.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(_.unblockDomain,{domain:s}),action:this.props.onUnblockDomain}):n.push({text:t.formatMessage(_.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-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,Object(b.a)(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,Object(b.a)(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,Object(b.a)(o.get("followers_count"))))),i()("div",{className:"account__action-bar-dropdown"},void 0,i()(m.a,{items:n,icon:"ellipsis-v",size:24,direction:"right"}))))},o}(f.a.PureComponent))||n},882:function(e,o,t){"use strict";t.d(o,"a",function(){return w});var n,a,i=t(2),s=t.n(i),r=t(1),c=t.n(r),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(292),y=t(53),w=(a=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=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