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}from"./poll-UAe1CGVf.js";import{C as l,Ro as u,ko as d,w as f}from"./time-C7shVqCd.js";import{t as p}from"./helmet-xJbX5x_5.js";import{t as m}from"./intl-DxYtUOxD.js";import{H as h}from"./status_quoted-CRoil4HW.js";import{t as g}from"./account-DP5xh-2e.js";import{t as _}from"./volume_off-DvtxV6z3.js";import{t as v}from"./column-vTUpuNeR.js";import{t as y}from"./scrollable_list-d6jZVFfD.js";var b=t(o()),x=t(c()),S=t(u()),C=r();e();var w=i({heading:{id:`column.mutes`,defaultMessage:`Muted users`}}),T=e=>({accountIds:e.getIn([`user_lists`,`mutes`,`items`]),hasMore:!!e.getIn([`user_lists`,`mutes`,`next`]),isLoading:e.getIn([`user_lists`,`mutes`,`isLoading`],!0)}),E=class extends h{constructor(...e){super(...e),n(this,`handleLoadMore`,(0,S.default)(()=>{this.props.dispatch(l())},300,{leading:!0}))}componentDidMount(){this.props.dispatch(f())}render(){let{intl:e,hasMore:t,accountIds:n,multiColumn:r,isLoading:i}=this.props;if(!n)return(0,C.jsx)(v,{children:(0,C.jsx)(s,{})});let o=(0,C.jsx)(a,{id:`empty_column.mutes`,defaultMessage:`You haven't muted any users yet.`});return(0,C.jsxs)(v,{bindToDocument:!r,icon:`volume-off`,iconComponent:_,heading:e.formatMessage(w.heading),alwaysShowBackButton:!0,children:[(0,C.jsx)(y,{scrollKey:`mutes`,onLoadMore:this.handleLoadMore,hasMore:t,isLoading:i,emptyMessage:o,bindToDocument:!r,children:n.map(e=>(0,C.jsx)(g,{id:e,defaultAction:`mute`},e))}),(0,C.jsx)(p,{children:(0,C.jsx)(`meta`,{name:`robots`,content:`noindex`})})]})}};n(E,`propTypes`,{params:b.default.object.isRequired,dispatch:b.default.func.isRequired,hasMore:b.default.bool,isLoading:b.default.bool,accountIds:x.default.list,intl:b.default.object.isRequired,multiColumn:b.default.bool});var D=d(T)(m(E));export{D as default};
//# sourceMappingURL=mutes-Dr-hgy2c.js.map