PageSourceSearch

https://vebinet.com/packs/status_list-DmeO4dKd.js

js vebinet.com collected 2026-10-06 17:34:35 UTC 14,032 bytes, 2 lines download raw bytes

1import{o as e}from"./chunk-CMxvf4Kt.js";import{n as t,t as n}from"./jsx-runtime-SsSjplwM.js";import{a as r,c as i,s as a}from"./react-intl-Cop388b4.js";import{l as o,t as s}from"./prop-types-BTvjt2rf.js";import{$ as c,A as l,E as u,Q as d,n as f,nt as ee,r as p,rt as m}from"./poll-Dc3h__EC.js";import{F as h,I as g,Ri as _,di as v,ui as y}from"./render-RnHcMAAH.js";import{t as te}from"./debounce-Duyc-wL8.js";import{t as b}from"./defineProperty-ClgyJMzY.js";import{o as x,s as S}from"./typed_functions-CyAHd4bl.js";import{n as C}from"./short_number-Coj2vPT7.js";import{B as w,O as T,cn as E,n as D}from"./status_quoted-D4cD5V4p.js";import{t as O}from"./classnames-CYxIelk8.js";import{i as k,m as A,u as j}from"./account-n6fBtWyn.js";import{t as ne}from"./gif-CwwXYL9U.js";import{t as re}from"./info-fLA8QvQj.js";import{t as ie}from"./chevron_left-CiGtVExw.js";import{n as ae,t as M}from"./useObserver-B4vdAymM.js";import{t as N}from"./load_gap-BJWlqxsh.js";import{t as P}from"./scrollable_list-DqUcaa7y.js";var F=e(s()),I=e(te()),L=e(f()),R=n(),z=()=>(0,R.jsxs)(`div`,{className:`regeneration-indicator`,children:[(0,R.jsx)(ne,{src:`/loading.gif`,staticSrc:`/loading.png`,className:`regeneration-indicator__figure`}),(0,R.jsxs)(`div`,{className:`regeneration-indicator__label`,children:[(0,R.jsx)(`strong`,{children:(0,R.jsx)(r,{id:`regeneration_indicator.preparing_your_home_feed`,defaultMessage:`Preparing your home feed…`})}),(0,R.jsx)(r,{id:`regeneration_indicator.please_stand_by`,defaultMessage:`Please stand by.`,tagName:`span`})]})]}),B=e(t());function V({autoResize:e,padding:t=4}={}){let[n,r]=(0,B.useState)(-1),[i,a]=(0,B.useState)(0),[o,s]=(0,B.useState)(`none`),c=(0,B.useRef)(null),l=(0,B.useCallback)(()=>{let e=c.current;if(!e)return;let n=()=>{r(-1),a(0),s(`none`)},i=(e.parentElement?.offsetWidth??0)-(e.nextElementSibling?.scrollWidth??0)-t;if(i<=0){n();return}let o=0,l=0,u=0;for(let t of e.children){if(t instanceof HTMLElement){let e=t.offsetLeft+t.offsetWidth;if(e<=i)o+=1,u=e;else break}l++}if(o===e.children.length){n();return}r(l),a(e.children.length-o),s(u)},[t]);(0,B.useEffect)(()=>{c.current&&e&&(c.current.style.maxWidth=typeof o==`number`?`${o}px`:o)},[e,o]);let{listRefCallback:u,wrapperRefCallback:d}=U({onRecalculate:l,onListRef:c});return{hiddenCount:i,hasOverflow:i>0,wrapperRef:d,hiddenIndex:n,maxWidth:o,listRef:u,recalculate:l}}function H({widthOffset:e=200,absoluteDistance:t=!1}={}){let[n,r]=(0,B.useState)(!1),[i,a]=(0,B.useState)(!1),o=(0,B.useRef)(null),s=(0,B.useCallback)(()=>{o.current&&(getComputedStyle(o.current).direction===`rtl`?(r(o.current.clientWidth-o.current.scrollLeft<o.current.scrollWidth),a(o.current.scrollLeft<0)):(r(o.current.scrollLeft>0),a(o.current.scrollLeft+o.current.clientWidth<o.current.scrollWidth)))},[]),{wrapperRefCallback:c}=U({onRecalculate:s,onWrapperRef:o});(0,B.useEffect)(()=>{s()},[s]);let l=(0,B.useCallback)(()=>{requestAnimationFrame(s)},[s]);return{bodyRef:c,canScrollLeft:n,canScrollRight:i,handleLeftNav:(0,B.useCallback)(()=>{o.current&&(o.current.scrollLeft-=t?e:Math.max(e,o.current.clientWidth-e))},[t,e]),handleRightNav:(0,B.useCallback)(()=>{o.current&&(o.current.scrollLeft+=t?e:Math.max(e,o.current.clientWidth-e))},[t,e]),handleScroll:l}}function U({onRecalculate:e,onListRef:t,onWrapperRef:n}){let r=(0,B.useRef)(null),i=ae(e),a=(0,B.useCallback)(()=>{let t=r.current;if(t)for(let e of t.children)e instanceof HTMLElement&&i.observe(e);e()},[e,i]),o=M(a),s=(0,B.useCallback)(()=>{c.current&&i.observe(c.current),r.current&&(o.observe(r.current,{childList:!0}),a())},[a,o,i]),c=(0,B.useRef)(null);return{wrapperRefCallback:(0,B.useCallback)(e=>{e&&(c.current=e,s(),typeof n==`function`?n(e):n&&`current`in n&&(n.current=e))},[s,n]),listRefCallback:(0,B.useCallback)(e=>{e&&(r.current=e,s(),typeof t==`function`?t(e):t&&`current`in t&&(t.current=e))},[s,t])}}var W=a({previous:{id:`lightbox.previous`,defaultMessage:`Previous`},next:{id:`lightbox.next`,defaultMessage:`Next`},dismiss:{id:`follow_suggestions.dismiss`,defaultMessage:`Don't show again`},friendsOfFriendsHint:{id:`follow_suggestions.hints.friends_of_friends`,defaultMessage:`This profile is popular among the people you follow.`}
1,similarToRecentlyFollowedHint:{id:`follow_suggestions.hints.similar_to_recently_followed`,defaultMessage:`This profile is similar to the profiles you have most recently followed.`},featuredHint:{id:`follow_suggestions.hints.featured`,defaultMessage:`This profile has been hand-picked by the {domain} team.`},mostFollowedHint:{id:`follow_suggestions.hints.most_followed`,defaultMessage:`This profile is one of the most followed on {domain}.`},mostInteractionsHint:{id:`follow_suggestions.hints.most_interactions`,defaultMessage:`This profile has been recently getting a lot of attention on {domain}.`}}),G=({id:e})=>{let t=i(),n,a;switch(e){case`friends_of_friends`:a=t.formatMessage(W.friendsOfFriendsHint),n=(0,R.jsx)(r,{id:`follow_suggestions.personalized_suggestion`,defaultMessage:`Personalized suggestion`});break;case`similar_to_recently_followed`:a=t.formatMessage(W.similarToRecentlyFollowedHint),n=(0,R.jsx)(r,{id:`follow_suggestions.personalized_suggestion`,defaultMessage:`Personalized suggestion`});break;case`featured`:a=t.formatMessage(W.featuredHint,{domain:o}),n=(0,R.jsx)(r,{id:`follow_suggestions.curated_suggestion`,defaultMessage:`Staff pick`});break;case`most_followed`:a=t.formatMessage(W.mostFollowedHint,{domain:o}),n=(0,R.jsx)(r,{id:`follow_suggestions.popular_suggestion`,defaultMessage:`Popular suggestion`});break;case`most_interactions`:a=t.formatMessage(W.mostInteractionsHint,{domain:o}),n=(0,R.jsx)(r,{id:`follow_suggestions.popular_suggestion`,defaultMessage:`Popular suggestion`});break}return(0,R.jsx)(k,{className:`inline-follow-suggestions__body__scrollable__card__text-stack__source`,title:a,label:n,icon:(0,R.jsx)(re,{})})},K=({id:e,sources:t})=>{let n=i(),r=S(t=>t.accounts.get(e)),a=r?.fields.find(e=>!!e.verified_at),o=x();return(0,R.jsxs)(`div`,{className:`inline-follow-suggestions__body__scrollable__card`,children:[(0,R.jsx)(d,{icon:``,iconComponent:m,onClick:(0,B.useCallback)(()=>{o(h({accountId:e}))},[e,o]),title:n.formatMessage(W.dismiss)}),(0,R.jsx)(`div`,{className:`inline-follow-suggestions__body__scrollable__card__avatar`,children:(0,R.jsx)(C,{to:`/@${r?.acct}`,"data-hover-card-account":r?.id,children:(0,R.jsx)(l,{account:r,size:72})})}),(0,R.jsxs)(`div`,{className:`inline-follow-suggestions__body__scrollable__card__text-stack`,children:[(0,R.jsx)(C,{to:`/@${r?.acct}`,"data-hover-card-account":r?.id,children:(0,R.jsx)(u,{account:r})}),a?(0,R.jsx)(j,{link:a.value}):(0,R.jsx)(G,{id:t[0]})]}),(0,R.jsx)(A,{accountId:e})]})},q=`home/follow-suggestions`,oe=({hidden:e})=>{let t=i(),n=(0,B.useId)(),a=x(),o=S(e=>e.suggestions.items),s=S(e=>e.suggestions.isLoading),l=S(e=>e.settings.getIn([`dismissed_banners`,q]));(0,B.useEffect)(()=>{a(g())},[a]);let u=(0,B.useCallback)(()=>{a(_([`dismissed_banners`,q],!0))},[a]),{bodyRef:d,handleScroll:f,canScrollLeft:m,canScrollRight:h,handleLeftNav:v,handleRightNav:y}=H({absoluteDistance:!0});return l||!s&&o.length===0?null:e?(0,R.jsx)(`div`,{className:`inline-follow-suggestions`}):(0,R.jsxs)(`div`,{role:`group`,"aria-labelledby":n,className:`inline-follow-suggestions focusable`,tabIndex:-1,children:[(0,R.jsxs)(`div`,{className:`inline-follow-suggestions__header`,children:[(0,R.jsx)(`h2`,{id:n,className:`inline-follow-suggestions__title`,children:(0,R.jsx)(r,{id:`follow_suggestions.who_to_follow`,defaultMessage:`Who to follow`})}),(0,R.jsxs)(`div`,{className:`inline-follow-suggestions__header__actions`,children:[(0,R.jsx)(`button`,{className:`link-button`,onClick:u,type:`button`,children:(0,R.jsx)(r,{id:`follow_suggestions.dismiss`,defaultMessage:`Don't show again`})}),(0,R.jsx)(C,{to:`/explore/suggestions`,className:`link-button`,children:(0,R.jsx)(r,{id:`follow_suggestions.view_all`,defaultMessage:`View all`})})]})]}),(0,R.jsxs)(`div`,{className:`inline-follow-suggestions__body`,children:[(0,R.jsx)(`div`,{className:`inline-follow-suggestions__body__scrollable`,ref:d,onScroll:f,children:s?(0,R.jsx)(ee,{}):o.map(e=>(0,R.jsx)(K,{id:e.account_id,sources:e.sources},e.account_id))}),m&&(0,R.jsx)(`button`,{className:`inline-follow-suggestions__body__scroll-button left`,onClick:v,"aria-label":t.formatMessage(W.previous),type:`button`,children:(0,R.jsx)(`div`,{className:`inline-follow-suggestions__body__scroll-button__icon`,children:(0,R.jsx)(c,{id:``,
1icon:ie})})}),h&&(0,R.jsx)(`button`,{className:`inline-follow-suggestions__body__scroll-button right`,onClick:y,"aria-label":t.formatMessage(W.next),type:`button`,children:(0,R.jsx)(`div`,{className:`inline-follow-suggestions__body__scroll-button__icon`,children:(0,R.jsx)(c,{id:``,icon:p})})})]})]})},se=e(O()),J=e=>(0,R.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 16 16`,...e,children:(0,R.jsx)(`path`,{d:`M13.128 7.586a.666.666 0 0 0 0-.943l-3.771-3.77a.667.667 0 0 0-.943.942 1.333 1.333 0 0 1 0 1.885L6.641 7.473a2 2 0 0 1-2.046.48v.002l-1.263-.414-.004-.002a.668.668 0 0 0-.684.16l-.358.358 5.657 5.657.358-.357a.67.67 0 0 0 .16-.684l-.001-.004-.415-1.265a2.002 2.002 0 0 1 .482-2.045L10.3 7.586a1.333 1.333 0 0 1 1.885 0 .667.667 0 0 0 .943 0Zm.943.942a2 2 0 0 1-2.829 0L9.47 10.301l-.06.07a.666.666 0 0 0-.124.524l.024.09.001.004.416 1.263a1.999 1.999 0 0 1-.483 2.046l-.358.359a1.335 1.335 0 0 1-1.886 0L4.642 12.3l-1.885 1.885a.667.667 0 1 1-.942-.943L3.7 11.357 1.343 9.001a1.335 1.335 0 0 1 0-1.887l.358-.358a2 2 0 0 1 2.051-.481l1.26.414.003.001a.67.67 0 0 0 .614-.1l.07-.06L7.47 4.757A2 2 0 0 1 10.3 1.93l3.77 3.77a2 2 0 0 1 0 2.83Z`})});function ce({type:e=`local`,prefix:t=``}={}){let n=e===`local`?`localStorage`:`sessionStorage`,r=(0,B.useMemo)(()=>le(n),[n]);return{isAvailable:r,getItem:(0,B.useCallback)(e=>{if(!r)return null;try{return window[n].getItem(t?`${t};${e}`:e)}catch{return null}},[r,n,t]),setItem:(0,B.useCallback)((e,i)=>{if(r)try{window[n].setItem(t?`${t};${e}`:e,i)}catch{}},[r,n,t]),removeItem:(0,B.useCallback)(e=>{if(r)try{window[n].removeItem(t?`${t};${e}`:e)}catch{}},[r,n,t])}}function Y(e,t,n){let{getItem:r,setItem:i,removeItem:a}=ce(n),[o,s]=(0,B.useState)(()=>de(r(e))??t);return[o,(0,B.useCallback)(t=>{i(e,ue(t)),s(t)},[e,i]),(0,B.useCallback)(()=>{a(e),s(t)},[t,e,a])]}function le(e){let t;try{t=window[e];let n=`__storage_test__`;return t.setItem(n,n),t.removeItem(n),!0}catch(e){return e instanceof DOMException&&e.name===`QuotaExceededError`&&t&&t.length!==0}}function ue(e){return typeof e==`boolean`?e?`1`:`0`:e}function de(e){return e===`1`?!0:e===`0`?!1:e}var X=(0,B.createContext)(null);function Z(){let e=(0,B.useContext)(X);if(!e)throw Error(`useAccountFilters must be used within an AccountTimelineProvider`);return e}var fe=e=>{let t={type:`local`,prefix:`account-filters`},[n,r]=Y(`boosts`,!0,t),[i,a]=Y(`replies`,!1,t),o=(0,B.useCallback)(e=>{r(e)},[r]),s=(0,B.useCallback)(e=>{a(e)},[a]),[c,l]=(0,B.useState)(!1),u=(0,B.useCallback)(()=>{l(!0)},[]);return(0,B.useMemo)(()=>({accountId:e??null,boosts:n,replies:i,showAllPinned:c,setBoosts:o,setReplies:s,onShowAllPinned:u}),[e,n,o,s,u,i,c])},Q={filtersWrapper:`_feat_account_timeline__filtersWrapper`,filterSelectButton:`_feat_account_timeline__filterSelectButton`,filterSelectIcon:`_feat_account_timeline__filterSelectIcon`,filterOverlay:`_feat_account_timeline__filterOverlay`,tagsWrapper:`_feat_account_timeline__tagsWrapper`,tagSuggestions:`_feat_account_timeline__tagSuggestions`,tagsList:`_feat_account_timeline__tagsList`,tagsListShowAll:`_feat_account_timeline__tagsListShowAll`,statusWrapper:`_feat_account_timeline__statusWrapper`,pinnedViewAllButton:`_feat_account_timeline__pinnedViewAllButton`,pinnedStatusHeader:`_feat_account_timeline__pinnedStatusHeader`,pinnedBadge:`_feat_account_timeline__pinnedBadge`},pe=({featured:e,...t})=>e?(0,R.jsx)(T,{...t,className:Q.pinnedStatusHeader,contentBeforeDate:(0,R.jsx)(k,{className:Q.pinnedBadge,icon:(0,R.jsx)(c,{id:`pinned`,icon:J}),label:(0,R.jsx)(r,{id:`account.timeline.pinned`,defaultMessage:`Pinned`})})}):(0,R.jsx)(T,{...t}),me=()=>{let{onShowAllPinned:e}=Z();return(0,R.jsxs)(E,{onClick:e,className:(0,se.default)(Q.pinnedViewAllButton,`focusable`),children:[(0,R.jsx)(c,{id:`pinned`,icon:J}),(0,R.jsx)(r,{id:`account.timeline.pinned.view_all`,defaultMessage:`View all pinned posts`})]})},$=class extends w{constructor(...e){super(...e),b(this,`handleLoadOlder`,(0,I.default)(()=>{let{statusIds:e,lastId:t,onLoadMore:n}=this.props;n(t||(e.size>0?e.last():void 0))},300,{leading:!0})),b(this,`setRef`,e=>{this.node=e})}render(){let{statusIds:e,featuredStatusIds:t,onLoadMore:n,timelineId:r,statusProps:i,...a}=this.props,{isLoading:o,isPartial:s}=a;if(s)return(0,R.jsx)(z,{});let c=o||e.size>0?e.map((t,a)=>{switch(t){case v:return(0,R.jsx)(oe,{},v);case null:return(0,R.jsx)(N,{disabled:o,param:a>0?e.get(a-1):null,onClick:n},`gap:`+e.get(a+1));default:return(0,R.jsx)(D,{id:t,contextType:r,scrollKey:this.props.scrollKey,showThread:!0,withCounters:this.props.withCounters,...i},t)}}):null;return c&&t&&(c=t.map(e=>e===`pinned-view-all`?(0,R.jsx)(me,{},y):(0,R.jsx)(D,{id:e,featured:!0,contextType:r,showThread:!0,withCounters:this.props.withCounters,...i},`f-${e}`)).concat(c)),(0,R.jsx)(P,{...a,showLoading:o&&e.size===0,onLoadMore:n&&this.handleLoadOlder,ref:this.setRef,children:c})}};b($,`propTypes`,{scrollKey:F.default.string.isRequired,statusIds:L.default.list.isRequired,featuredStatusIds:L.default.list,onLoadMore:F.default.func,onScrollToTop:F.default.func,onScroll:F.default.func,trackScroll:F.default.bool,isLoading:F.default.bool,isPartial:F.default.bool,hasMore:F.default.bool,prepend:F.default.node,emptyMessage:F.default.node,alwaysPrepend:F.default.bool,withCounters:F.default.bool,timelineId:F.default.string,lastId:F.default.string,bindToDocument:F.default.bool,statusProps:F.default.object}),b($,`defaultProps`,{trackScroll:!0});export{Z as a,X as i,pe as n,fe as o,Q as r,V as s,$ as t};
2//# sourceMappingURL=status_list-DmeO4dKd.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.