PageSourceSearch

https://qe.finance/assets/MemberCard-DKWCe4Lj.js

js qe.finance collected 2026-10-09 17:56:29 UTC 22,873 bytes, 59 lines download raw bytes

1import{j as e,r as j}from"./three-vendor-C1XI7YMt.js";import{s as T,r as J,B as x,L as Y,z as g,as as X,at as D,au as M,bx as V,bA as b,ci as I,i as ee,j as te,k as re,l as ae,d3 as se,d4 as oe,x as L,aA as ne,bj as U,aB as y,aC as C,aE as N,cS as H,W as O,K as ie,M as le,N as ce,bc as de,d5 as ue,d6 as he,bk as pe,b_ as p}from"./index-HWdulj8p.js";import{ContentDetailModal as xe}from"./ContentDetailModal-CqVgdLgh.js";import{b as me}from"./useContentGuests-MniebrFH.js";import{u as fe}from"./use-mobile-DUmZI2QI.js";import{T as G}from"./twitter-DFn7UxUT.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const ge=T("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const je=T("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
12 * @license lucide-react v0.462.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const ve=T("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);function we({memberId:t,userId:a}){var n;const s=(n=J(t,"","",0,a).data)==null?void 0:n.members.find(l=>l.id===t);return s?e.jsxs("section",{"aria-label":"Member connections",className:"space-y-3",children:[e.jsx("div",{className:"flex flex-wrap gap-2",children:[...s.availability,...s.topics].map(l=>e.jsx("span",{className:"rounded-full border px-2 py-1 text-xs",children:l},l))}),s.portfolio.length>0&&e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-medium",children:"Selected accepted contributions"}),s.portfolio.map((l,m)=>e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:l.title},m))]}),s.accept_requests&&t!==a&&e.jsx(x,{asChild:!0,variant:"outline",children:e.jsxs(Y,{to:`/network?member=${encodeURIComponent(t)}`,children:["Connect with ",s.name]})})]}):null}function be(t){const[a,i]=j.useState([]),[s,n]=j.useState(!0);return j.useEffect(()=>{if(!t){i([]),n(!1);return}i([]),(async()=>{try{n(!0);const{data:m,error:o}=await g.from("content_items").select("*").eq("author_id",t).eq("status","published").is("deleted_at",null).order("scheduled_at",{ascending:!1,nullsFirst:!1}).limit(5);if(o)throw o;i(m||[])}catch(m){console.error("Error fetching author content:",m),i([])}finally{n(!1)}})()},[t]),{content:a,loading:s}}function Ae(t){const a=X(),{data:i=[],isLoading:s}=D({queryKey:["project-team-members",t],queryFn:async()=>{if(!t)return[];const{data:o,error:d}=await g.from("project_team_members").select(`
17          id,
18          project_id,
19          profile_id,
20          role,
21          created_at,
22          profile:profiles(name, avatar_url, title)
23        `).eq("project_id",t).order("created_at",{ascending:!0});if(d)throw d;return(await V(o||[],"profile_id","profile")).map(u=>({id:u.id,project_id:u.project_id,profile_id:u.profile_id,role:u.role,created_at:u.created_at,profile:u.profile}))},enabled:!!t}),n=M({mutationFn:async({profileId:o,role:d})=>{if(!t)throw new Error("No project ID");const{data:u,error:v}=await g.from("project_team_members").insert({project_id:t,profile_id:o,role:d||null}).select(`
24          id,
25          project_id,
26          profile_id,
27          role,
28          created_at,
29          profile:profiles(name, avatar_url, title)
30        `).single();if(v)throw v;return u},onSuccess:()=>{a.invalidateQueries({queryKey:["project-team-members",t]}),b({title:"Team member added",description:"The team member has been added to the project."})},onError:o=>{b({title:"Error adding team member",description:o.message||"Something went wrong",variant:"destructive"})}}),l=M({mutationFn:async o=>{const{error:d}=await g.from("project_team_members").delete().eq("id",o);if(d)throw d},onSuccess:()=>{a.invalidateQueries({queryKey:["project-team-members",t]}),b({title:"Team member removed",description:"The team member has been removed from the project."})},onError:o=>{b({title:"Error removing team member",description:o.message||"Something went wrong",variant:"destructive"})}}),m=M({mutationFn:async({memberId:o,role:d})=>{const{error:u}=await g.from("project_team_members").update({role:d}).eq("id",o);if(u)throw u},onSuccess:()=>{a.invalidateQueries({queryKey:["project-team-members",t]})},onError:o=>{b({title:"Error updating role",description:o.message||"Something went wrong",variant:"destructive"})}});return{teamMembers:i,isLoading:s,addMember:(o,d)=>n.mutateAsync({profileId:o,role:d}),removeMember:o=>l.mutateAsync(o),updateRole:(o,d)=>m.mutateAsync({memberId:o,role:d}),isAdding:n.isPending,isRemoving:l.isPending}}function Ee(t){return D({queryKey:["projects-team-members",t],queryFn:async()=>
30{if(t.length===0)return{};const{data:a,error:i}=await g.from("project_team_members").select(`
31          id,
32          project_id,
33          profile_id,
34          role,
35          profile:profiles(name, avatar_url)
36        `).in("project_id",t);if(i)throw i;const s={};return(await V(a||[],"profile_id","profile")).forEach(n=>{s[n.project_id]||(s[n.project_id]=[]),s[n.project_id].push({id:n.id,project_id:n.project_id,profile_id:n.profile_id,role:n.role,created_at:"",profile:n.profile})}),s},enabled:t.length>0})}function ye(t){return D({queryKey:["member-projects",t],queryFn:async()=>{if(!t)return[];const{data:a,error:i}=await g.from("project_team_members").select(`
37          id,
38          role,
39          project:projects(
40            id,
41            name,
42            logo_url,
43            tagline,
44            status
45          )
46        `).eq("profile_id",t);if(i)throw i;return(a||[]).filter(s=>s.project&&["approved","featured"].includes(s.project.status)).map(s=>({id:s.id,role:s.role,project:s.project}))},enabled:!!t})}function Ce(){return e.jsxs("div",{className:"relative w-full h-24 overflow-hidden rounded-t-lg",children:[e.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(135deg, hsl(200, 80%, 20%) 0%, hsl(185, 70%, 35%) 50%, hsl(175, 60%, 45%) 100%)"}}),e.jsx("div",{className:"absolute inset-0 opacity-30",children:e.jsxs("svg",{className:"w-full h-full",preserveAspectRatio:"none",viewBox:"0 0 400 100",children:[e.jsx("path",{d:"M0,50 C100,20 150,80 250,50 C350,20 400,60 400,50 L400,100 L0,100 Z",fill:"white",opacity:"0.2",children:e.jsx("animate",{attributeName:"d",dur:"4s",repeatCount:"indefinite",values:`
47                M0,50 C100,20 150,80 250,50 C350,20 400,60 400,50 L400,100 L0,100 Z;
48                M0,50 C100,70 150,30 250,50 C350,70 400,40 400,50 L400,100 L0,100 Z;
49                M0,50 C100,20 150,80 250,50 C350,20 400,60 400,50 L400,100 L0,100 Z
50              `})}),e.jsx("path",{d:"M0,60 C80,40 120,80 200,60 C280,40 320,80 400,60 L400,100 L0,100 Z",fill:"white",opacity:"0.15",children:e.jsx("animate",{attributeName:"d",dur:"5s",repeatCount:"indefinite",values:`
51                M0,60 C80,40 120,80 200,60 C280,40 320,80 400,60 L400,100 L0,100 Z;
52                M0,60 C80,80 120,40 200,60 C280,80 320,40 400,60 L400,100 L0,100 Z;
53                M0,60 C80,40 120,80 200,60 C280,40 320,80 400,60 L400,100 L0,100 Z
54              `})})]})}),e.jsx("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 opacity-40",children:e.jsxs("svg",{width:"80",height:"40",viewBox:"0 0 80 40",fill:"white",children:[e.jsx("ellipse",{cx:"35",cy:"22",rx:"25",ry:"12"}),e.jsx("ellipse",{cx:"15",cy:"22",rx:"10",ry:"8"}),e.jsx("path",{d:"M58,22 Q70,10 75,5 Q72,18 75,30 Q70,25 58,22"}),e.jsx("circle",{cx:"10",cy:"20",r:"2",fill:"hsl(200, 80%, 20%)"}),e.jsx("animateTransform",{attributeName:"transform",type:"translate",dur:"6s",repeatCount:"indefinite",values:"0,0; 5,2; 0,0; -5,-2; 0,0"})]})}),e.jsx("div",{className:"absolute left-8 top-4",children:e.jsx("div",{className:"flex gap-1",children:[...Array(3)].map((t,a)=>e.jsx("div",{className:"rounded-full bg-white/30",style:{width:4+a*2,height:4+a*2,animation:`float ${2+a*.5}s ease-in-out infinite`,animationDelay:`${a*.3}s`}},a))})}),e.jsxs(Y,{to:"/whale-club",className:"absolute bottom-2 left-4 flex items-center gap-2 bg-black/30 backdrop-blur-sm px-3 py-1.5 rounded-full border border-white/20 hover:bg-black/40 hover:border-white/30 transition-all cursor-pointer",children:[e.jsxs("svg",{width:"16",height:"14",viewBox:"0 0 32 28",fill:"none",style:{filter:"drop-shadow(0 0 2px rgba(94, 234, 212, 0.6))"},children:[e.jsx("path",{d:"M16 18L16 12C16 12 12 10 8 8C4 6 0 8 0 8C2 5 6 3 10 4C13 5 16 9 16 9C16 9 19 5 22 4C26 3 30 5 32 8C32 8 28 6 24 8C20 10 16 12 16 12L16 18Z",fill:"#5eead4"}),e.jsx("rect",{x:"14",y:"12",width:"4",height:"8",rx:"1",fill:"#5eead4"}),e.jsx("path",{d:"M3 22C5 20 9 20 12 22C15 24 17 24 20 22C23 20 27 20 29 22",stroke:"#5eead4",strokeWidth:"2",fill:"none",strokeLinecap:"round"}),e.jsx("path",{d:"M5 26C7 24 10 24 13 26C16 28 19 28 22 26C25 24 27 24 29 26",stroke:"#5eead4",strokeWidth:"2",fill:"none",strokeLinecap:"round",opacity:"0.7"})]}),e.jsx("span",{className:"text-xs font-semibold text-white/90 tracking-wide",children:"WHALE CLUB MEMBER"})]}),e.jsx("style",{children:`
55        @keyframes float {
56          0%, 100% { transform: translateY(0); opacity: 0.3; }
57          50% { transform: translateY(-8px); opacity: 0.6; }
58        }
59      `})]})}const Ne=t=>{const a=t.toLowerCase();return a.includes("instagram.com")?{icon:ve,label:"Instagram"}:a.includes("youtube.com")||a.includes("youtu.be")?{icon:pe,label:"YouTube"}:a.includes("facebook.com")||a.includes("fb.com")?{icon:ge,label:"Facebook"}:a.includes("github.com")?{icon:je,label:"GitHub"}:a.includes("tiktok.com")?{icon:p,label:"TikTok"}:a.includes("snapchat.com")?{icon:p,label:"Snapchat"}:a.includes("reddit.com")?{icon:p,label:"Reddit"}:a.includes("twitch.tv")?{icon:p,label:"Twitch"}:a.includes("discord.gg")||a.includes("discord.com")?{icon:p,label:"Discord"}:a.includes("whatsapp.com")||a.includes("wa.me")?{icon:p,label:"WhatsApp"}:a.includes("pinterest.com")||a.includes("pin.it")?{icon:p,label:"Pinterest"}:a.includes("crunchbase.com")?{icon:p,label:"Crunchbase"}:a.includes("medium.com")||a.includes("@medium")?{icon:p,label:"Medium"}:a.includes("spotify.com")||a.includes("open.spotify")?{icon:p,label:"Spotify"}:{icon:p,label:"Link"}};function _e({member:t,open:a,onClose:i}){var B,q,F,z,R,P,W,Z,Q,$;const[s,n]=j.useState(null),[l,m]=j.useState(null),{content:o,loading:d}=be((t==null?void 0:t.id)||null),{hasReminder:u,toggleReminder:v}=I(s),{data:S=[]}=ye((t==null?void 0:t.id)||null),{data:A=[]}=me((t==null?void 0:t.id)||null),w=fe();if(j.useEffect(()=>{g.auth.getUser().then(({data:c})=>n(c.user));const{data:{subscription:r}}=g.auth.onAuthStateChange((c,h)=>{n((h==null?void 0:h.user)??null)});return()=>r.unsubscribe()},[]),!t)return null;const f=r=>{var c;return((c=t.socials_visibility)==null?void 0:c[r])!==!1},E=[f("website")&&((B=t.social)==null?void 0:B.website),f("twitter")&&((q=t.social)==null?void 0:q.twitter),f("linkedin")&&((F=t.social)==null?void 0:F.linkedin),f("telegram")&&((z=t.social)==null?void 0:z.telegram),f("other_socials")&&((R=t.social)==null?void 0:R.other_socials)&&t.social.other_socials.length>
590].filter(Boolean).length;return e.jsxs(ee,{open:a,onOpenChange:i,children:[e.jsxs(te,{className:`sm:max-w-md bg-card border-border max-h-[90vh] overflow-y-auto ${t.isWhale?"p-0":""}`,children:[t.isWhale&&e.jsx(Ce,{}),e.jsxs("div",{className:t.isWhale?"px-6 pb-6 pt-4":"",children:[e.jsxs(re,{className:"flex flex-col items-center space-y-3 sm:space-y-4",children:[e.jsx("div",{className:"relative w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden bg-primary/10 flex items-center justify-center",children:t.avatar?e.jsx("img",{src:t.avatar,alt:t.name,className:"w-full h-full object-cover",onError:r=>{r.currentTarget.style.display="none";const c=document.createElement("span");c.className="text-xl sm:text-2xl text-primary font-semibold",c.textContent=t.name.split(" ").map(h=>h[0]).join(""),r.currentTarget.parentElement.appendChild(c)}}):e.jsx("span",{className:"text-xl sm:text-2xl text-primary font-semibold",children:t.name.split(" ").map(r=>r[0]).join("")})}),e.jsxs("div",{className:"text-center",children:[e.jsx(ae,{className:"text-xl sm:text-2xl text-primary",children:t.name}),t.role&&e.jsx("p",{className:"text-xs sm:text-sm text-muted-foreground",children:t.role})]})]}),e.jsxs("div",{className:"space-y-3 sm:space-y-4",children:[t.passportLevel&&e.jsxs("div",{className:"mt-4 flex items-center gap-4 roun
59ded-lg border border-cyan-500/20 bg-secondary/30 px-4 py-2",children:[e.jsx(se,{level:t.passportLevel,animated:a,size:88}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:oe(t.passportLevel).name}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Level ",t.passportLevel]})]})]}),a&&e.jsx(we,{memberId:t.id,userId:(s==null?void 0:s.id)??null}),t.skills&&t.skills.length>0&&e.jsx("div",{className:"flex flex-wrap gap-1.5 pt-1",children:t.skills.map(r=>e.jsx(L,{variant:"secondary",className:"text-xs",children:r},r))}),t.bio&&e.jsx("p",{className:"text-sm sm:text-base text-foreground leading-relaxed",children:t.bio}),t.collaboration&&e.jsxs("section",{className:"space-y-2 rounded-lg border border-teal-500/20 p-4","aria-label":"Collaboration interests",children:[e.jsx("h3",{className:"text-sm font-medium text-teal-300",children:"Open to collaborate"}),t.collaboration.building&&e.jsxs("p",{className:"break-words text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:"Building: "}),t.collaboration.building]}),t.collaboration.offering&&e.jsxs("p",{className:"break-words text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:"Can offer: "}),t.collaboration.offering]}),t.collaboration.seeking&&e.jsxs("p",{className:"break-words text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:"Looking for: "}),t.collaboration.seeking]}),E>0&&e.jsx("p",{className:"text-xs text-muted-foreground",children:"Connect through the links this member has chosen to share."})]}),E>0&&e.jsx(ne,{delayDuration:300,skipDelayDuration:0,disableHoverableContent:!0,children:e.jsxs("div",{className:"flex flex-wrap gap-2 pt-2 sm:pt-4",children:[f("website")&&((P=t.social)==null?void 0:P.website)&&(w?e.jsx(x,{variant:"outline",size:"icon",className:"group border-primary/50 hover:bg-primary/10 min-w-[44px] min-h-[44px] transition-all duration-300 hover:scale-110 hover:shadow-lg hover:shadow-primary/20 hover:border-primary",onClick:()=>{var r;return window.open((r=t.social)==null?void 0:r.website,"_blank")},children:e.jsx(U,{className:"w-4 h-4 transition-colors duration-300 group-hover:text-primary"})}):e.jsxs(y,{delayDuration:300,children:[e.jsx(C,{asChild:!0,children:e.jsx(x,{variant:"outline",size:"icon",className:"group border-primary/50 hover:bg-primary/10 min-w-[44px] min-h-[44px] transition-all duration-300 hover:scale-110 hover:shadow-lg hover:shadow-primary/20 hover:border-primary",onClick:()=>{var r;return window.open((r=t.social)==null?void 0:r.website,"_blank")},onFocus:r=>r.preventDefault(),children:e.jsx(U,{className:"w-4 h-4 transition-colors duration-300 group-hover:text-primary"})})}),e.jsx(N,{children:e.jsx("p",{children:"Website"})})]})),f("linkedin")&&((W=t.social)==null?void 0:W.linkedin)&&(w?e.jsx(x,{variant:"outline",size:"icon",className:"group border-primary/50 hover:bg-[#0077B5]/10 min-w-[44px] min-h-[44px] transition-all duration-300 hover:scale-110 hover:shadow-lg hover:shadow-[#0077B5]/20 hover:border-[#0077B5]",onClick:()=>{var r;return window.open((r=t.social)==null?void 0:r.linkedin,"_blank")},children:e.jsx(H,{className:"w-4 h-4 transition-colors duration-300 group-hover:text-[#0077B5]"})}):e.jsxs(y,{delayDuration:300,children:[e.jsx(C,{asChild:!0,children:e.jsx(x,{variant:"outline",size:"icon",className:"group border-primary/50 hover:bg-[#0077B5]/10 min-w-[44px] min-h-[44px] transition-all duration-300 hover:scale-110 hover:shadow-lg hover:shadow-[#0077B5]/20 hover:border-[#0077B5]",onClick:()=>{var r;return window.open((r=t.social)==null?void 0:r.linkedin,"_blank")},onFocus:r=>r.preventDefault(),children:e.jsx(H,{className:"w-4 h-4 transition-colors duration-300 group-hover:text-[#0077B5]"})})}),e.jsx(N,{children:e.jsx("p",{children:"LinkedIn"})})]})),f("twitter")&&((Z=t.social)==null?void 0:Z.twitter)&&(w?e.jsx(x,{variant:"outline",size:"icon",className:"group border-primary/50 hover:bg-foreground
59/10 min-w-[44px] min-h-[44px] transition-all duration-300 hover:scale-110 hover:shadow-lg hover:shadow-foreground/20 hover:border-foreground/50",onClick:()=>{var r;return window.open((r=t.social)==null?void 0:r.twitter,"_blank")},children:e.jsx(G,{className:"w-4 h-4 transition-colors duration-300 group-hover:text-foreground"})}):e.jsxs(y,{delayDuration:300,children:[e.jsx(C,{asChild:!0,children:e.jsx(x,{variant:"outline",size:"icon",className:"group border-primary/50 hover:bg-foreground/10 min-w-[44px] min-h-[44px] transition-all duration-300 hover:scale-110 hover:shadow-lg hover:shadow-foreground/20 hover:border-foreground/50",onClick:()=>{var r;return window.open((r=t.social)==null?void 0:r.twitter,"_blank")},onFocus:r=>r.preventDefault(),children:e.jsx(G,{className:"w-4 h-4 transition-colors duration-300 group-hover:text-foreground"})})}),e.jsx(N,{children:e.jsx("p",{children:"Twitter"})})]})),f("telegram")&&((Q=t.social)==null?void 0:Q.telegram)&&(w?e.jsx(x,{variant:"outline",size:"icon",className:"group border-primary/50 hover:bg-[#0088CC]/10 min-w-[44px] min-h-[44px] transition-all duration-300 hover:scale-110 hover:shadow-lg hover:shadow-[#0088CC]/20 hover:border-[#0088CC]",onClick:()=>{var r;return window.open(`https://t.me/${(r=t.social)==null?void 0:r.telegram.replace("@","")}`,"_blank")},children:e.jsx(O,{className:"w-4 h-4 transition-colors duration-300 group-hover:text-[#0088CC]"})}):e.jsxs(y,{delayDuration:300,children:[e.jsx(C,{asChild:!0,children:e.jsx(x,{variant:"outline",size:"icon",className:"group border-primary/50 hover:bg-[#0088CC]/10 min-w-[44px] min-h-[44px] transition-all duration-300 hover:scale-110 hover:shadow-lg hover:shadow-[#0088CC]/20 hover:border-[#0088CC]",onClick:()=>{var r;return window.open(`https://t.me/${(r=t.social)==null?void 0:r.telegram.replace("@","")}`,"_blank")},onFocus:r=>r.preventDefault(),children:e.jsx(O,{className:"w-4 h-4 transition-colors duration-300 group-hover:text-[#0088CC]"})})}),e.jsx(N,{children:e.jsx("p",{children:"Telegram"})})]})),f("other_socials")&&(($=t.social)==null?void 0:$.other_socials)&&t.social.other_socials.length>0&&t.social.other_socials.map((r,c)=>{const{icon:h,label:_}=Ne(r);return w?e.jsx(x,{variant:"outline",size:"icon",className:"group border-primary/50 hover:bg-accent/10 min-w-[44px] min-h-[44px] transition-all duration-300 hover:scale-110 hover:shadow-lg hover:shadow-accent/20 hover:border-accent",onClick:()=>window.open(r,"_blank"),children:e.jsx(h,{className:"w-4 h-4 transition-colors duration-300 group-hover:text-accent"})},c):e.jsxs(y,{delayDuration:300,children:[e.jsx(C,{asChild:!0,children:e.jsx(x,{variant:"outline",size:"icon",className:"group border-primary/50 hover:bg-accent/10 min-w-[44px] min-h-[44px] transition-all duration-300 hover:scale-110 hover:shadow-lg hover:shadow-accent/20 hover:border-accent",onClick:()=>window.open(r,"_blank"),onFocus:k=>k.preventDefault(),children:e.jsx(h,{className:"w-4 h-4 transition-colors duration-300 group-hover:text-accent"})})}),e.jsx(N,{children:e.jsx("p",{children:_})})]},c)})]})}),S.length>0&&e.jsxs("div",{className:"space-y-2 pt-4 border-t",children:[e.jsx("h4",{className:"text-sm font-semibold text-foreground",children:"Projects"}),e.jsx("div",{className:"space-y-2",children:S.map(r=>e.jsxs("div",{className:"flex items-center gap-3 p-2 rounded-lg bg-muted/30",children:[e.jsxs(ie,{className:"w-8 h-8 rounded-lg border border-border",children:[e.jsx(le,{src:r.project.logo_url||"",alt:r.project.name}),e.jsx(ce,{className:"bg-primary/20 text-primary text-xs rounded-lg font-bold",children:r.project.name.charAt(0)})]}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:r.project.name}),r.role&&e.jsx("p",{className:"text-xs text-muted-foreground",children:r.role})]}),r.project.status==="featured"&&e.jsx(L,{variant:"outline",className:"bg-accent/20 text-accent border-accent/30 text-xs shrink-0",children:"⭐"})]},r.id))})]}),A.length>0&&e.jsxs("div",{className:"space-y-2 pt-4 border-t",children:[e.jsx("h4",{className:"text-sm font-semibold text-foreground",children:"Conversations"}),e.jsx("div",{className:"space-y-2",children:A.map(r=>{var c,h,_,k,K;return e.jsxs("div",{className:"flex items-center gap-3 p-2 rounded-lg bg-muted/30",children:[(c=r.content)!=null&&c.thumbnail_url?e.jsx("div",{className:"w-8 h-8 rounded-lg overflow-hidden border border-border flex-shrink-0",children:e.jsx("img",{src:r.content.thumbnail_url,alt:"",className:"w-full h-full object-cover"})}):e.jsx("div",{className:"w-8 h-8 rounded-lg bg-accent/20 border border-border flex items-center justify-center flex-shrink-0",children:e.jsx(de,{className:"w-4 h-4 text-accent"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:((h=r.content)==null?void 0:h.title)||"Untitled"}
59),((_=r.content)==null?void 0:_.scheduled_at)&&e.jsx("p",{className:"text-xs text-muted-foreground",children:new Date(r.content.scheduled_at).toLocaleDateString()})]}),e.jsx(L,{variant:"outline",className:"text-xs shrink-0 capitalize",children:(K=(k=r.content)==null?void 0:k.content_type)==null?void 0:K.replace("_"," ")})]},r.content_id)})})]}),o.length>0&&e.jsxs("div",{className:"space-y-3 pt-4 border-t",children:[e.jsx("h4",{className:"text-sm font-semibold text-foreground",children:"Published Content"}),e.jsx(ue,{className:"max-h-[400px]",children:e.jsx("div",{className:"space-y-3 pr-4",children:o.map(r=>e.jsx(he,{content:r,hasReminder:u(r.id),onReminderToggle:v,onClick:()=>m(r)},r.id))})})]})]})]})]}),l&&e.jsx(xe,{content:l,open:!!l,onOpenChange:r=>!r&&m(null),hasReminder:u(l.id),onReminderToggle:v})]})}const Be=Object.freeze(Object.defineProperty({__proto__:null,default:_e},Symbol.toStringTag,{value:"Module"}));export{_e as M,Ae as a,Be as b,Ee as u};

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.