akkoma/priv/static/packs/features/followers.js
2018-08-12 18:02:43 +02:00

2 lines
No EOL
26 KiB
JavaScript

webpackJsonp([14],{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),c=t(3),r=t.n(c),l=t(4),u=t.n(l),d=t(0),f=t.n(d),p=t(10),m=t.n(p),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}(f.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),c=t(3),r=t.n(c),l=t(4),u=t.n(l),d=t(32),f=t.n(d),p=t(0),m=t.n(p),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,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=f()(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)},275: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),f=t.n(d),p=t(0),m=t.n(p),g=t(7),h=(a=n=function(e){function o(){return r()(this,o),u()(this,e.apply(this,arguments))}return f()(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),c=t(1),r=t.n(c),l=t(3),u=t.n(l),d=t(4),f=t.n(d),p=t(0),m=t.n(p),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 f()(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)},824:function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),t.d(o,"default",function(){return x});var n,a,i,s,c=t(2),r=t.n(c),l=t(1),u=t.n(l),d=t(3),f=t.n(d),p=t(4),m=t.n(p),g=t(0),h=(t.n(g),t(9)),v=t(5),b=t.n(v),_=t(14),M=t.n(_),k=t(289),w=t(22),y=t(156),O=t(864),I=t(274),N=t(878),j=t(275),R=t(276),C=t(12),q=t.n(C),D=function(e,o){return{accountIds:e.getIn(["user_lists","followers",o.params.accountId,"items"]),hasMore:!!e.getIn(["user_lists","followers",o.params.accountId,"next"])}},x=(n=Object(h.connect)(D))((s=i=function(e){function o(){var t,n,a;u()(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.handleScroll=function(e){var o=e.target;o.scrollTop===o.scrollHeight-o.clientHeight&&n.props.hasMore&&n.props.dispatch(Object(w.s)(n.props.params.accountId))},n.handleLoadMore=function(e){e.preventDefault(),n.props.dispatch(Object(w.s)(n.props.params.accountId))},a=t,f()(n,a)}return m()(o,e),o.prototype.componentWillMount=function(){this.props.dispatch(Object(w.u)(this.props.params.accountId)),this.props.dispatch(Object(w.w)(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(w.w)(e.params.accountId)))},o.prototype.render=function(){var e=this.props,o=e.accountIds,t=e.hasMore,n=null;return o?(t&&(n=r()(j.a,{onClick:this.handleLoadMore})),r()(I.a,{},void 0,r()(R.a,{}),r()(y.a,{scrollKey:"followers"},void 0,r()("div",{className:"scrollable",onScroll:this.handleScroll},void 0,r()("div",{className:"followers"},void 0,r()(N.a,{accountId:this.props.params.accountId,hideTabs:!0}),o.map(function(e){return r()(O.a,{id:e,withNote:!1},e)}),n))))):r()(I.a,{},void 0,r()(k.a,{}))},o}(q.a),i.propTypes={params:b.a.object.isRequired,dispatch:b.a.func.isRequired,accountIds:M.a.list,hasMore:b.a.bool},a=s))||a},864: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(7),r=t(67),l=t(865),u=t(22),d=t(26),f=t(90),p=t(13),m=Object(c.f)({unfollowConfirm:{id:"confirmations.unfollow.confirm",defaultMessage:"Unfollow"}}),g=function(){var e=Object(r.c)();return function(o,t){return{account:e(o,t.id)}}},h=function(e,o){var t=o.intl;return{onFollow:function(o){e(o.getIn(["relationship","following"])||o.getIn(["relationship","requested"])?p.l?Object(d.d)("CONFIRM",{message:a()(c.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(m.unfollowConfirm),onConfirm:function(){return e(Object(u.D)(o.get("id")))}}):Object(u.D)(o.get("id")):Object(u.z)(o.get("id")))},onBlock:function(o){e(o.getIn(["relationship","blocking"])?Object(u.C)(o.get("id")):Object(u.q)(o.get("id")))},onMute:function(o){e(o.getIn(["relationship","muting"])?Object(u.E)(o.get("id")):Object(f.g)(o))},onMuteNotifications:function(o,t){e(Object(u.A)(o.get("id"),t))}}};o.a=Object(c.g)(Object(s.connect)(g,h)(l.a))},865:function(e,o,t){"use strict";t.d(o,"a",function(){return R});var n,a,i,s=t(2),c=t.n(s),r=t(1),l=t.n(r),u=t(3),d=t.n(u),f=t(4),p=t.n(f),m=t(0),g=(t.n(m),t(14)),h=t.n(g),v=t(5),b=t.n(v),_=t(54),M=t(53),k=t(287),w=t(23),y=t(7),O=t(12),I=t.n(O),N=t(13),j=Object(y.f)({follow:{id:"account.follow",defaultMessage:"Follow"},unfollow:{id:"account.unfollow",defaultMessage:"Unfollow"},requested:{id:"account.requested",defaultMessage:"Awaiting approval"},unblock:{id:"account.unblock",defaultMessage:"Unblock @{name}"},unmute:{id:"account.unmute",defaultMessage:"Unmute @{name}"},mute_notifications:{id:"account.mute_notifications",defaultMessage:"Mute notifications from @{name}"},unmute_notifications:{id:"account.unmute_notifications",defaultMessage:"Unmute notifications from @{name}"}}),R=Object(y.g)((i=a=function(e){function o(){var t,n,a;l()(this,o);for(var i=arguments.length,s=Array(i),c=0;c<i;c++)s[c]=arguments[c];return t=n=d()(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.handleMute=function(){n.props.onMute(n.props.account)},n.handleMuteNotifications=function(){n.props.onMuteNotifications(n.props.account,!0)},n.handleUnmuteNotifications=function(){n.props.onMuteNotifications(n.props.account,!1)},a=t,d()(n,a)}return p()(o,e),o.prototype.render=function(){var e=this.props,o=e.account,t=e.intl,n=e.hidden;if(!o)return c()("div",{});if(n)return c()("div",{},void 0,o.get("display_name"),o.get("username"));var a=void 0;if(o.get("id")!==N.i&&null!==o.get("relationship",null)){var i=o.getIn(["relationship","following"]),s=o.getIn(["relationship","requested"]),r=o.getIn(["relationship","blocking"]),l=o.getIn(["relationship","muting"]);if(s)a=c()(w.a,{disabled:!0,icon:"hourglass",title:t.formatMessage(j.requested)});else if(r)a=c()(w.a,{active:!0,icon:"unlock-alt",title:t.formatMessage(j.unblock,{name:o.get("username")}),onClick:this.handleBlock});else if(l){var u=void 0;u=o.getIn(["relationship","muting_notifications"])?c()(w.a,{active:!0,icon:"bell",title:t.formatMessage(j.unmute_notifications,{name:o.get("username")}),onClick:this.handleUnmuteNotifications}):c()(w.a,{active:!0,icon:"bell-slash",title:t.formatMessage(j.mute_notifications,{name:o.get("username")}),onClick:this.handleMuteNotifications}),a=c()(m.Fragment,{},void 0,c()(w.a,{active:!0,icon:"volume-up",title:t.formatMessage(j.unmute,{name:o.get("username")}),onClick:this.handleMute}),u)}else o.get("moved")&&!i||(a=c()(w.a,{icon:i?"user-times":"user-plus",title:t.formatMessage(i?j.unfollow:j.follow),onClick:this.handleFollow,active:i}))}return c()("div",{className:"account"},void 0,c()("div",{className:"account__wrapper"},void 0,c()(k.a,{className:"account__display-name",href:o.get("url"),to:"/accounts/"+o.get("id")},o.get("id"),c()("div",{className:"account__avatar-wrapper"},void 0,c()(_.a,{account:o,size:36})),c()(M.a,{account:o})),c()("div",{className:"account__relationship"},void 0,a)))},o}(I.a),a.propTypes={account:h.a.map.isRequired,onFollow:b.a.func.isRequired,onBlock:b.a.func.isRequired,onMute:b.a.func.isRequired,onMuteNotifications:b.a.func.isRequired,intl:b.a.object.isRequired,hidden:b.a.bool},n=i))||n},866: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},871:function(e,o,t){"use strict";t.d(o,"a",function(){return c});var n=t(2),a=t.n(n),i=t(0),s=(t.n(i),t(7)),c=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)),c=t(67),r=t(879),l=t(22),u=t(17),d=t(90),f=t(157),p=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(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.l?Object(p.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(p.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(f.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(p.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,_)(r.a))},879:function(e,o,t){"use strict";t.d(o,"a",function(){return N});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),f=t.n(d),p=t(0),m=(t.n(p),t(14)),g=t.n(m),h=t(5),v=t.n(h),b=t(880),_=t(881),M=t(866),k=t(12),w=t.n(k),y=t(882),O=t(7),I=t(44),N=(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 f()(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()(y.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()(I.c,{exact:!0,to:"/accounts/"+o.get("id")},void 0,s()(O.b,{id:"account.posts",defaultMessage:"Toots"})),s()(I.c,{exact:!0,to:"/accounts/"+o.get("id")+"/with_replies"},void 0,s()(O.b,{id:"account.posts_with_replies",defaultMessage:"Toots and replies"})),s()(I.c,{exact:!0,to:"/accounts/"+o.get("id")+"/media"},void 0,s()(O.b,{id:"account.media",defaultMessage:"Media"}))))},o}(w.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,c,r=t(2),l=t.n(r),u=t(1),d=t.n(u),f=t(3),p=t.n(f),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),w=t(23),y=t(27),O=(t.n(y),t(12)),I=t.n(O),N=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"}}),q=(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=p()(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,p()(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("+(N.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}(I.a),n.propTypes={account:b.a.map.isRequired},a),D=Object(k.g)((c=s=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=p()(this,e.call.apply(e,[this].concat(s))),n.openEditProfile=function(){window.open("/user-settings","_blank")},a=t,p()(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="";N.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"})):N.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"}))),N.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"})):N.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"}))),N.i!==o.get("id")?o.getIn(["relationship","requested"])?i=l()("div",{className:"account--action-button"},void 0,l()(w.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()(w.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()(w.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()(w.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 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:R()("account__header",{inactive:!!o.get("moved")}),style:{backgroundImage:"url("+o.get("header")+")"}},void 0,l()("div",{},void 0,l()(q,{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}(I.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},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),c=t.n(s),r=t(3),l=t.n(r),u=t(4),d=t.n(u),f=t(0),p=t.n(f),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;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(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}(p.a.PureComponent))||n},882:function(e,o,t){"use strict";t.d(o,"a",function(){return y});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),f=t.n(d),p=t(0),m=(t.n(p),t(5)),g=t.n(m),h=t(14),v=t.n(h),b=t(7),_=t(12),M=t.n(_),k=t(292),w=t(53),y=(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 f()(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()(w.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=followers.js.map