honkoma/priv/static/packs/features/followers.js

2 lines
25 KiB
JavaScript

webpackJsonp([16],{153:function(e,o,t){"use strict";t.d(o,"a",function(){return m});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),g=t.n(p),m=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:g()("column-header",{active:n}),id:i||null},void 0,a()("button",{onClick:this.handleClick},void 0,s,t))},o}(f.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),f=t.n(d),p=t(0),g=t.n(p),m=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=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()(m.a,{icon:t,active:i,type:o,onClick:this.handleHeaderClick,columnHeaderId:r});return g.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":r,className:"column",onScroll:this.handleScroll},l,n)},o}(g.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),f=t.n(d),p=t(0),g=t.n(p),m=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()(m.b,{id:"status.load_more",defaultMessage:"Load more"}))},o}(g.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),f=t.n(d),p=t(0),g=t.n(p),m=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()(m.b,{id:"column_back_button.label",defaultMessage:"Back"}))},o}(g.a.PureComponent),n.contextTypes={router:v.a.object},a)},839:function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),t.d(o,"default",function(){return B});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),g=t.n(p),m=t(0),h=(t.n(m),t(9)),v=t(5),b=t.n(v),_=t(14),M=t.n(_),k=t(298),w=t(22),y=t(154),I=t(879),O=t(283),N=t(887),j=t(284),R=t(285),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"])}},B=(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 g()(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()(O.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()(I.a,{id:e,withNote:!1},e)}),n))))):r()(O.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},879: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(68),l=t(880),u=t(22),d=t(26),f=t(89),p=t(13),g=Object(c.f)({unfollowConfirm:{id:"confirmations.unfollow.confirm",defaultMessage:"Unfollow"}}),m=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.j?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(g.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)(m,h)(l.a))},880: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),g=t(0),m=(t.n(g),t(14)),h=t.n(m),v=t(5),b=t.n(v),_=t(54),M=t(53),k=t(296),w=t(23),y=t(7),I=t(12),O=t.n(I),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.g&&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()(g.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}(O.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},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),f=t(155),p=t(26),g=t(158),m=t(7),h=t(13),v=Object(m.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(p.d)("CONFIRM",{message:a()(m.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()(m.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()(m.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(g.e)(o))}}))},onUnblockDomain:function(o){e(Object(g.h)(o))}}};o.a=Object(m.g)(Object(s.connect)(b,_)(r.a))},888: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),g=(t.n(p),t(14)),m=t.n(g),h=t(5),v=t.n(h),b=t(889),_=t(890),M=t(881),k=t(12),w=t.n(k),y=t(891),I=t(7),O=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()(O.c,{exact:!0,to:"/accounts/"+o.get("id")},void 0,s()(I.b,{id:"account.posts",defaultMessage:"Toots"})),s()(O.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()(O.c,{exact:!0,to:"/accounts/"+o.get("id")+"/media"},void 0,s()(I.b,{id:"account.media",defaultMessage:"Media"}))))},o}(w.a),n.propTypes={account:m.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 T});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),g=t(4),m=t.n(g),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),I=t(28),O=t.n(I),N=t(12),j=t.n(N),R=t(13),C=t(10),q=t.n(C),D=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}"}}),B=(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 m()(o,e),o.prototype.render=function(){var e=this,o=this.props.account,t=this.state.isHovered;return l()(y.a,{defaultStyle:{radius:90},style:{radius:O()(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("+(R.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}(j.a),n.propTypes={account:b.a.map.isRequired},a),T=Object(k.g)((c=s=function(e){function o(){return d()(this,o),p()(this,e.apply(this,arguments))}return m()(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="";R.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"})):R.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"}))),R.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"})):R.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"}))),R.g!==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(D.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(D.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"])?D.unfollow:D.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:q()("account__header",{inactive:!!o.get("moved")}),style:{backgroundImage:"url("+o.get("header")+")"}},void 0,l()("div",{},void 0,l()(B,{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}(j.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),f=t(0),p=t.n(f),g=t(300),m=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()(g.a,{items:n,icon:"bars",size:24,direction:"right"})),i()("div",{className:"account__action-bar-links"},void 0,i()(m.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()(m.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()(m.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}(p.a.PureComponent))||n},891: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),g=(t.n(p),t(5)),m=t.n(g),h=t(14),v=t.n(h),b=t(7),_=t(12),M=t.n(_),k=t(301),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:m.a.object},n.propTypes={from:v.a.map.isRequired,to:v.a.map.isRequired},a)}});
//# sourceMappingURL=followers.js.map