var f=Object.defineProperty;var h=(o,t,s)=>t in o?f(o,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[t]=s;var r=(o,t,s)=>h(o,typeof t!="symbol"?t+"":t,s);import{j as e}from"./client-By3tlFYA.js";import{P as i}from"./short_number-C9zm8Jg6.js";import{i as g,a as M}from"./index-TEHZzOO_.js";import{H as x}from"./Helmet-BG0DmkIY.js";import{j,p as b,q as I,ed as L,z as y,ee as S,L as C}from"./useSelectableClick-BxxGQli3.js";import{S as T}from"./volume_off-DcrFHULF.js";import{A as _}from"./index-P1H0ZHJO.js";import{S as P}from"./scrollable_list-C9ToIjEA.js";import{C as p}from"./column-D8q25PWW.js";import{M as q}from"./message-CVkQtbZv.js";import"./numbers-BLyy7tyF.js";import"./index-DkCxcZFY.js";import"./relative_timestamp-BOUL06oe.js";import"./ready-DpOgoWSg.js";import"./index-DUY7J2K7.js";import"./skeleton-CwYXpOUk.js";import"./api-C8Dh2R2O.js";import"./index-DiPYjm3h.js";import"./load_locale-CF-OtRm0.js";import"./status_quoted-B4XDAzAW.js";import"./counters-O2iLRFgv.js";import"./follow_button-4kk1eVh_.js";import"./verified_badge-CALr0BmE.js";import"./index-Cug8L038.js";import"./scroll_context-CaPHRejF.js";import"./schedule_idle_task-CDh0madc.js";import"./load_more-BrYvOBz8.js";import"./column_header-DvgirlnX.js";import"./add-CxOAEcXl.js";import"./chevron_left-tY77j9LU.js";import"./unfold_more-Dg1Ay52N.js";import"./scroll-BygYx8ga.js";const A=M({heading:{id:"column.mutes",defaultMessage:"Muted users"}}),R=o=>({accountIds:o.getIn(["user_lists","mutes","items"]),hasMore:!!o.getIn(["user_lists","mutes","next"]),isLoading:o.getIn(["user_lists","mutes","isLoading"],!0)});class u extends b{constructor(){super(...arguments);r(this,"handleLoadMore",y(()=>{this.props.dispatch(S())},300,{leading:!0}))}UNSAFE_componentWillMount(){this.props.dispatch(L())}render(){const{intl:s,hasMore:d,accountIds:m,multiColumn:a,isLoading:c}=this.props;if(!m)return e.jsx(p,{children:e.jsx(C,{})});const l=e.jsx(q,{id:"empty_column.mutes",defaultMessage:"You haven't muted any users yet."});return e.jsxs(p,{bindToDocument:!a,icon:"volume-off",iconComponent:T,heading:s.formatMessage(A.heading),alwaysShowBackButton:!0,children:[e.jsx(P,{scrollKey:"mutes",onLoadMore:this.handleLoadMore,hasMore:d,isLoading:c,emptyMessage:l,bindToDocument:!a,children:m.map(n=>e.jsx(_,{id:n,defaultAction:"mute"},n))}),e.jsx(x,{children:e.jsx("meta",{name:"robots",content:"noindex"})})]})}}r(u,"propTypes",{params:i.object.isRequired,dispatch:i.func.isRequired,hasMore:i.bool,isLoading:i.bool,accountIds:I.list,intl:i.object.isRequired,multiColumn:i.bool});const co=j(R)(g(u));export{co as default};
//# sourceMappingURL=mutes-index-DlUYL70R.js.map
