forked from AkkomaGang/akkoma
2 lines
20 KiB
JavaScript
2 lines
20 KiB
JavaScript
|
webpackJsonp([15],{150:function(e,n,o){"use strict";o.d(n,"a",function(){return p});var t=o(2),a=o.n(t),i=o(1),c=o.n(i),r=o(3),s=o.n(r),l=o(4),u=o.n(l),d=o(0),f=o.n(d),p=function(e){function n(){var o,t,a;c()(this,n);for(var i=arguments.length,r=Array(i),l=0;l<i;l++)r[l]=arguments[l];return o=t=s()(this,e.call.apply(e,[this].concat(r))),t.handleClick=function(){t.props.onClick()},a=o,s()(t,a)}return u()(n,e),n.prototype.render=function(){var e=this.props,n=e.type,o=e.active,t=e.columnHeaderId,i="";return this.props.icon&&(i=a()("i",{className:"fa fa-fw fa-"+this.props.icon+" column-header__icon"})),a()("div",{role:"heading",tabIndex:"0",className:"column-header "+(o?"active":""),onClick:this.handleClick,id:t||null},void 0,i,n)},n}(f.a.PureComponent)},259:function(e,n,o){"use strict";o.d(n,"a",function(){return b});var t=o(2),a=o.n(t),i=o(1),c=o.n(i),r=o(3),s=o.n(r),l=o(4),u=o.n(l),d=o(42),f=o.n(d),p=o(0),m=o.n(p),g=o(150),h=o(91),v=o(33),b=function(e){function n(){var o,t,a;c()(this,n);for(var i=arguments.length,r=Array(i),l=0;l<i;l++)r[l]=arguments[l];return o=t=s()(this,e.call.apply(e,[this].concat(r))),t.handleHeaderClick=function(){var e=t.node.querySelector(".scrollable");e&&(t._interruptScrollAnimation=Object(h.b)(e))},t.handleScroll=f()(function(){void 0!==t._interruptScrollAnimation&&t._interruptScrollAnimation()},200),t.setRef=function(e){t.node=e},a=o,s()(t,a)}return u()(n,e),n.prototype.scrollTop=function(){var e=this.node.querySelector(".scrollable");e&&(this._interruptScrollAnimation=Object(h.b)(e))},n.prototype.render=function(){var e=this.props,n=e.heading,o=e.icon,t=e.children,i=e.active,c=e.hideHeadingOnMobile,r=n&&(!c||c&&!Object(v.b)(window.innerWidth)),s=r&&n.replace(/ /g,"-"),l=r&&a()(g.a,{icon:o,active:i,type:n,onClick:this.handleHeaderClick,columnHeaderId:s});return m.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":s,className:"column",onScroll:this.handleScroll},l,t)},n}(m.a.PureComponent)},260:function(e,n,o){"use strict";o.d(n,"a",function(){return h});var t,a,i=o(2),c=o.n(i),r=o(1),s=o.n(r),l=o(3),u=o.n(l),d=o(4),f=o.n(d),p=o(0),m=o.n(p),g=o(6),h=(a=t=function(e){function n(){return s()(this,n),u()(this,e.apply(this,arguments))}return f()(n,e),n.prototype.render=function(){var e=this.props.visible;return c()("button",{className:"load-more",disabled:!e,style:{visibility:e?"visible":"hidden"},onClick:this.props.onClick},void 0,c()(g.b,{id:"status.load_more",defaultMessage:"Load more"}))},n}(m.a.PureComponent),t.defaultProps={visible:!0},a)},763:function(e,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),o.d(n,"default",function(){return B});var t,a,i,c,r=o(2),s=o.n(r),l=o(1),u=o.n(l),d=o(3),f=o.n(d),p=o(4),m=o.n(p),g=o(0),h=(o.n(g),o(9)),v=o(5),b=o.n(v),M=o(12),k=o.n(M),w=o(271),_=o(22),y=o(152),O=o(777),j=o(259),I=o(781),C=o(260),N=o(779),R=o(11),q=o.n(R),F=function(e,n){return{accountIds:e.getIn(["user_lists","followers",n.params.accountId,"items"]),hasMore:!!e.getIn(["user_lists","followers",n.params.accountId,"next"])}},B=(t=Object(h.connect)(F))((c=i=function(e){function n(){var o,t,a;u()(this,n);for(var i=arguments.length,c=Array(i),r=0;r<i;r++)c[r]=arguments[r];return o=t=f()(this,e.call.apply(e,[this].concat(c))),t.handleScroll=function(e){var n=e.target;n.scrollTop===n.scrollHeight-n.clientHeight&&t.props.hasMore&&t.props.dispatch(Object(_.t)(t.props.params.accountId))},t.handleLoadMore=function(e){e.preventDefault(),t.props.dispatch(Object(_.t)(t.props.params.accountId))},a=o,f()(t,a)}return m()(n,e),n.prototype.componentWillMount=function(){this.props.dispatch(Object(_.v)(this.props.params.accountId)),this.props.dispatch(Object(_.x)(this.props.params.accountId))},n.prototype.componentWillReceiveProps=function(e){e.params.accountId!==this.props.params.accountId&&e.params.accountId&&(this.props.dispatch(Object(_.v)(e.params.accountId)),this.props.dispatch(Object(_.x)(e.params.accountId)))},n.prototype.render=function(){var e=this.props,n=e.accountIds,o=e.hasMore,t=null;return n?(o&&(t=s()(C.a,{onClick:this.handleLoadMore})),s()(j.a,{},void 0,s()(
|
||
|
//# sourceMappingURL=followers-6716b8606f70dfa12ed7.js.map
|