PageSourceSearch

https://happenings.social/_next/static/chunks/26r1fa8ml996-.js

js happenings.social collected 2026-09-24 14:28:39 UTC 35,406 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,989176,e=>{"use strict";var s,n=e.i(780954),a=e.i(680083),t=e.i(489212),l=e.i(371414),i=e.i(341398),r=e.i(931240),c=e.i(786258),d=e.i(91342),o=e.i(356412),u=e.i(632137),m=e.i(783244),x=e.i(334118),h=e.i(25873),p=e.i(323490),g=e.i(235893),b=e.i(160444),f=e.i(746632),N=e.i(328500),j=e.i(290614);e.i(649464);var v=e.i(860430);e.i(84523);var k=e.i(787386),S=e.i(464217),A=e.i(662585),y=e.i(454906);let z=(0,v.fileDesc)("CiNoYXBwZW5pbmdzL2lkZW50aXR5L3YxL3JlcG9ydC5wcm90bxIWaGFwcGVuaW5ncy5pZGVudGl0eS52MSLNAwoGUmVwb3J0EgoKAmlkGAEgASgJEhMKC3JlcG9ydGVyX2lkGAIgASgJEhMKC2VudGl0eV90eXBlGAMgASgJEhEKCWVudGl0eV9pZBgEIAEoCRI0CgZyZWFzb24YBSABKA4yJC5oYXBwZW5pbmdzLmlkZW50aXR5LnYxLlJlcG9ydFJlYXNvbhITCgtkZXNjcmlwdGlvbhgGIAEoCRI0CgZzdGF0dXMYByABKA4yJC5oYXBwZW5pbmdzLmlkZW50aXR5LnYxLlJlcG9ydFN0YXR1cxI8CgpyZXNvbHV0aW9uGAggASgOMiguaGFwcGVuaW5ncy5pZGVudGl0eS52MS5SZXBvcnRSZXNvbHV0aW9uEhUKDXJldmlld2VyX25vdGUYCSABKAkSEwoLcmV2aWV3ZWRfYnkYCiABKAkSLwoLcmV2aWV3ZWRfYXQYCyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCmNyZWF0ZWRfYXQYDCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQY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3MuaWRlbnRpdHkudjFCC1JlcG9ydF
1Byb3RvUAFaVGdpdGh1Yi5jb20vaGFwcGVuaW5ncy1kay9wcm9qZWN0LW1vbmV5L2JhY2tlbmQvZ2VuL2hhcHBlbmluZ3MvaWRlbnRpdHkvdjE7aWRlbnRpdHl2MaICA0hJWKoCFkhhcHBlbmluZ3MuSWRlbnRpdHkuVjHKAhZIYXBwZW5pbmdzXElkZW50aXR5XFYx4gIiSGFwcGVuaW5nc1xJZGVudGl0eVxWMVxHUEJNZXRhZGF0YeoCGEhhcHBlbmluZ3M6OklkZW50aXR5OjpWMWIGcHJvdG8z",[S.file_buf_validate_validate,A.file_google_protobuf_timestamp,y.file_happenings_common_v1_pagination]);var V=((s={})[s.UNSPECIFIED=0]="UNSPECIFIED",s[s.SPAM=1]="SPAM",s[s.HARASSMENT=2]="HARASSMENT",s[s.HATE_SPEECH=3]="HATE_SPEECH",s[s.VIOLENCE=4]="VIOLENCE",s[s.NUDITY=5]="NUDITY",s[s.MISINFORMATION=6]="MISINFORMATION",s[s.IMPERSONATION=7]="IMPERSONATION",s[s.SCAM=8]="SCAM",s[s.UNDERAGE=9]="UNDERAGE",s[s.OTHER=10]="OTHER",s);let w=(0,k.serviceDesc)(z,0);var E=e.i(214877),C=e.i(118568);let I=[{value:V.SPAM,labelKey:"reasonSpam"},{value:V.HARASSMENT,labelKey:"reasonHarassment"},{value:V.HATE_SPEECH,labelKey:"reasonHateSpeech"},{value:V.VIOLENCE,labelKey:"reasonViolence"},{value:V.NUDITY,labelKey:"reasonNudity"},{value:V.MISINFORMATION,labelKey:"reasonMisinformation"},{value:V.IMPERSONATION,labelKey:"reasonImpersonation"},{value:V.SCAM,labelKey:"reasonScam"},{value:V.UNDERAGE,labelKey:"reasonUnderage"},{value:V.OTHER,labelKey:"reasonOther"}];function F({entityType:e,entityId:s,trigger:t,open:l,onOpenChange:d}){let o=(0,i.useTranslations)("report"),m=(0,c.useTransport)(),[x,h]=(0,a.useState)(!1),p=d??h,[b,N]=(0,a.useState)(null),[j,v]=(0,a.useState)(""),[k,S]=(0,a.useState)(!1);function A(){N(null),v("")}async function y(){if(null!==b){S(!0);try{let n=(0,r.createClient)(w,m);await n.createReport({entityType:e,entityId:s,reason:b,description:j}),f.toast.success(o("submitted")),p(!1),A()}catch{f.toast.error(o("submitError"))}finally{S(!1)}}}return(0,n.jsxs)(C.ResponsiveDialog,{open:l??x,onOpenChange:e=>{p(e),e||A()},children:[t?(0,n.jsx)(C.ResponsiveDialogTrigger,{asChild:!0,children:t}):null,(0,n.jsxs)(C.ResponsiveDialogContent,{className:"max-h-[85vh] overflow-y-auto sm:max-w-md",children:[(0,n.jsxs)(C.ResponsiveDialogHeader,{children:[(0,n.jsx)(C.ResponsiveDialogTitle,{children:o("title")}),(0,n.jsx)(C.ResponsiveDialogDescription,{children:o("description")})]}),(0,n.jsx)("div",{className:"space-y-3",children:I.map(e=>(0,n.jsx)("button",{type:"button",onClick:()=>N(e.value),className:(0,u.cn)("w-full cursor-pointer rounded-lg border px-4 py-3 text-left text-sm font-medium transition-all duration-150 active:scale-[0.98]",b===e.value?"border-zinc-900 dark:border-zinc-100":"border-zinc-200 hover:border-zinc-300 dark:border-zinc-800 dark:hover:border-zinc-700"),children:o(e.labelKey)},e.value))}),null!==b&&(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)(E.Textarea,{value:j,onChange:e=>v(e.target.value),placeholder:o("descriptionPlaceholder"),rows:3}),(0,n.jsx)(g.Button,{className:"w-full",onClick:y,disabled:k,children:k?o("submitting"):o("submit")})]})]})]})}var R=e.i(928910),U=e.i(245032),B=e.i(361621),T=e.i(831698),G=e.i(942418),Z=e.i(943572),X=e.i(125415),J=e.i(447985),D=e.i(287611),W=e.i(222850),M=e.i(251589);function L({userId:e,username:s,displayName:t,isOwnProfile:l}){let u=(0,i.useTranslations)("person"),m=(0,c.useTransport)(),x=(0,a.useMemo)(()=>(0,r.createClient)(D.UserPostService,m),[m]),h=(0,J.useInfiniteQuery)({queryKey:["user-posts",e],staleTime:3e4,initialPageParam:"",queryFn:async({pageParam:s})=>x.listUserPosts({userId:e,pagination:{pageSize:10,...s?{pageToken:s}:{}}}),getNextPageParam:e=>e.pagination?.nextPageToken||void 0}),p=h.data?.pages.flatMap(e=>e.posts)??[];return h.isPending?(0,n.jsx)("div",{className:"space-y-4","aria-hidden":"true",children:[0,1].map(e=>(0,n.jsxs)("div",{className:"surface-panel space-y-3 p-6",children:[(0,n.jsx)(W.Skeleton,{className:"h-3 w-28"}),(0,n.jsx)(W.Skeleton,{className:"h-4 w-full"}),(0,n.jsx)(W.Skeleton,{className:"h-4 w-2/3"}),(0,n.jsx)(W.Skeleton,{className:"aspect-[16/10] w-full rounded-xl"})]},e))}):0===p.length?(0,n.jsxs)("section",{className:"surface-panel flex flex-col items-center gap-2 px-6 py-16 text-center",children:[(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faPenToSquare,className:"size-7 text-zinc-300 dark:text-zinc-600"}),(0,n.jsx)("p",{className:"font-medium text-zinc-900 dark:text-zinc-100",children:u(l?"postsEmptyOwnTitle":"postsEmptyTitle")}),(0,n.jsx)("p",{className:"max-w-sm text-sm text-muted-foreground",children:l?u("postsEmptyOwnDescription"):u("postsEmptyDescription",{name:t})})]}):(0,n.jsxs)("div",{className:"space-y-4",children:[p.map(e=>(0,n.jsx)(P,{post:e,username:s},e.id)),h.hasNextPage?(0,n.jsx)(g.Button,{type:"button",variant:"outline",className:"w-full rounded-2xl",disabled:h.isFetchingNextPage,onClick:()=>void h.fetchNextPage(),children:u("postsLoadMore")}):null]})}function P({post:e,username:s}){let a=(0,i.useTranslations)("person"),t=(0,Z.useLocale)(),l=e.createdAt?(0,X.timestampDate)(e.createdAt).toLocaleDateString(t,{year:"numeric",month:"long",day:"numeric"}):null,r=e.mediaAssetIds;return(0,n.jsxs)("article",{className:"surface-panel overflow-hidden",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-3 p-6 pb-4",children:[(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground",children:[l?(0,n.jsx)("span",{children:l}):null,e.feeling?(0,n.jsx)("span",{children:e.feeling}):null,e.location?.name?(0,n.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faLocationDot,className:"size-3"}),e.location.name]}):null]}),e.title?(0,n.jsx)("h3",{className:"text-lg font-semibold tracking-tight text-zinc-950 dark:text-zinc-50",children:e.title}):null,e.body?(0,n.jsx)(M.SocialText,{body:e.body,className:"text-sm leading-7 text-muted-foreground"}):null,e.hashtags.length>0?(0,n.jsx)("div",{className:"flex flex-wrap gap-1.5",children:e.hashtags.map(e=>(0,n.jsxs)("span",{className:"rounded-full border border-zinc-200 bg-zinc-50 px-2.5 py-1 text-xs font-medium text-zinc-600 dark:border-zinc-800 dark:bg-zinc-900 dark:text-zinc-300",children:["#",e]},e))}):null]}),r.length>0?(0,n.jsx)("div",{className:(0,u.cn)("grid gap-0.5",1===r.length?"grid-cols-1":"grid-cols-2"),children:r.slice(0,4).map((s,t)=>(0,n.jsx)("div",{className:(0,u.cn)("relative bg-zinc-100 dark:bg-zinc-900",1===r.length?"aspect-[16/10]":"aspect-square",3===r.length&&0===t?"row-span-2 aspect-auto":""),children:(0,n.jsx)(R.MediaAssetImage,{assetId:s,alt:e.title||a("postMediaAlt"),sizes:"(max-width: 1024px) 100vw, 640px",className:"absolute inset-0",imageClassName:"h-full w-full object-cover",fallback:(0,n.jsx)("div",{className:"media-fallback-grid"})})},s))}):null,(0,n.jsxs)("div",{className:"flex items-center gap-3 border-t border-border px-4 py-2",children:[(0,n.jsx)(T.ReactionButton,{target:{type:x.ReactionTargetType.USER_POST,id:e.id},initialCount:Number(e.likeCount),initialViewerLiked:e.viewerHasLiked,isAuthenticated:!0,loginRedirect:s?`/${s}`:"/feed",variant:"inline"}),(0,n.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-sm text-muted-foreground",children:[(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faComment,className:"size-3.5"}),Number(e.commentCount)]})]})]})}let H=["posts","about","friends"];function K({state:e,displayName:s,t:a}){return 0===e.mutualFriends.length?(0,n.jsxs)("section",{className:"surface-panel flex flex-col items-center gap-2 px-6 py-16 text-center",children:[(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faUserGroup,className:"size-7 text-zinc-300 dark:text-zinc-600"}),(0,n.jsx)("p",{className:"font-medium text-zinc-900 dark:text-zinc-100",children:a("friendsCount",{count:e.friendCount})}),(0,n.jsx)("p",{className:"max-w-sm text-sm text-muted-foreground",children:a("friendsPrivate",{name:s})})]}):(0,n.jsxs)("section",{className:"surface-panel p-6 sm:p-8",children:[(0,n.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-3",children:[(0,n.jsx)("h2",{className:"text-xl font-semibold tracking-tight",children:a("friendsCount",{count:e.friendCount})}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:a("mutualFriendsCount",{count:e.mutualFriendCount})})]}),(0,n.jsx)("ul",{className:"mt-5 grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:e.mutualFriends.map(e=>(0,n.jsx)("li",{children:(0,n.jsxs)(t.default,{href:`/${e.username}`,className:"flex cursor-pointer items-center gap-3 rounded-2xl border border-zinc-200 bg-white px-3 py-2.5 transition-all hover:bg-zinc-50 active:scale-[0.98] dark:border-zinc-800 dark:bg-zinc-950 dark:hover:bg-zinc-900",children:[(0,n.jsx)("div",{className:"relative flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-full bg-zinc-100 dark:bg-zinc-800",children:(0,n.jsx)(R.MediaAssetImage,{assetId:e.avatarAssetId,alt:e.fullName||e.username,className:"absolute inset-0",imageClassName:"h-full w-full object-cover",fallback:(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faUsers,className:"size-4 text-muted-foreground"})})}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"truncate text-sm font-medium text-zinc-900 dark:text-zinc-100",children:e.nickname||e.fullName||e.username}),e.username?(0,n.jsxs)("p",{className:"truncate text-xs text-muted-foreground",children:["@",e.username]}):null]})]})}
1,e.userId))})]})}function Y({icon:e,label:s}){return(0,n.jsxs)("span",{className:"inline-flex items-center gap-2 rounded-full border border-zinc-200 bg-white/90 px-3 py-1.5 dark:border-zinc-800 dark:bg-zinc-900/90",children:[(0,n.jsx)(d.FontAwesomeIcon,{icon:e,className:"size-3 text-zinc-400 dark:text-zinc-500"}),(0,n.jsx)("span",{children:s})]})}function Q({icon:e,label:s,value:a}){return(0,n.jsxs)("div",{className:"flex items-center gap-3 rounded-2xl border border-zinc-200 bg-zinc-50 px-4 py-3 dark:border-zinc-800 dark:bg-zinc-900",children:[(0,n.jsx)("div",{className:"flex size-10 shrink-0 items-center justify-center rounded-xl bg-white dark:bg-zinc-950",children:(0,n.jsx)(d.FontAwesomeIcon,{icon:e,className:"size-4 text-zinc-500 dark:text-zinc-400"})}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"text-xs font-medium uppercase tracking-[0.16em] text-zinc-500 dark:text-zinc-400",children:s}),(0,n.jsx)("p",{className:"text-lg font-semibold tracking-tight text-zinc-950 dark:text-zinc-50",children:a})]})]})}function O({icon:e,label:s,value:a}){return(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)("div",{className:"flex size-10 shrink-0 items-center justify-center rounded-xl bg-zinc-100 dark:bg-zinc-800",children:(0,n.jsx)(d.FontAwesomeIcon,{icon:e,className:"size-4 text-zinc-500 dark:text-zinc-400"})}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"text-xs font-medium uppercase tracking-[0.16em] text-zinc-400 dark:text-zinc-500",children:s}),(0,n.jsx)("p",{className:"mt-1 text-sm font-medium text-zinc-900 dark:text-zinc-100",children:a})]})]})}function _(e){return new Intl.DateTimeFormat(void 0,{month:"long",day:"numeric",year:"numeric"}).format(new Date(e))}e.s(["PersonProfileView",0,function({profile:e,isOwnProfile:s=!1}){var v;let k=(0,i.useTranslations)("person"),S=(0,c.useTransport)(),A=(0,N.useDesktopChatDock)(),y=(0,l.useRouter)(),[z,V]=(0,a.useState)(e),[w,E]=(0,a.useState)(null),[C,I]=(0,a.useState)(!1),[Z,X]=(0,a.useState)(!1),[J,D]=(0,a.useState)("posts"),[W,M]=(0,a.useState)(!1),P=(0,a.useRef)(null),q=(0,G.usePresence)(z.id);(0,a.useEffect)(()=>{let e=P.current;if(!e)return;let s=new IntersectionObserver(([e])=>M(!e?.isIntersecting),{rootMargin:"-72px 0px 0px 0px"});return s.observe(e),()=>s.disconnect()},[]);let $=z.nickname||z.fullName||z.username||"Profile",ee=z.friendshipStatus!==m.FriendshipStatus.BLOCKED&&!z.blockedByViewer,es=function(e){if(!e.trim())return"";try{return new Intl.DateTimeFormat(void 0,{timeStyle:"short",timeZone:e}).format(new Date)}catch{return""}}(z.timezone),en=function(e){let s=e.trim().split("-")[0];if(!s)return"";try{return new Intl.DisplayNames(void 0,{type:"language"}).of(s)??s.toUpperCase()}catch{return s.toUpperCase()}}(z.locale),ea=function(e,s){if(e.blockedByViewer)return{title:s("connectionBlockedTitle"),description:s("connectionBlockedDescription")};switch(e.friendshipStatus){case m.FriendshipStatus.ACCEPTED:return{title:s("connectionAcceptedTitle"),description:s("connectionAcceptedDescription")};case m.FriendshipStatus.PENDING:if("incoming"===e.pendingDirection)return{title:s("connectionIncomingTitle"),description:s("connectionIncomingDescription")};return{title:s("connectionOutgoingTitle"),description:s("connectionOutgoingDescription")};case m.FriendshipStatus.BLOCKED:return{title:s("connectionBlockedTitle"),description:s("blockedByOther")};default:return{title:s("connectionDiscoverTitle"),description:s("connectionDiscoverDescription")}}}(z,k);async function et(){E("send");try{let e=(0,r.createClient)(m.FriendService,S);await e.sendFriendRequest({friendId:z.id}),V(e=>({...e,friendshipStatus:m.FriendshipStatus.PENDING,pendingDirection:"outgoing"})),f.toast.success(k("sendSuccess"))}catch{f.toast.error(k("sendError"))}finally{E(null)}}async function el(){if(z.friendshipId){E("accept");try{let e=(0,r.createClient)(m.FriendService,S);await e.acceptFriendRequest({friendshipId:z.friendshipId}),V(e=>({...e,friendshipStatus:m.FriendshipStatus.ACCEPTED,friendCount:e.friendCount+1,pendingDirection:"none"})),f.toast.success(k("acceptSuccess"))}catch{f.toast.error(k("acceptError"))}finally{E(null)}}}async function ei(){if(z.friendshipId){E("decline");try{let e=(0,r.createClient)(m.FriendService,S);await e.declineFriendRequest({friendshipId:z.friendshipId}),V(e=>({...e,friendshipStatus:m.FriendshipStatus.UNSPECIFIED,friendshipId:"",pendingDirection:"none"})),f.toast.success(k("declineSuccess"))}catch{f.toast.error(k("declineError"))}finally{E(null)}}}async function er(){E("remove");try{let e=(0,r.createClient)(m.FriendService,S);await e.removeFriend({friendId:z.id}),V(e=>({...e,friendCount:e.friendshipStatus===m.FriendshipStatus.ACCEPTED?Math.max(0,e.friendCount-1):e.friendCount,friendshipStatus:m.FriendshipStatus.UNSPECIFIED,friendshipId:"",pendingDirection:"none"})),f.toast.success(k("removeSuccess"))}catch{f.toast.error(k("removeError"))}finally{E(null)}}async function ec(){E("block");try{let e=(0,r.createClient)(m.FriendService,S);await e.blockUser({userId:z.id}),V(e=>({...e,friendCount:e.friendshipStatus===m.FriendshipStatus.ACCEPTED?Math.max(0,e.friendCount-1):e.friendCount,friendshipStatus:m.FriendshipStatus.BLOCKED,blockedByViewer:!0,friendshipId:"",pendingDirection:"none"})),f.toast.success(k("blockSuccess"))}catch{f.toast.error(k("blockError"))}finally{E(null)}}async function ed(){E("unblock");try{let e=(0,r.createClient)(m.FriendService,S);await e.unblockUser({userId:z.id}),V(e=>({...e,friendshipStatus:m.FriendshipStatus.UNSPECIFIED,blockedByViewer:!1})),f.toast.success(k("unblockSuccess"))}catch{f.toast.error(k("unblockError"))}finally{E(null)}}return(0,n.jsxs)("div",{className:"w-full space-y-6",children:[(0,n.jsx)("div",{className:"flex items-center justify-between gap-3",children:(0,n.jsx)(g.Button,{variant:"ghost",asChild:!0,className:"gap-2",children:(0,n.jsx)(t.default,{href:"/friends",children:k("backToFriends")})})}),(0,n.jsxs)("section",{className:"surface-panel overflow-hidden",children:[(0,n.jsxs)("div",{className:"relative h-[260px] sm:h-[320px] lg:h-[360px]",children:[z.coverAssetId?(0,n.jsx)(U.ClickableCover,{assetId:z.coverAssetId,alt:$,displayName:$,priority:!0,sizes:"100vw",className:"absolute inset-0",imageClassName:"h-full w-full object-cover"}):z.avatarAssetId?(0,n.jsx)(R.MediaAssetImage,{assetId:z.avatarAssetId,alt:$,sizes:"100vw",className:"absolute inset-0 scale-110",imageClassName:"h-full w-full object-cover blur-2xl opacity-65",fallback:(0,n.jsx)("div",{className:"absolute inset-0 bg-zinc-100 dark:bg-zinc-900"})}):(0,n.jsx)("div",{className:"absolute inset-0 bg-zinc-100 dark:bg-zinc-900"}),(0,n.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-zinc-950/45 to-transparent"})]}),(0,n.jsx)("div",{className:"px-5 pt-6 pb-6 sm:px-8 sm:pt-8 sm:pb-8",children:(0,n.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-6 xl:flex-row xl:items-end xl:justify-between",children:[(0,n.jsxs)("div",{className:"min-w-0 flex flex-col gap-5 sm:flex-row sm:items-end xl:flex-1",children:[(0,n.jsx)(U.ClickableAvatar,{assetId:z.avatarAssetId,alt:$,displayName:$,shape:"rectangular",className:"relative -mt-26 flex size-40 shrink-0 items-center justify-center overflow-hidden rounded-[2.25rem] border-4 border-background bg-zinc-100 sm:-mt-32 sm:size-48 dark:bg-zinc-900",imageClassName:"h-full w-full object-cover",fallback:(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faUsers,className:"size-10 text-muted-foreground"})}),(0,n.jsxs)("div",{className:"min-w-0 space-y-3 sm:pb-2",children:[(0,n.jsxs)("div",{className:"min-w-0 space-y-2",children:[(0,n.jsx)("h1",{className:"max-w-3xl break-words text-3xl font-semibold tracking-tight sm:text-4xl",children:$}),z.username?(0,n.jsxs)("p",{className:"text-sm font-medium text-muted-foreground",children:["@",z.username]}):null]}),z.bio?(0,n.jsx)("p",{className:"max-w-2xl text-sm leading-7 text-muted-foreground",children:z.bio}):null,(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-sm text-muted-foreground",children:[(0,n.jsx)("div",{className:"rounded-full border border-zinc-200 bg-white/90 px-3 py-1.5 dark:border-zinc-800 dark:bg-zinc-900/90",children:(0,n.jsx)(B.PresenceIndicator,{presence:q})}),z.city?(0,n.jsx)(Y,{icon:o.faLocationDot,label:k("livesIn",{city:z.city})}):null,z.createdAt?(0,n.jsx)(Y,{icon:o.faClock,label:k("memberSince",{date:_(z.createdAt)})}):null]})]})]}),(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2 xl:justify-end",children:[function({state:e,busyAction:s,t:a,onSend:t,onAccept:l,onDecline:i,onRequestRemove:r,onUnblock:c}){if(e.blockedByViewer)return(0,n.jsxs)(g.Button,{className:"gap-2 rounded-2xl",disabled:"unblock"===s,onClick:()=>void c(),children:[(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faUserSlash,className:"size-4"}),a("unblock")]});switch(e.friendshipStatus){case m.FriendshipStatus.ACCEPTED:return(0,n.jsxs)(g.Button,{variant:"outline",className:"gap-2 rounded-2xl",disabled:"remove"===s,onClick:r,children:[(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faUserCheck,className:"size-4"}),a("friendsLabel")]});case m.FriendshipStatus.PENDING:if("incoming"===e.pendingDirection)return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(g.Button,{className:"gap-2 rounded-2xl",disabled:"accept"===s,onClick:()=>void l(),children:[(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faCheck,className:"size-4"}),a("accept")]}),(0,n.jsxs)(g.Button,{variant:"outline",className:"gap-2 rounded-2xl",disabled:"decline"===s,onClick:()=>void i(),children:[(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faXmark,className:"size-4"}),a("decline")]})]});return(0,n.jsxs)(g.Button,{variant:"outline",className:"gap-2 rounded-2xl",disabled:!0,children:[(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faClock,className:"size-4"}),a("requestPending")]});case m.FriendshipStatus.BLOCKED:return(0,n.jsxs)(g.Button,{variant:"outline",className:"gap-2 rounded-2xl",disabled:!0,children:[(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faBan,className:"size-4"}),a("blocked")]});default:return(0,n.jsxs)(g.Button,{className:"gap-2 rounded-2xl",disabled:"send"===s,onClick:()=>void t(),children:[(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faUserPlus,className:"size-4"}),a("addFriend")]})}}({state:z,busyAction:w,t:k,onSend:et,onAccept:el,onDecline:ei,onRequestRemove:()=>I(!0),onUnblock:ed}),ee?(0,n.jsxs)(g.Button,{variant:"outline",className:"gap-2 rounded-2xl",onClick:()=>
1{A?A.openDirectChat(z.id):y.push(`/chat?user=${z.id}`)},children:[(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faComment,className:"size-4"}),k("message")]}):null,(0,n.jsx)(T.ReactionButton,{target:{type:x.ReactionTargetType.USER_PROFILE,id:z.id},isAuthenticated:!0,loginRedirect:z.username?`/${z.username}`:`/people/${z.id}`,className:"rounded-2xl"}),(0,n.jsxs)(g.Button,{variant:"outline",className:"gap-2 rounded-2xl",onClick:function(){let e=window.location.href;navigator.share?navigator.share({title:$,url:e}).catch(()=>{}):(navigator.clipboard.writeText(e),f.toast.success(k("linkCopied")))},children:[(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faPaperPlane,className:"size-4"}),k("share")]}),z.blockedByViewer||z.friendshipStatus===m.FriendshipStatus.BLOCKED?null:(0,n.jsxs)(b.DropdownMenu,{children:[(0,n.jsx)(b.DropdownMenuTrigger,{asChild:!0,children:(0,n.jsx)(g.Button,{variant:"outline",size:"icon",className:"rounded-2xl","aria-label":k("moreActions"),title:k("moreActions"),children:(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faEllipsis,className:"size-4"})})}),(0,n.jsxs)(b.DropdownMenuContent,{align:"end",className:"w-56",children:[(0,n.jsxs)(b.DropdownMenuItem,{className:"cursor-pointer text-destructive focus:text-destructive",disabled:"block"===w,onSelect:e=>{e.preventDefault(),ec()},children:[(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faBan,className:"mr-2 size-3.5"}),k("block")]}),(0,n.jsxs)(b.DropdownMenuItem,{className:"cursor-pointer",onSelect:e=>{e.preventDefault(),X(!0)},children:[(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faFlag,className:"mr-2 size-3.5"}),k("report")]})]})]})]})]}),z.friendshipStatus!==m.FriendshipStatus.UNSPECIFIED||z.blockedByViewer?(0,n.jsxs)("div",{className:"rounded-2xl border border-zinc-200 bg-zinc-50 px-4 py-3 text-sm text-muted-foreground dark:border-zinc-800 dark:bg-zinc-900",children:[(0,n.jsxs)("span",{className:"font-medium text-foreground",children:[ea.title,"."]})," ",ea.description]}):null,z.friendshipStatus!==m.FriendshipStatus.BLOCKED||z.blockedByViewer?null:(0,n.jsx)("div",{className:"rounded-2xl border border-dashed border-zinc-300 p-4 text-sm text-muted-foreground dark:border-zinc-700",children:k("blockedByOther")})]})})]}),(0,n.jsx)(h.AlertDialog,{open:C,onOpenChange:I,children:(0,n.jsxs)(h.AlertDialogContent,{children:[(0,n.jsxs)(h.AlertDialogHeader,{children:[(0,n.jsx)(h.AlertDialogTitle,{children:k("removeConfirmTitle",{name:$})}),(0,n.jsx)(h.AlertDialogDescription,{children:k("removeConfirmDescription")})]}),(0,n.jsxs)(h.AlertDialogFooter,{children:[(0,n.jsx)(h.AlertDialogCancel,{disabled:"remove"===w,children:k("removeConfirmCancel")}),(0,n.jsx)(h.AlertDialogAction,{disabled:"remove"===w,onClick:e=>{e.preventDefault(),(async()=>{await er(),I(!1)})()},children:k("removeConfirmAction")})]})]})}),(0,n.jsx)(F,{open:Z,onOpenChange:X,entityType:"user",entityId:z.id}),(0,n.jsx)("div",{ref:P,"aria-hidden":"true",className:"h-px"}),(0,n.jsx)("div",{className:"sticky top-14 z-20 -mx-4 border-b border-border bg-zinc-50/95 px-4 backdrop-blur supports-[backdrop-filter]:bg-zinc-50/80 sm:-mx-6 sm:px-6 md:top-0 dark:bg-zinc-950/95 dark:supports-[backdrop-filter]:bg-zinc-950/80",children:(0,n.jsxs)("div",{className:"flex items-center gap-4",children:[W?(0,n.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5 py-2",children:[(0,n.jsx)("div",{className:"relative flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-full bg-zinc-100 dark:bg-zinc-800",children:(0,n.jsx)(R.MediaAssetImage,{assetId:z.avatarAssetId,alt:$,className:"absolute inset-0",imageClassName:"h-full w-full object-cover",fallback:(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faUsers,className:"size-3.5 text-muted-foreground"})})}),(0,n.jsx)("span",{className:"truncate text-sm font-semibold text-zinc-900 dark:text-zinc-100",children:$})]}):null,(0,n.jsx)("nav",{className:"flex items-center gap-1",children:H.map(e=>(0,n.jsxs)("button",{type:"button",onClick:()=>D(e),"aria-current":J===e?"page":void 0,className:(0,u.cn)("relative cursor-pointer px-3 py-3 text-sm font-semibold transition-colors",J===e?"text-zinc-950 dark:text-zinc-50":"text-muted-foreground hover:text-zinc-900 dark:hover:text-zinc-100"),children:["friends"===e?k("tabFriends",{count:z.friendCount}):k("posts"===e?"tabPosts":"tabAbout"),J===e?(0,n.jsx)("span",{className:"absolute inset-x-0 bottom-0 h-[3px] rounded-full bg-zinc-950 dark:bg-zinc-50"}):null]},e))})]})}),(0,n.jsxs)("div",{className:"grid gap-6 lg:grid-cols-[minmax(0,340p
1x)_minmax(0,1fr)]",children:[(0,n.jsxs)("aside",{className:"space-y-6 lg:sticky lg:top-20 lg:self-start",children:[(0,n.jsxs)("section",{className:"surface-panel p-6",children:[(0,n.jsx)("p",{className:"ui-eyebrow",children:k("factsTitle")}),(0,n.jsxs)("div",{className:"mt-4 space-y-4",children:[z.username?(0,n.jsx)(O,{icon:o.faAt,label:k("usernameLabel"),value:`@${z.username}`}):null,z.city?(0,n.jsx)(O,{icon:o.faLocationDot,label:k("livesInLabel"),value:z.city}):null,es?(0,n.jsx)(O,{icon:o.faClock,label:k("localTimeLabel"),value:es}):null,en?(0,n.jsx)(O,{icon:o.faGlobe,label:k("languageLabel"),value:en}):null,z.createdAt?(0,n.jsx)(O,{icon:o.faUserGroup,label:k("joinedLabel"),value:_(z.createdAt)}):null,z.lastSeenAt?(0,n.jsx)(O,{icon:o.faClockRotateLeft,label:k("lastActiveLabel"),value:(v=z.lastSeenAt,new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(new Date(v)))}):null,z.username||z.city||es||en||z.createdAt||z.lastSeenAt?null:(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:k("factsEmpty")})]})]}),z.interests.length>0?(0,n.jsxs)("section",{className:"surface-panel p-6",children:[(0,n.jsx)("p",{className:"ui-eyebrow",children:k("vibesTitle")}),(0,n.jsx)("div",{className:"mt-4 flex flex-wrap gap-2",children:z.interests.map(e=>(0,n.jsx)(p.Badge,{variant:"secondary",className:"rounded-full border border-zinc-200 bg-zinc-50 px-3 py-1.5 text-sm font-medium text-zinc-700 dark:border-zinc-800 dark:bg-zinc-900 dark:text-zinc-300",children:e},e))})]}):null,z.mutualFriends.length>0?(0,n.jsxs)("section",{className:"surface-panel p-6",children:[(0,n.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,n.jsx)("p",{className:"ui-eyebrow",children:k("mutualFriendsHeading")}),(0,n.jsx)("button",{type:"button",onClick:()=>D("friends"),className:"cursor-pointer text-xs font-medium text-muted-foreground underline underline-offset-2 transition-colors hover:text-foreground",children:k("seeAllFriends")})]}),(0,n.jsx)("ul",{className:"mt-4 grid grid-cols-3 gap-2",children:z.mutualFriends.slice(0,9).map(e=>(0,n.jsx)("li",{children:(0,n.jsxs)(t.default,{href:`/${e.username}`,className:"block cursor-pointer transition-transform active:scale-[0.97]",children:[(0,n.jsx)("div",{className:"relative aspect-square w-full overflow-hidden rounded-xl bg-zinc-100 dark:bg-zinc-800",children:(0,n.jsx)(R.MediaAssetImage,{assetId:e.avatarAssetId,alt:e.fullName||e.username,className:"absolute inset-0",imageClassName:"h-full w-full object-cover",fallback:(0,n.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faUsers,className:"size-4 text-muted-foreground"})})})}),(0,n.jsx)("p",{className:"mt-1 truncate text-xs text-muted-foreground",children:e.nickname||e.fullName||e.username})]})},e.userId))})]}):null]}),(0,n.jsxs)("div",{className:"space-y-6",children:["posts"===J?(0,n.jsx)(L,{userId:z.id,username:z.username,displayName:$,isOwnProfile:s}):null,"about"===J?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("section",{className:"surface-panel p-6 sm:p-8",children:[(0,n.jsx)("h2",{className:"text-2xl font-semibold tracking-tight",children:k("aboutTitle",{name:$})}),z.bio?(0,n.jsx)(j.MarkdownContent,{markdown:z.bio,className:"mt-4 text-sm leading-7",muted:!0}):(0,n.jsxs)("div",{className:"mt-4 space-y-2 text-sm text-muted-foreground",children:[(0,n.jsx)("p",{children:k("aboutEmpty",{name:$})}),(0,n.jsx)("p",{children:k("aboutHint")})]})]}),z.mutualFriends.length>0||z.sharedPages.length>0||z.sharedEventCount>0?(0,n.jsxs)("section",{children:[(0,n.jsx)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"ui-eyebrow",children:k("inCommonEyebrow")}),(0,n.jsx)("h2",{className:"mt-3 text-xl font-semibold tracking-tight",children:k("inCommonTitle")})]})}),(0,n.jsxs)("div",{className:"mt-5 grid gap-3 sm:grid-cols-3",children:[(0,n.jsx)(Q,{icon:o.faUserGroup,label:k("mutualFriendsLabel"),value:String(z.mutualFriendCount)}),(0,n.jsx)(Q,{icon:o.faUsers,label:k("sharedPagesLabel"),value:String(z.sharedPageCount)}),(0,n.jsx)(Q,{icon:o.faCalendarDays,label:k("sharedEventsLabel"),value:String(z.sharedEventCount)}
1)]}),z.mutualFriends.length>0?(0,n.jsxs)("div",{className:"mt-6 space-y-3",children:[(0,n.jsx)("p",{className:"text-xs font-medium uppercase tracking-[0.16em] text-zinc-500 dark:text-zinc-400",children:k("mutualFriendsHeading")}),(0,n.jsx)("ul",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:z.mutualFriends.map(e=>(0,n.jsx)("li",{children:(0,n.jsxs)(t.default,{href:`/${e.username}`,className:"group flex items-center gap-3 rounded-2xl border border-zinc-200 bg-white px-3 py-2.5 transition hover:bg-zinc-50 dark:border-zinc-800 dark:bg-zinc-950 dark:hover:bg-zinc-900",children:[(0,n.jsx)("div",{className:"relative flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-full bg-zinc-100 dark:bg-zinc-800",children:(0,n.jsx)(R.MediaAssetImage,{assetId:e.avatarAssetId,alt:e.fullName||e.username,className:"absolute inset-0",imageClassName:"h-full w-full object-cover",fallback:(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faUsers,className:"size-4 text-muted-foreground"})})}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"truncate text-sm font-medium text-zinc-900 dark:text-zinc-100",children:e.nickname||e.fullName||e.username}),e.username?(0,n.jsxs)("p",{className:"truncate text-xs text-muted-foreground",children:["@",e.username]}):null]})]})},e.userId))})]}):null,z.sharedPages.length>0?(0,n.jsxs)("div",{className:"mt-6 space-y-3",children:[(0,n.jsx)("p",{className:"text-xs font-medium uppercase tracking-[0.16em] text-zinc-500 dark:text-zinc-400",children:k("sharedPagesHeading")}),(0,n.jsx)("ul",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:z.sharedPages.map(e=>(0,n.jsx)("li",{children:(0,n.jsxs)(t.default,{href:`/${e.slug}`,className:"group flex items-center gap-3 rounded-2xl border border-zinc-200 bg-white px-3 py-2.5 transition hover:bg-zinc-50 dark:border-zinc-800 dark:bg-zinc-950 dark:hover:bg-zinc-900",children:[(0,n.jsx)("div",{className:"relative flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-xl bg-zinc-100 dark:bg-zinc-800",children:(0,n.jsx)(R.MediaAssetImage,{assetId:e.logoAssetId,alt:e.name,className:"absolute inset-0",imageClassName:"h-full w-full object-cover",fallback:(0,n.jsx)(d.FontAwesomeIcon,{icon:o.faUsers,className:"size-4 text-muted-foreground"})})}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"truncate text-sm font-medium text-zinc-900 dark:text-zinc-100",children:e.name}),(0,n.jsxs)("p",{className:"truncate text-xs text-muted-foreground",children:["/",e.slug]})]})]})},e.id))})]}):null]}):null]}):null,"friends"===J?(0,n.jsx)(K,{state:z,displayName:$,t:k}):null]})]})]})}],989176)}]);

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.