import{j as g,by as f,bW as p,d8 as c,z as a,dj as m,dk as l}from"./useSelectableClick-D9BFU7v4.js";import{S as d}from"./status_list-BEU0Pjmu.js";import{m as u}from"./index-TEHZzOO_.js";const i=(n=!1)=>f([(t,{type:r})=>t.getIn(["settings",r],p()),(t,{type:r})=>t.getIn(["timelines",r,n?"pendingItems":"items"],c()),t=>t.get("statuses")],(t,r,s)=>r.filter(e=>{if(e===null||e==="inline-follow-suggestions")return!0;const o=s.get(e);return o.get("account")===u?!0:!(t.getIn(["shows","reblog"])===!1&&o.get("reblog")!==null||t.getIn(["shows","reply"])===!1&&o.get("in_reply_to_id")!==null&&o.get("in_reply_to_account_id")!==u||t.getIn(["shows","quote"])===!1&&o.get("quote")!==null)})),S=()=>{const n=i(),t=i(!0);return(s,{timelineId:e})=>{var o;return{statusIds:n(s,{type:e}),lastId:(o=s.getIn(["timelines",e,"items"]))==null?void 0:o.last(),isLoading:s.getIn(["timelines",e,"isLoading"],!0),isPartial:s.getIn(["timelines",e,"isPartial"],!1),hasMore:s.getIn(["timelines",e,"hasMore"]),numPending:t(s,{type:e}).size}}},P=(n,{timelineId:t})=>({onScrollToTop:a(()=>{n(l(t,!0))},100),onScroll:a(()=>{n(l(t,!1))},100),onLoadPending:()=>n(m(t))}),y=g(S,P)(d);export{y as S};
//# sourceMappingURL=status_list_container-EozqkaIY.js.map
