PageSourceSearch

https://toots.n7.gg/packs/account_list_item-5_X7s2pl.js

js n7.gg collected 2026-10-08 07:49:17 UTC 3,270 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}from"./react-intl-Cop388b4.js";import{l as a}from"./prop-types-BTvjt2rf.js";import{A as o,F as s,M as c,O as l,k as u,s as d}from"./poll-quu7nqu0.js";import{t as f}from"./short_number-Coj2vPT7.js";import{d as p,f as m}from"./status_quoted-CwxV3dOE.js";import{t as h}from"./classnames-CYxIelk8.js";import{m as g,o as _,u as v}from"./account-DbeGfCXM.js";import{t as y}from"./formatted_date-BMWzXdl7.js";import{n as b,r as x,t as S}from"./number_fields-D3chQGXz.js";var C=e(t()),w=e(h()),T={wrapper:`_comp_account_list_item__wrapper`,main:`_comp_account_list_item__main`,displayName:`_comp_account_list_item__displayName`,badge:`_comp_account_list_item__badge`,handle:`_comp_account_list_item__handle`,button:`_comp_account_list_item__button`,verifiedBadge:`_comp_account_list_item__verifiedBadge`,bio:`_comp_account_list_item__bio`},E=n(),D=[`followers`,`posts`,`last-active`],O=({accountId:e,stats:t=D,withBio:n=!0,withBorder:h=!0,badge:g,renderButton:O=k})=>{let A=i(),j=c(e),M=u(j,a),N=x(e),P=(0,C.useMemo)(()=>j?.created_at.includes(new Date().getFullYear().toString()),[j?.created_at]);if(!e||!j)return null;let F=g??(N?.followed_by?(0,E.jsx)(_,{}):null),I=j.fields.find(e=>!!e.verified_at);return(0,E.jsxs)(`div`,{className:T.wrapper,"data-with-border":h,children:[(0,E.jsx)(m,{className:T.main,icon:(0,E.jsx)(o,{account:j,size:40}),sideContent:(0,E.jsx)(`span`,{className:T.button,children:O({accountId:e,relationship:N})}),children:(0,E.jsxs)(p,{to:`/@${j.acct}`,"data-hover-card-account":e,subtitle:(0,E.jsx)(`span`,{className:T.handle,children:M}),children:[(0,E.jsx)(l,{account:j,className:T.displayName}),F&&(0,E.jsx)(`span`,{className:T.badge,children:F})]})}),(0,E.jsxs)(S,{children:[t.includes(`followers`)&&(0,E.jsx)(b,{label:(0,E.jsx)(r,{id:`account.followers`,defaultMessage:`Followers`}),hint:A.formatNumber(j.followers_count),children:(0,E.jsx)(f,{value:j.followers_count})}),t.includes(`following`)&&(0,E.jsx)(b,{label:(0,E.jsx)(r,{id:`account.following`,defaultMessage:`Following`}),hint:A.formatNumber(j.following_count),link:`/@${j.acct}/following`,children:(0,E.jsx)(f,{value:j.following_count})}),t.includes(`posts`)&&(0,E.jsx)(b,{label:(0,E.jsx)(r,{id:`account.posts`,defaultMessage:`Posts`}),hint:A.formatNumber(j.statuses_count),children:(0,E.jsx)(f,{value:j.statuses_count})}),t.includes(`joined`)&&(0,E.jsx)(b,{label:(0,E.jsx)(r,{id:`account.joined_short`,defaultMessage:`Joined`}),hint:A.formatDate(j.created_at),children:P?(0,E.jsx)(y,{value:j.created_at,month:`short`,day:`2-digit`}):(0,E.jsx)(y,{value:j.created_at,year:`numeric`})}),t.includes(`last-active`)&&(0,E.jsx)(b,{label:(0,E.jsx)(r,{id:`account.last_active`,defaultMessage:`Last active`}),children:j.last_status_at?(0,E.jsx)(d,{long:!0,timestamp:j.last_status_at}):`-`}),I&&(0,E.jsx)(v,{link:I.value,className:T.verifiedBadge})]}),n&&j.note.length>0&&(0,E.jsx)(s,{className:(0,w.default)(T.bio,`translate`),htmlString:j.note_emojified,extraEmojis:j.emojis})]})},k=({accountId:e})=>(0,E.jsx)(A,{accountId:e}),A=({accountId:e})=>(0,E.jsx)(g,{compact:!0,labelLength:`short`,accountId:e});export{A as n,O as t};
2//# sourceMappingURL=account_list_item-5_X7s2pl.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.