(window.webpackJsonp=window.webpackJsonp||[]).push([[76],{1128:function(e,t,o){"use strict";o.r(t),o.d(t,"default",(function(){return T}));var a,s,c=o(0),n=o(29),i=o.n(n),l=(o(1),o(12)),u=o(3),r=o.n(u),d=o(16),b=o.n(d),h=o(371),m=o(1292),j=o(1303),p=o(143),f=o(468),g=o(226),_=o(236),O=o(45),v=o(4),w=o(18);const q=Object(v.f)({authorize:{id:"follow_request.authorize",defaultMessage:"Authorize"},reject:{id:"follow_request.reject",defaultMessage:"Reject"}});let M=Object(v.g)(((s=class extends w.a{render(){const{intl:e,account:t,onAuthorize:o,onReject:a}=this.props,s={__html:t.get("note_emojified")};return Object(c.a)("div",{className:"account-authorize__wrapper"},void 0,Object(c.a)("div",{className:"account-authorize"},void 0,Object(c.a)(f.a,{href:t.get("url"),to:"/@"+t.get("acct"),className:"detailed-status__display-name"},void 0,Object(c.a)("div",{className:"account-authorize__avatar"},void 0,Object(c.a)(g.a,{account:t,size:48})),Object(c.a)(_.a,{account:t})),Object(c.a)("div",{className:"account__header__content translate",dangerouslySetInnerHTML:s})),Object(c.a)("div",{className:"account--panel"},void 0,Object(c.a)("div",{className:"account--panel__button"},void 0,Object(c.a)(O.a,{title:e.formatMessage(q.authorize),icon:"check",onClick:o})),Object(c.a)("div",{className:"account--panel__button"},void 0,Object(c.a)(O.a,{title:e.formatMessage(q.reject),icon:"times",onClick:a}))))}}).propTypes={account:b.a.map.isRequired,onAuthorize:r.a.func.isRequired,onReject:r.a.func.isRequired,intl:r.a.object.isRequired},a=s))||a;var y=o(19);var k,z,R=Object(l.connect)((()=>{const e=Object(p.e)();return(t,o)=>({account:e(t,o.id)})}),((e,t)=>{let{id:o}=t;return{onAuthorize(){e(Object(y.P)(o))},onReject(){e(Object(y.hb)(o))}}}))(M),I=o(1295),L=o(14);const N=Object(v.f)({heading:{id:"column.follow_requests",defaultMessage:"Follow requests"}});let T=Object(l.connect)((e=>({accountIds:e.getIn(["user_lists","follow_requests","items"]),isLoading:e.getIn(["user_lists","follow_requests","isLoading"],!0),hasMore:!!e.getIn(["user_lists","follow_requests","next"]),locked:!!e.getIn(["accounts",L.me,"locked"]),domain:e.getIn(["meta","domain"])})))(k=Object(v.g)(((z=class extends w.a{constructor(){super(...arguments),this.handleLoadMore=i()((()=>{this.props.dispatch(Object(y.T)())}),300,{leading:!0})}componentWillMount(){this.props.dispatch(Object(y.X)())}render(){const{intl:e,accountIds:t,hasMore:o,multiColumn:a,locked:s,domain:n,isLoading:i}=this.props;if(!t)return Object(c.a)(m.a,{name:"follow-requests"},void 0,Object(c.a)(h.b,{}));const l=Object(c.a)(v.b,{id:"empty_column.follow_requests",defaultMessage:"You don't have any follow requests yet. When you receive one, it will show up here."}),u=s?null:Object(c.a)("div",{className:"follow_requests-unlocked_explanation"},void 0,Object(c.a)(v.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:n}}));return Object(c.a)(m.a,{bindToDocument:!a,name:"follow-requests",icon:"user-plus",heading:e.formatMessage(N.heading)},void 0,Object(c.a)(j.a,{}),Object(c.a)(I.a,{scrollKey:"follow_requests",onLoadMore:this.handleLoadMore,hasMore:o,isLoading:i,emptyMessage:l,bindToDocument:!a,prepend:u},void 0,t.map((e=>Object(c.a)(R,{id:e},e)))))}}).propTypes={params:r.a.object.isRequired,dispatch:r.a.func.isRequired,hasMore:r.a.bool,isLoading:r.a.bool,accountIds:b.a.list,locked:r.a.bool,domain:r.a.string,intl:r.a.object.isRequired,multiColumn:r.a.bool},k=z))||k)||k}}]);
//# sourceMappingURL=follow_requests-6c847c0c1ddacdcef447.chunk.js.map