Merge branch 'fix-tlsv1.3' into 'develop'
[akkoma] / priv / static / packs / features / account_timeline.js
index 1af685dd4315ef27ae436fe9fb7ec9e1c6aba128..fab3f2330780723ad181dccd06e7b3a450b9a3cf 100644 (file)
@@ -1,2 +1,2 @@
-(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{726:function(t,s,a){"use strict";a.r(s),a.d(s,"default",function(){return U});var e,i,o,p=a(0),n=a.n(p),c=a(6),r=a.n(c),d=a(3),u=a.n(d),h=a(7),l=a.n(h),I=(a(1),a(12)),m=a(17),w=a.n(m),b=a(2),f=a.n(b),j=a(13),R=a(19),L=a(200),O=a(194),g=a(193),v=a(694),M=a(196),y=a(5),S=a(18),U=Object(I.connect)(function(t,s){var a=s.params.accountId,e=s.withReplies,i=void 0!==e&&e,o=i?a+":with_replies":a;return{statusIds:t.getIn(["timelines","account:"+o,"items"],Object(y.List)()),featuredStatusIds:i?Object(y.List)():t.getIn(["timelines","account:"+a+":pinned","items"],Object(y.List)()),isLoading:t.getIn(["timelines","account:"+o,"isLoading"]),hasMore:t.getIn(["timelines","account:"+o,"hasMore"])}})((o=i=function(t){function s(){var a,e,i;r()(this,s);for(var o=arguments.length,p=Array(o),n=0;n<o;n++)p[n]=arguments[n];return a=e=u()(this,t.call.apply(t,[this].concat(p))),e.handleLoadMore=function(t){e.props.dispatch(Object(R.l)(e.props.params.accountId,{maxId:t,withReplies:e.props.withReplies}))},i=a,u()(e,i)}return l()(s,t),s.prototype.componentWillMount=function(){var t=this.props,s=t.params.accountId,a=t.withReplies;this.props.dispatch(Object(j.w)(s)),a||this.props.dispatch(Object(R.j)(s)),this.props.dispatch(Object(R.l)(s,{withReplies:a}))},s.prototype.componentWillReceiveProps=function(t){(t.params.accountId!==this.props.params.accountId&&t.params.accountId||t.withReplies!==this.props.withReplies)&&(this.props.dispatch(Object(j.w)(t.params.accountId)),t.withReplies||this.props.dispatch(Object(R.j)(t.params.accountId)),this.props.dispatch(Object(R.l)(t.params.accountId,{withReplies:t.params.withReplies})))},s.prototype.render=function(){var t=this.props,s=t.shouldUpdateScroll,a=t.statusIds,e=t.featuredStatusIds,i=t.isLoading,o=t.hasMore;return!a&&i?n()(g.a,{},void 0,n()(O.a,{})):n()(g.a,{},void 0,n()(M.a,{}),n()(L.a,{prepend:n()(v.a,{accountId:this.props.params.accountId}),scrollKey:"account_timeline",statusIds:a,featuredStatusIds:e,isLoading:i,hasMore:o,onLoadMore:this.handleLoadMore,shouldUpdateScroll:s}))},s}(S.a),i.propTypes={params:f.a.object.isRequired,dispatch:f.a.func.isRequired,shouldUpdateScroll:f.a.func,statusIds:w.a.list,featuredStatusIds:w.a.list,isLoading:f.a.bool,hasMore:f.a.bool,withReplies:f.a.bool},e=o))||e}}]);
+(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{689:function(t,e,a){"use strict";a.r(e),a.d(e,"default",function(){return v});var s,i,o,c=a(1),n=a(7),p=a(0),r=a(2),d=(a(3),a(20)),u=a(26),l=a.n(u),h=a(5),b=a.n(h),m=a(27),j=a(37),I=a(649),O=a(291),w=a(642),f=a(911),R=a(644),g=a(4),L=a(24),M=a(6),v=Object(d.connect)(function(t,e){var a=e.params.accountId,s=e.withReplies,i=void 0!==s&&s,o=i?a+":with_replies":a;return{statusIds:t.getIn(["timelines","account:"+o,"items"],Object(g.List)()),featuredStatusIds:i?Object(g.List)():t.getIn(["timelines","account:"+a+":pinned","items"],Object(g.List)()),isLoading:t.getIn(["timelines","account:"+o,"isLoading"]),hasMore:t.getIn(["timelines","account:"+o,"hasMore"])}})((o=i=function(i){function t(){for(var e,t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return e=i.call.apply(i,[this].concat(a))||this,Object(r.a)(Object(p.a)(Object(p.a)(e)),"handleLoadMore",function(t){e.props.dispatch(Object(j.n)(e.props.params.accountId,{maxId:t,withReplies:e.props.withReplies}))}),e}Object(n.a)(t,i);var e=t.prototype;return e.componentWillMount=function(){var t=this.props,e=t.params.accountId,a=t.withReplies;this.props.dispatch(Object(m.A)(e)),a||this.props.dispatch(Object(j.l)(e)),this.props.dispatch(Object(j.n)(e,{withReplies:a}))},e.componentWillReceiveProps=function(t){(t.params.accountId!==this.props.params.accountId&&t.params.accountId||t.withReplies!==this.props.withReplies)&&(this.props.dispatch(Object(m.A)(t.params.accountId)),t.withReplies||this.props.dispatch(Object(j.l)(t.params.accountId)),this.props.dispatch(Object(j.n)(t.params.accountId,{withReplies:t.params.withReplies})))},e.render=function(){var t=this.props,e=t.shouldUpdateScroll,a=t.statusIds,s=t.featuredStatusIds,i=t.isLoading,o=t.hasMore;return!a&&i?Object(c.a)(w.a,{},void 0,Object(c.a)(O.a,{})):Object(c.a)(w.a,{},void 0,Object(c.a)(R.a,{}),Object(c.a)(I.a,{prepend:Object(c.a)(f.a,{accountId:this.props.params.accountId}),alwaysPrepend:!0,scrollKey:"account_timeline",statusIds:a,featuredStatusIds:s,isLoading:i,hasMore:o,onLoadMore:this.handleLoadMore,shouldUpdateScroll:e,emptyMessage:Object(c.a)(M.b,{id:"empty_column.account_timeline",defaultMessage:"No toots here!"})}))},t}(L.a),Object(r.a)(i,"propTypes",{params:b.a.object.isRequired,dispatch:b.a.func.isRequired,shouldUpdateScroll:b.a.func,statusIds:l.a.list,featuredStatusIds:l.a.list,isLoading:b.a.bool,hasMore:b.a.bool,withReplies:b.a.bool}),s=o))||s}}]);
 //# sourceMappingURL=account_timeline.js.map
\ No newline at end of file