(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{1004:function(t,e,a){"use strict";a.r(e),a.d(e,"default",(function(){return v}));var s,c,n=a(0),o=(a(1),a(12)),i=a(16),d=a.n(i),u=a(3),r=a.n(u),l=a(13),p=a(24),b=a(1319),m=a(281),h=a(957),I=a(1347),O=a(963),j=a(2),g=a(18),f=a(4),w=a(1311),M=a(1376),_=a(11),y=a(1377),L=a(207);const R=Object(j.List)(),k=t=>{let{url:e}=t;return Object(n.a)(M.a,{url:e,resource:Object(n.a)(f.b,{id:"timeline_hint.resources.statuses",defaultMessage:"Older posts"})})};let v=Object(o.connect)(((t,e)=>{let{params:{acct:a,id:s},withReplies:c=!1}=e;const n=s||t.getIn(["accounts_map",a]);if(!n)return{isLoading:!0};const o=c?n+":with_replies":n;return{accountId:n,remote:!(t.getIn(["accounts",n,"acct"])===t.getIn(["accounts",n,"username"])),remoteUrl:t.getIn(["accounts",n,"url"]),isAccount:!!t.getIn(["accounts",n]),statusIds:t.getIn(["timelines","account:"+o,"items"],R),featuredStatusIds:c?Object(j.List)():t.getIn(["timelines","account:"+n+":pinned","items"],R),isLoading:t.getIn(["timelines","account:"+o,"isLoading"]),hasMore:t.getIn(["timelines","account:"+o,"hasMore"]),suspended:t.getIn(["accounts",n,"suspended"],!1),hidden:Object(L.b)(t,n),blockedBy:t.getIn(["relationships",n,"blocked_by"],!1)}}))(((c=class extends g.a{constructor(){super(...arguments),this.handleLoadMore=t=>{this.props.dispatch(Object(p.r)(this.props.accountId,{maxId:t,withReplies:this.props.withReplies}))}}_load(){const{accountId:t,withReplies:e,dispatch:a}=this.props;a(Object(l.N)(t)),e||a(Object(p.p)(t)),a(Object(p.r)(t,{withReplies:e})),t===_.n&&a(Object(p.m)("account:"+_.n))}componentDidMount(){const{params:{acct:t},accountId:e,dispatch:a}=this.props;e?this._load():a(Object(l.T)(t))}componentDidUpdate(t){const{params:{acct:e},accountId:a,dispatch:s}=this.props;t.accountId!==a&&a?this._load():t.params.acct!==e&&s(Object(l.T)(e)),t.accountId===_.n&&a!==_.n&&s(Object(p.o)("account:"+_.n))}componentWillUnmount(){const{dispatch:t,accountId:e}=this.props;e===_.n&&t(Object(p.o)("account:"+_.n))}render(){const{accountId:t,statusIds:e,featuredStatusIds:a,isLoading:s,hasMore:c,blockedBy:o,suspended:i,isAccount:d,hidden:u,multiColumn:r,remote:l,remoteUrl:p}=this.props;if(!d)return Object(n.a)(h.a,{},void 0,Object(n.a)(O.a,{multiColumn:r}),Object(n.a)(w.a,{}));if(!e&&s)return Object(n.a)(h.a,{},void 0,Object(n.a)(m.b,{}));let j;const g=i||o||u;j=i?Object(n.a)(f.b,{id:"empty_column.account_suspended",defaultMessage:"Account suspended"}):u?Object(n.a)(y.a,{accountId:t}):o?Object(n.a)(f.b,{id:"empty_column.account_unavailable",defaultMessage:"Profile unavailable"}):l&&e.isEmpty()?Object(n.a)(k,{url:p}):Object(n.a)(f.b,{id:"empty_column.account_timeline",defaultMessage:"No posts found"});const M=l?Object(n.a)(k,{url:p}):null;return Object(n.a)(h.a,{},void 0,Object(n.a)(O.a,{multiColumn:r}),Object(n.a)(b.a,{prepend:Object(n.a)(I.a,{accountId:this.props.accountId,hideTabs:g}),alwaysPrepend:!0,append:M,scrollKey:"account_timeline",statusIds:g?R:e,featuredStatusIds:a,isLoading:s,hasMore:!g&&c,onLoadMore:this.handleLoadMore,emptyMessage:j,bindToDocument:!r,timelineId:"account"}))}}).propTypes={params:r.a.shape({acct:r.a.string,id:r.a.string}).isRequired,accountId:r.a.string,dispatch:r.a.func.isRequired,statusIds:d.a.list,featuredStatusIds:d.a.list,isLoading:r.a.bool,hasMore:r.a.bool,withReplies:r.a.bool,blockedBy:r.a.bool,isAccount:r.a.bool,suspended:r.a.bool,hidden:r.a.bool,remote:r.a.bool,remoteUrl:r.a.string,multiColumn:r.a.bool},s=c))||s}}]);
//# sourceMappingURL=account_timeline-08c7bfffcfd7586646da.chunk.js.map