import{d as e,n as t,t as n}from"./objectSpread2-DtFdQpqy.js";import{a as r,n as i}from"./preload-helper-EQ20WQt-.js";import{F as a,o,s}from"./prop-types-DdDwMzX7.js";import{U as c}from"./poll-D7UTo6nN.js";import{Do as l,Eo as u,Ta as d,ka as f}from"./time-BE5vfriQ.js";import{t as p}from"./useAccountId-hZkNcTVU.js";import{t as m}from"./index.module-TU-jmGO1.js";import{r as h}from"./number_fields-0_zdDBoP.js";import{i as g,n as _,r as v,t as y}from"./list-CWRGBGBz.js";var b=e(r()),x=i();t();var S=s({id:`followers.title`,defaultMessage:`Following {name}`}),C=()=>{let e=p(),t=c(e),n=l(e=>{var t;return(t=e.meta.get(`me`))==null?null:t}),r=l(t=>g(t,`followers`,e)),i=u();(0,b.useEffect)(()=>{!r&&e&&i(f(e))},[e,i,r]);let s=m(()=>{e&&i(d(e))},300,{leading:!0}),v=h(e),C=v!=null&&v.following?n:null,T=!!(t!=null&&t.hide_collections&&(r==null?void 0:r.items.length)===0&&C)&&(0,x.jsx)(`div`,{className:`empty-column-indicator`,children:(0,x.jsx)(o,{id:`followers.hide_other_followers`,defaultMessage:`This user has chosen to not make their other followers visible`,tagName:`span`})});return(0,x.jsx)(y,{accountId:e,header:e&&(0,x.jsx)(_,{accountId:e,titleText:S,total:t==null?void 0:t.followers_count}),footer:T,emptyMessage:(0,x.jsx)(w,{account:t}),list:r,loadMore:s,prependAccountId:C,withoutFollowsYouBadge:e===a,scrollKey:`followers`})},w=e=>(0,x.jsx)(v,n(n({},e),{},{defaultMessage:(0,x.jsx)(o,{id:`account.followers.empty`,defaultMessage:`No one follows this user yet.`})}));export{C as default};
//# sourceMappingURL=followers-BXaH9gZ5.js.map