PageSourceSearch

https://farcaster.xyz/assets/ProfileLikes-BGGVKfee.js

js farcaster.xyz collected 2026-09-24 08:34:53 UTC 1,460 bytes, 1 lines download raw bytes

1import{h as x,r as n,j as o}from"./vendor-wagmi-CRHMQcRy.js";import{C}from"./Cast-COyxhgny.js";import{$ as P,cZ as g,b5 as k,b6 as E,b7 as b,B as L,j as u,l as j,H as F,M,D as N,am as U}from"./index-CjDX1y09.js";import{a as w,c as O,P as R}from"./ProfileContent-BYcyGVPl.js";import{u as S}from"./useCastsWithContext-CjhYoVhM.js";import{c as $}from"./keyExtractorUtils-CBXPartG.js";const H=({fid:s})=>{const{apiClient:e}=P(),t=g(),a=x({initialPageParam:void 0,queryKey:w({fid:s}),queryFn:O({apiClient:e,batchMergeIntoGloballyCachedCasts:t,fid:s}),getNextPageParam:b}),r=k(a);return E(a,{onEndReached:r})},I=n.memo(({userProfile:s})=>{const{user:e}=s,{trackEvent:t}=L(),a=u(),r=u(),i=j(a.sourceOn??r.sourceOn),c=a.castHash??r.castHash,{data:m,onEndReached:d,isFetchingNextPage:l}=H({fid:e.fid}),h=n.useMemo(()=>m?.pages.flatMap(y=>y.result.casts)||[],[m]),f=S(h,{forceThreadPosition:"start_and_end"}),p=n.useMemo(()=>`Liked by ${e.displayName}${e.username?` (@${e.username})`:""} / Farcaster`,[e.displayName,e.username]);return n.useEffect(()=>{t(F.ViewProfileLikes,{...i?{on:i}:{},...c?{castHash:c}:{}})},[c,i,t,e.fid,e.username]),o.jsx(R,{title:p,userProfile:s,focusedTab:"likes",children:o.jsx(M,{data:f,renderItem:W,keyExtractor:$,onEndReached:d,isFetchingNextPage:l,emptyView:o.jsx(N,{message:`${U({fid:e.fid,username:e.username})} hasn't liked any casts yet.`})})})}),W=({item:s})=>o.jsx(C,{castWithContext:s});I.displayName="ProfileLikes";export{I as P};

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.