var u=Object.defineProperty;var l=(t,o,s)=>o in t?u(t,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[o]=s;var i=(t,o,s)=>l(t,typeof o!="symbol"?o+"":o,s);import{j as e}from"./client-By3tlFYA.js";import{P as r}from"./short_number-C9zm8Jg6.js";import{i as d,a as c}from"./index-TEHZzOO_.js";import{H as h}from"./Helmet-BG0DmkIY.js";import{j as f,dO as x,p as g,q as P,dP as b}from"./useSelectableClick-DTdgxZDW.js";import{S as j}from"./push_pin-COnuQwzx.js";import{S}from"./status_list-IOKMNlY4.js";import{C}from"./column-CRm2IGN9.js";import"./numbers-BLyy7tyF.js";import"./message-CVkQtbZv.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-CtCfW5wW.js";import"./gif-Bgo7GYqa.js";import"./chevron_left-tY77j9LU.js";import"./info-onfAZF3m.js";import"./follow_button-BSQ1TRHS.js";import"./status_quoted-kaf3VuVu.js";import"./verified_badge-B3Z6rjpX.js";import"./load_gap-CDjyptoz.js";import"./scrollable_list-BYv_TrjK.js";import"./index-C-YpAbOx.js";import"./scroll_context-CRutkvTJ.js";import"./schedule_idle_task-CDh0madc.js";import"./load_more-D_aNDjJ2.js";import"./column_header-BrM5Md85.js";import"./add-CxOAEcXl.js";import"./unfold_more-Dg1Ay52N.js";import"./scroll-BygYx8ga.js";const I=c({heading:{id:"column.pins",defaultMessage:"Pinned post"}}),M=t=>({statusIds:x(t,"pins"),hasMore:!!t.getIn(["status_lists","pins","next"])});class p extends g{constructor(){super(...arguments);i(this,"handleHeaderClick",()=>{this.column.scrollTop()});i(this,"setRef",s=>{this.column=s})}UNSAFE_componentWillMount(){this.props.dispatch(b())}render(){const{intl:s,statusIds:n,hasMore:a,multiColumn:m}=this.props;return e.jsxs(C,{bindToDocument:!m,icon:"thumb-tack",iconComponent:j,heading:s.formatMessage(I.heading),ref:this.setRef,alwaysShowBackButton:!0,children:[e.jsx(S,{statusIds:n,scrollKey:"pinned_statuses",hasMore:a,bindToDocument:!m}),e.jsx(h,{children:e.jsx("meta",{name:"robots",content:"noindex"})})]})}}i(p,"propTypes",{dispatch:r.func.isRequired,statusIds:P.list.isRequired,intl:r.object.isRequired,hasMore:r.bool.isRequired,multiColumn:r.bool});const mt=f(M)(d(p));export{mt as default};
//# sourceMappingURL=pinned_statuses-index-B3ZH09Uy.js.map
