1 (window
.webpackJsonp
=window
.webpackJsonp
||[]).push([[26],{851:function(e
,t
,a
){"use strict";a
.r(t
),a
.d(t
,"default",(function(){return U
}));var o
,n
,c
,i
=a(0),s
=a(2),u
=(a(9),a(6),a(8)),r
=a(1),l
=a(65),d
=a
.n(l
),b
=(a(3),a(15)),p
=a(7),f
=a(21),h
=a(5),j
=a
.n(h
),m
=a(16),v
=a
.n(m
),O
=a(306),_
=a(757),g
=a(763),w
=a(210),q
=a(300),y
=a(115),M
=a(122),k
=a(53);var z
,R
,I
,N
=Object(p
.f
)({authorize:{id:"follow_request.authorize",defaultMessage:"Authorize"},reject:{id:"follow_request.reject",defaultMessage:"Reject"}}),A
=Object(p
.g
)((c
=n=function(e
){Object(u
.a
)(a
,e
);var t
;t
=a
;function a(){return e
.apply(this,arguments
)||this}return a
.prototype.render=function(){var e
=this.props
,t
=e
.intl
,a
=e
.account
,o
=e
.onAuthorize
,n
=e
.onReject
,c
={__html:a
.get("note_emojified")};return Object(i
.a
)("div",{className:"account-authorize__wrapper"},void 0,Object(i
.a
)("div",{className:"account-authorize"},void 0,Object(i
.a
)(q
.a
,{href:a
.get("url"),to:"/accounts/"+a
.get("id"),className:"detailed-status__display-name"},void 0,Object(i
.a
)("div",{className:"account-authorize__avatar"},void 0,Object(i
.a
)(y
.a
,{account:a
,size:48})),Object(i
.a
)(M
.a
,{account:a
})),Object(i
.a
)("div",{className:"account__header__content",dangerouslySetInnerHTML:c
})),Object(i
.a
)("div",{className:"account--panel"},void 0,Object(i
.a
)("div",{className:"account--panel__button"},void 0,Object(i
.a
)(k
.a
,{title:t
.formatMessage(N
.authorize
),icon:"check",onClick:o
})),Object(i
.a
)("div",{className:"account--panel__button"},void 0,Object(i
.a
)(k
.a
,{title:t
.formatMessage(N
.reject
),icon:"times",onClick:n
}))))},a
}(f
.a
),Object(r
.a
)(n
,"propTypes",{account:v
.a
.map
.isRequired
,onAuthorize:j
.a
.func
.isRequired
,onReject:j
.a
.func
.isRequired
,intl:j
.a
.object
.isRequired
}),o
=c
))||o
,T
=a(26),x
=Object(b
.connect
)((function(){var e
=Object(w
.d
)();return function(t
,a
){return{account:e(t
,a
.id
)}}}),(function(e
,t
){var a
=t
.id
;return{onAuthorize:function(){e(Object(T
.v
)(a
))},onReject:function(){e(Object(T
.I
)(a
))}}}))(A
),C
=a(1049),L
=a(22);var S
=Object(p
.f
)({heading:{id:"column.follow_requests",defaultMessage:"Follow requests"}}),U
=Object(b
.connect
)((function(e
){return{accountIds:e
.getIn(["user_lists","follow_requests","items"]),hasMore:!!e
.getIn(["user_lists","follow_requests","next"]),locked:!!e
.getIn(["accounts",L
.n
,"locked"]),domain:e
.getIn(["meta","domain"])}}))(z
=Object(p
.g
)((I
=R=function(e
){Object(u
.a
)(a
,e
);var t
;t
=a
;function a(){for(var t
,a
=arguments
.length
,o
=new Array(a
),n
=0;n
<a
;n
++)o
[n
]=arguments
[n
];return t
=e
.call
.apply(e
,[this].concat(o
))||this,Object(r
.a
)(Object(s
.a
)(t
),"handleLoadMore",d()((function(){t
.props
.dispatch(Object(T
.x
)())}),300,{leading:!0})),t
}var o
=a
.prototype;return o
.componentWillMount=function(){this.props
.dispatch(Object(T
.B
)())},o
.render=function(){var e
=this.props
,t
=e
.intl
,a
=e
.shouldUpdateScroll
,o
=e
.accountIds
,n
=e
.hasMore
,c
=e
.multiColumn
,s
=e
.locked
,u
=e
.domain
;if(!o
)return Object(i
.a
)(_
.a
,{},void 0,Object(i
.a
)(O
.a
,{}));var r
=Object(i
.a
)(p
.b
,{id:"empty_column.follow_requests",defaultMessage:"You don't have any follow requests yet. When you receive one, it will show up here."}),l
=s
?null:Object(i
.a
)("div",{className:"follow_requests-unlocked_explanation"},void 0,Object(i
.a
)(p
.b
,{id:"follow_requests.unlocked_explanation",defaultMessage:"Even though your account is not locked, the {domain} staff thought you might want to review follow requests from these accounts manually.",values:{domain:u
}}));return Object(i
.a
)(_
.a
,{bindToDocument:!c
,icon:"user-plus",heading:t
.formatMessage(S
.heading
)},void 0,Object(i
.a
)(g
.a
,{}),Object(i
.a
)(C
.a
,{scrollKey:"follow_requests",onLoadMore:this.handleLoadMore
,hasMore:n
,shouldUpdateScroll:a
,emptyMessage:r
,bindToDocument:!c
,prepend:l
},void 0,o
.map((function(e
){return Object(i
.a
)(x
,{id:e
},e
)}))))},a
}(f
.a
),Object(r
.a
)(R
,"propTypes",{params:j
.a
.object
.isRequired
,dispatch:j
.a
.func
.isRequired
,shouldUpdateScroll:j
.a
.func
,hasMore:j
.a
.bool
,accountIds:v
.a
.list
,locked:j
.a
.bool
,domain:j
.a
.string
,intl:j
.a
.object
.isRequired
,multiColumn:j
.a
.bool
}),z
=I
))||z
)||z
}}]);
2 //# sourceMappingURL=follow_requests.js.map