mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-24 10:07:24 +00:00
2 lines
2.6 KiB
JavaScript
2 lines
2.6 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[56],{659:function(a,t,c){"use strict";c.r(t),c.d(t,"default",function(){return y});var o,e,s,n=c(0),r=c(2),i=c(6),p=c(1),l=c(3),d=c.n(l),u=c(21),h=c(5),b=c.n(h),O=c(26),j=c.n(O),f=c(271),m=c(23),I=c(427),v=c(630),w=c(625),M=c(913),g=c(916),k=c(912),H=c(25),S=c(896),y=Object(u.connect)(function(a,t){return{isAccount:!!a.getIn(["accounts",t.params.accountId]),accountIds:a.getIn(["user_lists","followers",t.params.accountId,"items"]),hasMore:!!a.getIn(["user_lists","followers",t.params.accountId,"next"])}})((s=e=function(e){function a(){for(var c,a=arguments.length,t=new Array(a),o=0;o<a;o++)t[o]=arguments[o];return c=e.call.apply(e,[this].concat(t))||this,Object(p.a)(Object(r.a)(c),"handleHeaderClick",function(){c.column.scrollTop()}),Object(p.a)(Object(r.a)(c),"handleScroll",function(a){var t=a.target;t.scrollTop===t.scrollHeight-t.clientHeight&&c.props.hasMore&&c.props.dispatch(Object(m.D)(c.props.params.accountId))}),Object(p.a)(Object(r.a)(c),"handleLoadMore",function(a){a.preventDefault(),c.props.dispatch(Object(m.D)(c.props.params.accountId))}),Object(p.a)(Object(r.a)(c),"shouldUpdateScroll",function(a,t){var c=t.location;return!(((a||{}).location||{}).state||{}).mastodonModalOpen&&!(c.state&&c.state.mastodonModalOpen)}),Object(p.a)(Object(r.a)(c),"setRef",function(a){c.column=a}),c}Object(i.a)(a,e);var t=a.prototype;return t.componentWillMount=function(){this.props.dispatch(Object(m.F)(this.props.params.accountId)),this.props.dispatch(Object(m.H)(this.props.params.accountId))},t.componentWillReceiveProps=function(a){a.params.accountId!==this.props.params.accountId&&a.params.accountId&&(this.props.dispatch(Object(m.F)(a.params.accountId)),this.props.dispatch(Object(m.H)(a.params.accountId)))},t.render=function(){var a=this.props,t=a.accountIds,c=a.hasMore;if(!a.isAccount)return Object(n.a)(w.a,{},void 0,Object(n.a)(S.a,{}));var o=null;return t?(c&&(o=Object(n.a)(k.a,{onClick:this.handleLoadMore})),d.a.createElement(w.a,{ref:this.setRef},Object(n.a)(M.a,{onClick:this.handleHeaderClick}),Object(n.a)(I.a,{scrollKey:"followers",shouldUpdateScroll:this.shouldUpdateScroll},void 0,Object(n.a)("div",{className:"scrollable",onScroll:this.handleScroll},void 0,Object(n.a)("div",{className:"followers"},void 0,Object(n.a)(g.a,{accountId:this.props.params.accountId,hideTabs:!0}),t.map(function(a){return Object(n.a)(v.a,{id:a,withNote:!1},a)}),o))))):Object(n.a)(w.a,{},void 0,Object(n.a)(f.a,{}))},a}(H.a),Object(p.a)(e,"propTypes",{params:b.a.object.isRequired,dispatch:b.a.func.isRequired,accountIds:j.a.list,hasMore:b.a.bool,isAccount:b.a.bool}),o=s))||o}}]);
|
|
//# sourceMappingURL=followers.js.map
|