Merge branch 'develop' into fix/disable-rate-limiter-for-socket-localhost
[akkoma] / priv / static / packs / flavours / glitch / async / follow_requests.js
index 8917692915f2c1f78af6ac53c3d89f2e0c817c36..352c37cf8aabf7684b9da966b35cc7637dc96b3e 100644 (file)
@@ -1,2 +1,2 @@
-(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{713:function(e,t,a){"use strict";a.r(t);var c,o,n,i,r,s,u=a(1),l=a(6),d=a(0),j=a(2),b=(a(3),a(20)),p=a(5),O=a.n(p),f=a(26),h=a.n(f),v=a(290),m=a(297),_=a(640),g=a(644),w=a(169),q=a(321),z=a(101),R=a(102),y=a(47),M=a(7),N=a(24),S=Object(M.f)({authorize:{id:"follow_request.authorize",defaultMessage:"Authorize"},reject:{id:"follow_request.reject",defaultMessage:"Reject"}}),k=Object(M.g)((n=o=function(e){function t(){return e.apply(this,arguments)||this}return Object(l.a)(t,e),t.prototype.render=function(){var e=this.props,t=e.intl,a=e.account,c=e.onAuthorize,o=e.onReject,n={__html:a.get("note_emojified")};return Object(u.a)("div",{className:"account-authorize__wrapper"},void 0,Object(u.a)("div",{className:"account-authorize"},void 0,Object(u.a)(q.a,{href:a.get("url"),to:"/accounts/"+a.get("id"),className:"detailed-status__display-name"},void 0,Object(u.a)("div",{className:"account-authorize__avatar"},void 0,Object(u.a)(z.a,{account:a,size:48})),Object(u.a)(R.a,{account:a})),Object(u.a)("div",{className:"account__header__content",dangerouslySetInnerHTML:n})),Object(u.a)("div",{className:"account--panel"},void 0,Object(u.a)("div",{className:"account--panel__button"},void 0,Object(u.a)(y.a,{title:t.formatMessage(S.authorize),icon:"check",onClick:c})),Object(u.a)("div",{className:"account--panel__button"},void 0,Object(u.a)(y.a,{title:t.formatMessage(S.reject),icon:"times",onClick:o}))))},t}(N.a),Object(j.a)(o,"propTypes",{account:h.a.map.isRequired,onAuthorize:O.a.func.isRequired,onReject:O.a.func.isRequired,intl:O.a.object.isRequired}),c=n))||c,A=a(14),I=Object(b.connect)(function(){var a=Object(w.d)();return function(e,t){return{account:a(e,t.id)}}},function(e,t){var a=t.id;return{onAuthorize:function(){e(Object(A.z)(a))},onReject:function(){e(Object(A.Q)(a))}}})(k);a.d(t,"default",function(){return T});var H=Object(M.f)({heading:{id:"column.follow_requests",defaultMessage:"Follow requests"}}),T=Object(b.connect)(function(e){return{accountIds:e.getIn(["user_lists","follow_requests","items"])}})(i=Object(M.g)((s=r=function(o){function e(){for(var a,e=arguments.length,t=new Array(e),c=0;c<e;c++)t[c]=arguments[c];return a=o.call.apply(o,[this].concat(t))||this,Object(j.a)(Object(d.a)(Object(d.a)(a)),"handleScroll",function(e){var t=e.target;t.scrollTop===t.scrollHeight-t.clientHeight&&a.props.dispatch(Object(A.D)())}),Object(j.a)(Object(d.a)(Object(d.a)(a)),"shouldUpdateScroll",function(e,t){var a=t.location;return!(((e||{}).location||{}).state||{}).mastodonModalOpen&&!(a.state&&a.state.mastodonModalOpen)}),a}Object(l.a)(e,o);var t=e.prototype;return t.componentWillMount=function(){this.props.dispatch(Object(A.H)())},t.render=function(){var e=this.props,t=e.intl,a=e.accountIds;return a?Object(u.a)(_.a,{name:"follow-requests",icon:"users",heading:t.formatMessage(H.heading)},void 0,Object(u.a)(g.a,{}),Object(u.a)(m.a,{scrollKey:"follow_requests",shouldUpdateScroll:this.shouldUpdateScroll},void 0,Object(u.a)("div",{className:"scrollable",onScroll:this.handleScroll},void 0,a.map(function(e){return Object(u.a)(I,{id:e},e)})))):Object(u.a)(_.a,{name:"follow-requests"},void 0,Object(u.a)(v.a,{}))},e}(N.a),Object(j.a)(r,"propTypes",{params:O.a.object.isRequired,dispatch:O.a.func.isRequired,accountIds:h.a.list,intl:O.a.object.isRequired}),i=s))||i)||i}}]);
+(window.webpackJsonp=window.webpackJsonp||[]).push([[61],{751:function(e,t,a){"use strict";a.r(t);var o,c,n,i,r,s,u=a(0),l=a(2),d=a(7),j=a(1),b=a(63),f=a.n(b),p=(a(3),a(12)),h=a(5),O=a.n(h),v=a(18),_=a.n(v),m=a(293),g=a(662),w=a(668),q=a(148),M=a(218),y=a(92),z=a(94),R=a(40),N=a(6),I=a(19),k=Object(N.f)({authorize:{id:"follow_request.authorize",defaultMessage:"Authorize"},reject:{id:"follow_request.reject",defaultMessage:"Reject"}}),A=Object(N.g)((n=c=function(e){function t(){return e.apply(this,arguments)||this}return Object(d.a)(t,e),t.prototype.render=function(){var e=this.props,t=e.intl,a=e.account,o=e.onAuthorize,c=e.onReject,n={__html:a.get("note_emojified")};return Object(u.a)("div",{className:"account-authorize__wrapper"},void 0,Object(u.a)("div",{className:"account-authorize"},void 0,Object(u.a)(M.a,{href:a.get("url"),to:"/accounts/"+a.get("id"),className:"detailed-status__display-name"},void 0,Object(u.a)("div",{className:"account-authorize__avatar"},void 0,Object(u.a)(y.a,{account:a,size:48})),Object(u.a)(z.a,{account:a})),Object(u.a)("div",{className:"account__header__content",dangerouslySetInnerHTML:n})),Object(u.a)("div",{className:"account--panel"},void 0,Object(u.a)("div",{className:"account--panel__button"},void 0,Object(u.a)(R.a,{title:t.formatMessage(k.authorize),icon:"check",onClick:o})),Object(u.a)("div",{className:"account--panel__button"},void 0,Object(u.a)(R.a,{title:t.formatMessage(k.reject),icon:"times",onClick:c}))))},t}(I.a),Object(j.a)(c,"propTypes",{account:_.a.map.isRequired,onAuthorize:O.a.func.isRequired,onReject:O.a.func.isRequired,intl:O.a.object.isRequired}),o=n))||o,L=a(23),C=Object(p.connect)(function(){var e=Object(q.d)();return function(t,a){return{account:e(t,a.id)}}},function(e,t){var a=t.id;return{onAuthorize:function(){e(Object(L.y)(a))},onReject:function(){e(Object(L.P)(a))}}})(A),T=a(963);a.d(t,"default",function(){return W});var J=Object(N.f)({heading:{id:"column.follow_requests",defaultMessage:"Follow requests"}}),W=Object(p.connect)(function(e){return{accountIds:e.getIn(["user_lists","follow_requests","items"]),hasMore:!!e.getIn(["user_lists","follow_requests","next"])}})(i=Object(N.g)((s=r=function(e){function t(){for(var t,a=arguments.length,o=new Array(a),c=0;c<a;c++)o[c]=arguments[c];return t=e.call.apply(e,[this].concat(o))||this,Object(j.a)(Object(l.a)(t),"handleLoadMore",f()(function(){t.props.dispatch(Object(L.C)())},300,{leading:!0})),t}Object(d.a)(t,e);var a=t.prototype;return a.componentWillMount=function(){this.props.dispatch(Object(L.G)())},a.render=function(){var e=this.props,t=e.intl,a=e.accountIds,o=e.hasMore;if(!a)return Object(u.a)(g.a,{name:"follow-requests"},void 0,Object(u.a)(m.a,{}));var c=Object(u.a)(N.b,{id:"empty_column.follow_requests",defaultMessage:"You don't have any follow requests yet. When you receive one, it will show up here."});return Object(u.a)(g.a,{name:"follow-requests",icon:"user-plus",heading:t.formatMessage(J.heading)},void 0,Object(u.a)(w.a,{}),Object(u.a)(T.a,{scrollKey:"follow_requests",onLoadMore:this.handleLoadMore,hasMore:o,emptyMessage:c},void 0,a.map(function(e){return Object(u.a)(C,{id:e},e)})))},t}(I.a),Object(j.a)(r,"propTypes",{params:O.a.object.isRequired,dispatch:O.a.func.isRequired,hasMore:O.a.bool,accountIds:_.a.list,intl:O.a.object.isRequired}),i=s))||i)||i}}]);
 //# sourceMappingURL=follow_requests.js.map
\ No newline at end of file