import{a as e,d as t,i as n}from"./objectSpread2-DtFdQpqy.js";import{n as r}from"./preload-helper-EQ20WQt-.js";import{c as i,o as a,t as o}from"./prop-types-DdDwMzX7.js";import{ft as s,i as c,lt as l}from"./poll-9cD-z1op.js";import{Ro as u,Y as d,ko as f,q as p}from"./time-BE5vfriQ.js";import{t as m}from"./helmet-xJbX5x_5.js";import{t as h}from"./intl-DxYtUOxD.js";import{H as g}from"./status_quoted-I7FHuyaO.js";import{t as _}from"./account-DMgquuP2.js";import{a as v}from"./columns_area-CKo_cVx6.js";import{t as y}from"./column-D_9mZ_Qm.js";import{t as b}from"./scrollable_list-BjgHe2e-.js";import{t as x}from"./refresh-CCnPx_6g.js";var S=t(o()),C=t(c()),w=t(u()),T=r();e();var E=i({refresh:{id:`refresh`,defaultMessage:`Refresh`}}),D=(e,t)=>({accountIds:e.getIn([`user_lists`,`reblogged_by`,t.params.statusId,`items`]),hasMore:!!e.getIn([`user_lists`,`reblogged_by`,t.params.statusId,`next`]),isLoading:e.getIn([`user_lists`,`reblogged_by`,t.params.statusId,`isLoading`],!0)}),O=class extends g{constructor(...e){super(...e),n(this,`handleRefresh`,()=>{this.props.dispatch(d(this.props.params.statusId))}),n(this,`handleLoadMore`,(0,w.default)(()=>{this.props.dispatch(p(this.props.params.statusId))},300,{leading:!0}))}componentDidMount(){this.props.accountIds||this.props.dispatch(d(this.props.params.statusId))}render(){let{intl:e,accountIds:t,hasMore:n,isLoading:r,multiColumn:i}=this.props;if(!t)return(0,T.jsx)(y,{children:(0,T.jsx)(s,{})});let o=(0,T.jsx)(a,{id:`status.reblogs.empty`,defaultMessage:`No one has boosted this post yet. When someone does, they will show up here.`});return(0,T.jsxs)(y,{bindToDocument:!i,children:[(0,T.jsx)(v,{showBackButton:!0,multiColumn:i,extraButton:(0,T.jsx)(`button`,{type:`button`,className:`column-header__button`,title:e.formatMessage(E.refresh),"aria-label":e.formatMessage(E.refresh),onClick:this.handleRefresh,children:(0,T.jsx)(l,{id:`refresh`,icon:x})})}),(0,T.jsx)(b,{scrollKey:`reblogs`,onLoadMore:this.handleLoadMore,hasMore:n,isLoading:r,emptyMessage:o,bindToDocument:!i,children:t.map(e=>(0,T.jsx)(_,{id:e},e))}),(0,T.jsx)(m,{children:(0,T.jsx)(`meta`,{name:`robots`,content:`noindex`})})]})}};n(O,`propTypes`,{params:S.default.object.isRequired,dispatch:S.default.func.isRequired,accountIds:C.default.list,hasMore:S.default.bool,isLoading:S.default.bool,multiColumn:S.default.bool,intl:S.default.object.isRequired});var k=f(D)(h(O));export{k as default};
//# sourceMappingURL=reblogs-DFjz8LtI.js.map