PageSourceSearch

https://fox.nexus/packs/account-DZG5dMU9.js

js fox.nexus collected 2026-10-07 02:56:27 UTC 5,124 bytes, 2 lines download raw bytes

1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{n as t,t as n}from"./jsx-runtime-D3F0h15I.js";import{a as r,c as i,s as a}from"./react-intl-CZJDGRhA.js";import{E as o}from"./initial_state-Bq_NJi1A.js";import{Ba as s,C as c,So as l,To as u,bo as d,so as f,vo as p,wo as m}from"./time-CFfcbpZ0.js";import{at as h,s as g}from"./accounts_typed-CHqjvle5.js";import{o as _,s as v}from"./typed_functions--Rew8955.js";import{n as y}from"./modal-CxkWa4aF.js";import{Gt as b,Kt as x}from"./mood-DwUMQEMm.js";import{t as S}from"./classnames-CfLRLWYq.js";import{R as C,T as ee,i as te,j as ne,k as re,p as ie}from"./poll-DEA_tGq7.js";import{t as ae}from"./short_number-CHNMv1Rn.js";import{t as oe}from"./counters-Do56yhcU.js";import{r as se,t as ce}from"./display_name-DM6TyuhW.js";import{t as w}from"./skeleton-B7DUl0I_.js";import{t as T}from"./follow_button-D28E79KJ.js";import{S as E}from"./bookmark-CtUZgtUD.js";import{l as D}from"./badge-o3HAkrmr.js";var O=e(t()),k=e(S()),A=n(),j=a({follow:{id:`account.follow`,defaultMessage:`Follow`},unfollow:{id:`account.unfollow`,defaultMessage:`Unfollow`},cancel_follow_request:{id:`account.cancel_follow_request`,defaultMessage:`Withdraw follow request`},unblock:{id:`account.unblock_short`,defaultMessage:`Unblock`},unmute:{id:`account.unmute_short`,defaultMessage:`Unmute`},mute_notifications:{id:`account.mute_notifications_short`,defaultMessage:`Mute notifications`},unmute_notifications:{id:`account.unmute_notifications_short`,defaultMessage:`Unmute notifications`},mute:{id:`account.mute_short`,defaultMessage:`Mute`},block:{id:`account.block_short`,defaultMessage:`Block`},more:{id:`status.more`,defaultMessage:`More`},addToLists:{id:`account.add_or_remove_from_list`,defaultMessage:`Add or Remove from lists`},openOriginalPage:{id:`account.open_original_page`,defaultMessage:`Open original page`}}),M=({id:e,size:t=46,overlayEmoji:n={name:null},hidden:a,minimal:S,defaultAction:M,withBio:N,withMenu:P=!0,withBorder:F=!0,extraAccountInfo:I,className:L,children:R,reference:z})=>{let B=i(),{signedIn:V}=C(),H=v(t=>t.accounts.get(e)),U=v(t=>t.relationships.get(e)),W=_(),G=H?.url,K=H?.acct!==H?.username,le=(0,O.useCallback)(()=>{U?.blocking?W(l(e)):W(f(e))},[W,e,U]),ue=(0,O.useCallback)(()=>{U?.muting?W(m(e)):W(c(H))},[W,e,H,U]),q=(0,O.useMemo)(()=>{let t=[];return M===`mute`?t=[{text:B.formatMessage(U?.muting_notifications?j.unmute_notifications:j.mute_notifications),action:U?.muting_notifications?()=>{W(p(e,!1))}:()=>{W(p(e,!0))}}]:M!==`block`&&(K&&G&&t.push({text:B.formatMessage(j.openOriginalPage),href:G}),V&&(t.push({text:B.formatMessage(j.addToLists),action:()=>{let t=()=>{W(y({modalType:`LIST_ADDER`,modalProps:{accountId:e}}))};U?.following||U?.requested||e===o?t():W(y({modalType:`CONFIRM_FOLLOW_TO_LIST`,modalProps:{accountId:e,onConfirm:()=>{h(e,{ref:z}).then(e=>{W(g({relationship:e,alreadyFollowing:!1})),t()}).catch(e=>{W(s(e))})}}}))}}),e!==o&&(U?.following||U?.requested)&&t.push({text:B.formatMessage(U.endorsed?{id:`account.unendorse`}:{id:`account.endorse`}),action:()=>{U.endorsed?W(u(e)):W(d(e))}}))),t},[W,B,e,G,U,M,K,V,z]);if(a)return(0,A.jsxs)(A.Fragment,{children:[H?.display_name,H?.username]});let J,Y;q.length>0&&P&&(Y=(0,A.jsx)(ie,{items:q,icon:`ellipsis-h`,iconComponent:E,title:B.formatMessage(j.more)})),J=M===`block`?(0,A.jsx)(x,{text:B.formatMessage(U?.blocking?j.unblock:j.block),onClick:le}):M===`mute`?(0,A.jsx)(x,{text:B.formatMessage(U?.muting?j.unmute:j.mute),onClick:ue}):(0,A.jsx)(T,{accountId:e,reference:z});let X;H?.mute_expires_at&&(X=(0,A.jsxs)(A.Fragment,{children:[`· `,(0,A.jsx)(te,{hasFuture:!0,timestamp:H.mute_expires_at})]}));let Z,Q=H?.fields.find(e=>!!e.verified_at);Q&&(Z=(0,A.jsx)(D,{link:Q.value}));let $;return $=n.name?(0,A.jsx)(b,{account:H,emoji:n}):(0,A.jsx)(ee,{account:H,size:t}),(0,A.jsx)(`div`,{className:(0,k.default)(`account`,L,{"account--minimal":S,"account--without-border":!F}),children:(0,A.jsxs)(`div`,{className:(0,k.default)(`account__wrapper`,{"account__wrapper--with-bio":H&&N}),children:[(0,A.jsxs)(`div`,{className:`account__info-wrapper`,children:[(0,A.jsxs)(se,{className:`account__display-name focusable`,title:H?.acct,href:H?.url,to:{pathname:`/@${H?.acct}`,state:{reference:z}},"data-hover-card-account":e,"data-hover-card-reference":z,children:[(0,A.jsx)(`div`,{className:`account__avatar-wrapper`,children:(0,A.jsx)(ne,{children:H?$:(0,A.jsx)(w,{width:t,height:t})})}),(0,A.jsxs)(`div`,{className:`account__contents`,children:[(0,A.jsx)(ce,{account:H}),!S&&(0,A.jsx)(`div`,{className:`account__details`,children:H?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(ae,{value:H.followers_count,renderer:oe}),` `,Z,` `,X]}):(0,A.jsx)(w,{width:`7ch`})})]})]}),H&&N&&(H.note.length>0?(0,A.jsx)(re,{className:`account__note translate`,htmlString:H.note_emojified,extraEmojis:H.emojis}):(0,A.jsx)(`div`,{className:`account__note account__note--missing`,children:(0,A.jsx)(r,{id:`account.no_bio`,defaultMessage:`No description provided.`})})),I]}),!S&&(0,A.jsxs)(`div`,{className:`account__relationship`,children:[Y,J]}),R]})})};export{M as t};
2//# sourceMappingURL=account-DZG5dMU9.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.