PageSourceSearch

https://tradeintelx.com/assets/PostCard-C4iDkWTJ.js

js tradeintelx.com collected 2026-10-02 01:48:11 UTC 19,598 bytes, 2 lines download raw bytes

1import{o as ee}from"./rolldown-runtime-ChpBd9eV.js";import{$n as te,Ka as ae,Lt as se,Pa as re,U as D,Yt as B,ba as A,ct as le,g as ne,gn as ie,pn as de,vt as ce,wa as K}from"./chat-page-C-flp553.js";import{Fr as oe,g as me,v as Y}from"./community-page-dub7UFXa.js";import{N as xe,ct as ue,ft as he,ot as be,x as fe}from"./icons-vendor-DpKLKbbD.js";import{n as O,t as H}from"./date-vendor-BjneNXXN.js";var n=ee(ae(),1),e=re(),ge=t=>{if(!t)return null;for(const r of[/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([^&\n?#]+)/,/youtube\.com\/watch\?.*v=([^&\n?#]+)/]){const o=t.match(r);if(o?.[1])return o[1]}return null},U=[.5,.75,1,1.25,1.5,2];function W(t){return!isFinite(t)||t<0?"0:00":`${Math.floor(t/60)}:${Math.floor(t%60).toString().padStart(2,"0")}`}function M({src:t,poster:r,title:o,author:m}){const d=(0,n.useRef)(null),[i,g]=(0,n.useState)(1),[b,p]=(0,n.useState)(0),[N,C]=(0,n.useState)(0),[x,$]=(0,n.useState)(!1),[y,I]=(0,n.useState)(!1),[v,R]=(0,n.useState)(null),c=ge(t);(0,n.useEffect)(()=>{const l=d.current;if(!l)return;const s=()=>p(l.currentTime),u=()=>{C(l.duration),l.videoWidth&&l.videoHeight&&I(l.videoHeight>l.videoWidth)};return l.addEventListener("timeupdate",s),l.addEventListener("loadedmetadata",u),()=>{l.removeEventListener("timeupdate",s),l.removeEventListener("loadedmetadata",u)}},[]),(0,n.useEffect)(()=>{if(r||!t||c)return;let l=!1;const s=document.createElement("video");s.muted=!0,s.playsInline=!0,s.preload="metadata",s.crossOrigin="anonymous",s.src=t;const u=()=>{s.src="",s.removeAttribute("src"),s.load()},j=setTimeout(()=>{l||u()},8e3);return s.onloadedmetadata=()=>{try{s.currentTime=Math.min(.5,(s.duration||1)*.1)}catch{u()}},s.onseeked=()=>{if(!l)try{const h=document.createElement("canvas");h.width=s.videoWidth||640,h.height=s.videoHeight||360;const T=h.getContext("2d");if(!T)return u();T.drawImage(s,0,0,h.width,h.height);try{const S=h.toDataURL("image/jpeg",.78);l||R(S)}catch{}}finally{clearTimeout(j),u()}},s.onerror=()=>{clearTimeout(j),u()},()=>{l=!0,clearTimeout(j),u()}},[t,r,c]);const w=r||v||void 0,F=!w&&t&&!t.includes("#")?`${t}#t=0.1`:t;function k(l){const s=d.current;s&&(s.currentTime=Math.max(0,Math.min(s.duration||0,s.currentTime+l)))}function E(){const l=d.current;if(!l)return;const s=U[(U.indexOf(i)+1)%U.length];l.playbackRate=s,g(s)}return x?(0,e.jsx)("div",{className:"rounded-xl border border-slate-700/50 bg-slate-900 flex items-center justify-center h-40 my-3 mx-4",children:(0,e.jsxs)("div",{className:"text-center px-4",children:[(0,e.jsx)(ue,{className:"w-10 h-10 text-red-500 mx-auto mb-2"}),(0,e.jsx)("p",{className:"text-sm text-slate-300",children:"Unable to load video"})]})}):c?(0,e.jsx)("div",{className:"rounded-xl overflow-hidden border border-slate-700/50 bg-black my-3 mx-4 aspect-video",children:(0,e.jsx)(ne,{videoId:c,title:o||"Video",className:"w-full h-full",nocookie:!1})}):(0,e.jsxs)("div",{className:"rounded-xl overflow-hidden border border-slate-700/50 bg-black my-3 mx-4",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 bg-slate-800 border-b border-slate-700/50",children:[(0,e.jsxs)("button",{type:"button",onClick:()=>k(-10),className:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-slate-700 hover:bg-slate-600 active:bg-slate-500 text-white text-xs font-medium transition-colors",children:[(0,e.jsx)(he,{className:"w-3.5 h-3.5"}),"-10s"]}),(0,e.jsxs)("button",{type:"button",onClick:()=>k(10),className:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-slate-700 hover:bg-slate-600 active:bg-slate-500 text-white text-xs font-medium transition-colors",children:[(0,e.jsx)(be,{className:"w-3.5 h-3.5"}),"+10s"]}),(0,e.jsxs)("button",{type:"button",onClick:E,className:"px-3 py-1.5 rounded-lg bg-blue-600 hover:bg-blue-500 active:bg-blue-700 text-white text-xs font-bold transition-colors",children:[i,"x"]}),N>0&&(0,e.jsxs)("span",{className:"text-xs text-slate-400 tabular-nums ml-auto",children:[W(b)," / ",W(N)]}),(o||m)&&(0,e.jsx)("span",{className:"text-xs text-slate-500 truncate max-w-[140px]",children:o||m})]}),(0,e.jsx)("video",{ref:d,src:F,poster:w,className:y?"block mx-auto max-h-[72vh]":"w-full max-h-[56vw] lg:max-h-[420px] block",playsInl
1ine:!0,preload:"metadata",controls:!0,onError:()=>$(!0)})]})}var P=t=>typeof t!="number"||isNaN(t)?"0":t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:String(t),pe=t=>{switch(t){case"trade":return"📈";case"market-update":return"📊";case"analysis":return"🔍";case"education":return"📚";default:return null}},ve=t=>t?.pnl?(typeof t.pnl=="string"?parseFloat(t.pnl):t.pnl)>=0?"text-emerald-400":"text-red-400":"text-slate-300",je=t=>t?t.split(`
2`).map((r,o,m)=>{const d=[];let i=r,g=0;for(;i.length>0;){const b=i.indexOf("**");if(b===-1){d.push((0,e.jsx)("span",{children:i},g++));break}b>0&&d.push((0,e.jsx)("span",{children:i.substring(0,b)},g++));const p=i.indexOf("**",b+2);if(p===-1){d.push((0,e.jsx)("span",{children:i.substring(b)},g++));break}d.push((0,e.jsx)("strong",{className:"text-white font-semibold",children:i.substring(b+2,p)},g++)),i=i.substring(p+2)}return(0,e.jsx)(n.Fragment,{children:r.trim()===""?(0,e.jsx)("span",{className:"block h-3"}):(0,e.jsxs)(e.Fragment,{children:[d,o<m.length-1&&(0,e.jsx)("br",{})]})},o)}):null,Ne=({value:t})=>{const r=Y(t);if(!r)return(0,e.jsx)("span",{className:"text-sm text-slate-400",children:"just now"});try{const o=(new Date-r)/36e5,m=H(r,{addSuffix:!0});return(0,e.jsx)("span",{className:"text-sm text-slate-400 cursor-help",title:O(r,"MMM d, yyyy h:mm a"),children:o<1?m:o<24?`${m} (${O(r,"h:mm a")})`:m})}catch{return(0,e.jsx)("span",{className:"text-sm text-slate-400",children:"just now"})}},Se=({post:t,currentUser:r,userProfile:o,onLike:m,onSave:d,onComment:i,onFollow:g,onUserClick:b,onShare:p,onDelete:N,onLoadComments:C,isPaidTier:x=!0,initialShowComments:$=!1})=>{const[y,I]=(0,n.useState)($),[v,R]=(0,n.useState)(""),[c,w]=(0,n.useState)(0),[F,k]=(0,n.useState)(!1),[E,l]=(0,n.use
2State)(!1),[s,u]=(0,n.useState)(!1);(0,n.useRef)(null),(0,n.useEffect)(()=>{$&&I(!0)},[$]);const j=r&&Array.isArray(t.likes)&&t.likes.includes(r.uid),h=r&&(t.userId===r.uid||t.authorId===r.uid||t.creatorId===r.uid),T=Array.isArray(t.likes)?t.likes.length:t.likeCount||0,S=t.comments?.length||t.commentCount||0,V=t.sharesCount||0;(0,n.useEffect)(()=>{r&&!h&&t.userId&&console.log("🔍 Post delete check:",{currentUserUid:r.uid,postUserId:t.userId,postAuthorId:t.authorId,postCreatorId:t.creatorId,canDelete:h,currentUserExists:!!r,postUserIdExists:!!t.userId})},[r,h,t.userId,t.authorId,t.creatorId]),(0,n.useEffect)(()=>{y&&C&&(!t.comments||t.comments.length===0)&&S>0&&C(t.id)},[y,t.id,t.comments,S,C]);const q=(0,n.useCallback)(()=>{m&&m(t.id,j)},[m,t.id,j]),G=(0,n.useCallback)(()=>{u(a=>!a),d&&d(t.id,s)},[d,t.id,s]),_=(0,n.useCallback)(()=>{!v.trim()||!i||(i(t.id,v.trim()),R(""))},[i,t.id,v]),J=(0,n.useCallback)(()=>{N&&N(t.id),l(!1)},[N,t.id]),z=pe(t.type),Q=t.hasRiskWarning||t.disclaimer||t.isTradingContent,X=t.disclaimer||(t.type==="trade"?"This is not financial advice. Always do your own research. Trading involves risk.":"This post contains trading content. Always do your own research.");return(0,e.jsxs)("div",{className:"bg-white dark:bg-slate-800/60 backdrop-blur-xl border border-slate-200 dark:border-slate-700/50 rounded-2xl shadow-lg dark:shadow-xl overflow-hidden",children:[(0,e.jsxs)("div",{className:"p-4 flex items-start justify-between",children:[(0,e.jsxs)("div",{className:"flex items-center gap-3 cursor-pointer",onClick:()=>b?.(t.userId,t.authorName),children:[(0,e.jsx)(D,{user:{photoURL:t.authorAvatar,displayName:t.authorName||t.authorDisplayName},size:"md",showRing:!1}),(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"text-slate-900 dark:text-white font-semibold text-sm",children:t.authorName||t.authorDisplayName||t.userDisplayName||t.username||"Trader"}),(0,e.jsx)(me,{post:t}),z&&(0,e.jsxs)("span",{className:"px-2 py-0.5 bg-slate-100 dark:bg-slate-700/50 text-xs rounded-md text-slate-600 dark:text-slate-300",children:[z," ",t.type]})]}),(0,e.jsx)(Ne,{value:t.createdAt})]})]}),(0,e.jsxs)("div",{className:"relative",children:[(0,e.jsx)("button",{className:"p-2 text-slate-400 dark:text-slate-300 hover:text-white hover:bg-slate-700 rounded-lg transition-all",onClick:()=>k(!F),children:(0,e.jsx)(fe,{className:"w-5 h-5"})}),(0,e.jsx)(K,{children:F&&(0,e.jsx)(A.div,{initial:{opacity:0,scale:.95,y:-10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-10},transition:{duration:.15},className:"absolute right-0 top-12 bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-600 rounded-lg shadow-xl min-w-[180px] z-50",onMouseLeave:()=>k(!1),children:(0,e.jsx)("div",{className:"py-2",children:h?(0,e.jsxs)("button",{onClick:()=>{l(!0),k(!1)},className:"w-full px-4 py-2 text-left text-red-400 hover:bg-slate-700/50 transition-colors flex items-center gap-2",children:[(0,e.jsx)(le,{className:"w-4 h-4"}),"Delete Post"]}):r?(0,e.jsx)("div",{className:"px-4 py-2 text-slate-500 text-sm italic",children:"You can't edit this post"}):(0,e.jsx)("div",{className:"px-4 py-2 text-slate-500 text-sm italic",children:"Sign in to manage posts"})})})})]})]}),(0,e.jsx)(K,{children:E&&(0,e.jsx)(A.div,{initial:{opacity:0}
2,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/50 flex items-center justify-center z-[100] p-4",onClick:()=>l(!1),children:(0,e.jsxs)(A.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},className:"bg-slate-800 rounded-xl border border-slate-600 p-6 max-w-md w-full",onClick:a=>a.stopPropagation(),children:[(0,e.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,e.jsx)("div",{className:"w-10 h-10 bg-red-500/20 rounded-full flex items-center justify-center",children:(0,e.jsx)(B,{className:"w-6 h-6 text-red-400"})}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"text-lg font-semibold text-white",children:"Delete Post"}),(0,e.jsx)("p",{className:"text-slate-400 text-sm",children:"This action cannot be undone"})]})]}),(0,e.jsx)("p",{className:"text-slate-300 mb-6",children:"Are you sure you want to delete this post? This will permanently remove the post and all its comments."}),(0,e.jsxs)("div",{className:"flex gap-3 justify-end",children:[(0,e.jsx)("button",{onClick:()=>l(!1),className:"px-4 py-2 text-slate-400 hover:text-white transition-colors",children:"Cancel"}),(0,e.jsx)("button",{onClick:J,className:"px-4 py-2 bg-red-500 hover:bg-red-600 text-white rounded-lg transition-colors",children:"Delete"})]})]})})}),(t.content||t.caption)&&(0,e.jsxs)("div",{className:"px-4 pb-3",children:[(0,e.jsx)("div",{className:"text-slate-700 dark:text-white/95 leading-relaxed text-[15px]",children:je(t.content||t.caption)}),t.tags?.length>0&&(0,e.jsx)("div",{className:"mt-2",children:t.tags.map(a=>(0,e.jsxs)("span",{className:"text-purple-400 mr-1.5",children:["#",a]},a))}),t.symbols?.length>0&&(0,e.jsx)("div",{className:"flex flex-wrap gap-2 mt-2",children:t.symbols.map(a=>(0,e.jsxs)("span",{className:"px-2 py-1 bg-slate-100 dark:bg-slate-700 text-cyan-600 dark:text-cyan-300 text-sm rounded-md font-mono",children:["$",a]},a))})]}),Q&&(0,e.jsx)("div",{className:"mx-4 mb-3 p-3 bg-amber-900/20 border border-amber-700/50 rounded-lg",children:(0,e.jsxs)("div",{className:"flex items-start gap-2",children:[(0,e.jsx)(B,{className:"w-4 h-4 text-amber-400 mt-0.5 flex-shrink-0"}),(0,e.jsx)("p",{className:"text-xs text-amber-200 leading-relaxed",children:X})]})}),t.tradeData&&(0,e.jsx)("div",{className:"mx-4 mb-3 p-4 bg-slate-100 dark:bg-slate-900/50 rounded-lg border border-slate-200 dark:border-slate-600",children:(0,e.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 text-sm",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("span",{className:"text-slate-500 dark:text-slate-400",children:"Entry:"}),(0,e.jsxs)("p",{className:"text-slate-900 dark:text-white font-mono",children:["$",t.tradeData.entry]})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("span",{className:"text-slate-500 dark:text-slate-400",children:"Exit:"}),(0,e.jsxs)("p",{className:"text-slate-900 dark:text-white font-mono",children:["$",t.tradeData.exit]})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("span",{className:"text-slate-400",children:"P&L:"}),(0,e.jsxs)("p",{className:`font-mono font-semibold ${ve(t.tradeData)}`,children:["$",t.tradeData.pnl]})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("span",{className:"text-slate-500 dark:text-slate-400",children:"Strategy:"}),(0,e.jsx)("p",{className:"text-slate-900 dark:text-white capitalize",children:t.tradeData.strategy})]})]})}),t.images?.length>0&&(t.videoUrl?t.images.filter(a=>!a.includes("img.youtube.com")&&!a.includes("ytimg.com")&&!a.includes("youtube.com/vi")):t.images).length>0&&(0,e.jsxs)("div",{className:"relative",children:[(0,e.jsx)("img",{src:(t.videoUrl?t.images.filter(a=>!a.includes("img.youtube.com")&&!a.includes("ytimg.com")&&!a.includes("youtube.com/vi")):t.images)[c]||t.images[c],alt:`Post image ${c+1}`,className:"w-full h-80 object-cover"}),t.images.length>1&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"absolute top-4 right-4 bg-black/50 text-white px-2 py-1 rounded-md text-sm",children:[c+1," / ",t.images.length]}),(0,e.jsx)("div",{className:"absolute bottom-4 left-1/2 transform -translate-x-1/2 flex gap-2",children:t.images.map((a,f)=>(0,e.jsx)("button",{onClick:()=>w(f),className:`w-2 h-2 rounded-full ${f===c?"bg-white":"bg-white/50"}`},f))}),c>0&&(0,e.jsx)("button",{onClick:()=>w(c-1),className:"absolute left-4 top-1/2 transform -translate-y-1/2 bg-black/50 text-white p-2 rounded-full hover:bg-black/70 transition-all",children:"←"}),c<t.images.length-1&&(0,e.jsx)("button",{onClick:()=>w(c+1),className:"absolute right-4 top-1/2 transform -translate-y-1/2 bg-black/50 text-white p-2 rounded-full hover:bg-black/70 transition-all",children:"→"})]})]}),t.videoUrl&&(0,e.jsx)(M,{src:t.videoUrl,poster:t.videoThumbnailUrl||t.thumbnailUrl||t.images?.[0],title:t.videos?.[0]?.title,author:t.videos?.[0]?.author,duration:t.videos?.[0]?.duration,description:t.videos?.[0]?.description,className:"mx-4 mb-3 w-full h-80"}),t.videos&&t.videos.length>0&&(0,e.jsx)("div",{className:"mx-4 mb-3 space-y-3",children:t.videos.map((a,f)=>
2typeof a=="string"?a===t.videoUrl?null:(0,e.jsx)(M,{src:a,poster:t.videoThumbnailUrl||t.thumbnailUrl||t.images?.[0],className:"w-full h-80"},f):typeof a=="object"&&a?.videoUrl?a.videoUrl===t.videoUrl?null:(0,e.jsx)(M,{src:a.videoUrl,poster:a.thumbnail||t.images?.[0],title:a.title,author:a.author,duration:a.duration,description:a.description,className:"w-full h-80"},f):null)}),t.files?.length>0&&(0,e.jsx)("div",{className:"mx-4 mb-3 space-y-1.5",children:t.files.map((a,f)=>(0,e.jsxs)("a",{href:a.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-2.5 bg-slate-100 dark:bg-slate-900/50 hover:bg-slate-200 dark:hover:bg-slate-800/70 rounded-lg border border-slate-200 dark:border-slate-700/50 transition-all group",children:[(0,e.jsx)("div",{className:"w-8 h-8 bg-amber-100 dark:bg-amber-500/20 rounded-lg flex items-center justify-center flex-shrink-0",children:(0,e.jsx)(de,{className:"w-4 h-4 text-amber-500 dark:text-amber-400"})}),(0,e.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,e.jsx)("p",{className:"text-sm text-slate-900 dark:text-white truncate group-hover:text-amber-600 dark:group-hover:text-amber-300 transition-colors",children:a.name}),(0,e.jsx)("p",{className:"text-xs text-slate-500",children:a.size?`${(a.size/1024).toFixed(0)} KB`:"File"})]}),(0,e.jsx)("span",{className:"text-xs text-slate-500 group-hover:text-amber-400 transition-colors",children:"Download ↓"})]},f))}),(0,e.jsxs)("div",{className:"p-4 border-t border-slate-200 dark:border-slate-700",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,e.jsxs)("div",{className:"flex items-center gap-4",children:[(0,e.jsxs)("div",{className:"relative group",children:[(0,e.jsxs)("button",{onClick:q,className:"flex items-center gap-2 text-slate-500 dark:text-slate-300 hover:text-red-400 transition-all",children:[j?(0,e.jsx)(oe,{className:"w-6 h-6 text-red-500"}):(0,e.jsx)(se,{className:"w-6 h-6"}),(0,e.jsx)("span",{className:"text-sm",children:P(T)})]}),!x&&(0,e.jsx)("div",{className:"pointer-events-none absolute bottom-full left-1/2 -translate-x-1/2 mb-2 hidden group-hover:block z-50",children:(0,e.jsxs)("div",{className:"bg-gray-900 text-white text-[11px] px-2.5 py-1.5 rounded-lg whitespace-nowrap border border-white/10 shadow-lg",children:["Upgrade to Pro to like posts",(0,e.jsx)("div",{className:"absolute top-full left-1/2 -translate-x-1/2 w-0 h-0 border-l-4 border-r-4 border-t-4 border-l-transparent border-r-transparent border-t-gray-900"})]})})]}),(0,e.jsxs)("button",{onClick:()=>I(!y),className:"flex items-center gap-2 text-slate-500 dark:text-slate-300 hover:text-blue-400 transition-all",children:[(0,e.jsx)(xe,{className:"w-6 h-6"}),(0,e.jsx)("span",{className:"text-sm",children:P(S)})]}),(0,e.jsxs)("button",{onClick:()=>p?.(t),className:"flex items-center gap-2 text-slate-500 dark:text-slate-300 hover:text-green-400 transition-all",children:[(0,e.jsx)(ce,{className:"w-6 h-6"}),(0,e.jsx)("span",{className:"text-sm",children:P(V)})]})]}),(0,e.jsx)("button",{onClick:G,className:"text-slate-500 dark:text-slate-300 hover:text-yellow-400 transition-all",children:s?(0,e.jsx)(te,{className:"w-6 h-6 text-yellow-500"}):(0,e.jsx)(ie,{className:"w-6 h-6"})})]}),(0,e.jsxs)("div",{className:"flex items-center gap-3 pt-3 border-t border-slate-200 dark:border-slate-700",children:[(0,e.jsx)(D,{user:r,size:"sm",showRing:!1}),(0,e.jsxs)("div",{className:"flex-1 flex items-center gap-2",children:[(0,e.jsx)("input",{type:"text",placeholder:x?"Add a comment...":"Upgrade to Pro to comment",value:x?v:"",onChange:a=>x&&R(a.target.value),onKeyPress:a=>x&&a.key==="Enter"&&_(),disabled:!x,className:`flex-1 bg-slate-100 dark:bg-slate-700 text-slate-900 dark:text-white placeholder-slate-400 px-4 py-2 rounded-full focus:outline-none focus:ring-2 focus:ring-purple-500 ${x?"":"opacity-50 cursor-not-allowed"}`}),x&&v.trim()&&(0,e.jsx)("button",{onClick:_,className:"px-4 py-2 bg-purple-600 hover:bg-purple-700 text-white rounded-full text-sm font-medium transition-all",children:"Post"}),!x&&(0,e.jsx)("a",{href:"/pricing",className:"text-xs font-semibold text-amber-400 hover:text-amber-300 whitespace-nowrap transition-colors",children:"Upgrade ↗"})]})]}),y&&(0,e.jsx)("div",{className:"mt-4 pt-3 border-t border-slate-200 dark:border-slate-700 space-y-3",children:t.comments?.length?t.comments.map((a,f)=>{const L=Y(a?.createdAt),Z=L?H(L,{addSuffix:!0}):"just now";return(0,e.jsxs)("div",{className:"flex items-start gap-3",children:[(0,e.jsx)(D,{user:{photoURL:a.photoURL||a.authorAvatar,avatar:a.avatar,displayName:a.authorName||a.displayName||a.username,email:a.email},size:"sm",showRing:!1}),(0,e.jsxs)("div",{className:"flex-1",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"text-sm font-semibold text-white",children:a.authorName||a.displayName||a.username||"Trader"}),(0,e.jsx)("span",{className:"text-xs text-slate-500",children:Z})]}),(0,e.jsx)("p",{className:"text-sm text-slate-200 mt-1 whitespace-pre-wrap",children:a.content})]})]},a.id||`${t.id}_comment_${f}`)}):(0,e.jsx)("p",{className:"text-sm text-slate-400",children:"Be the first to start the conversation."})})]})]})};export{Se as default};

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.