PageSourceSearch

https://delphigrc.org/assets/Events-CXX3LAb0.js

js delphigrc.org collected 2026-09-25 20:48:21 UTC 14,497 bytes, 1 lines download raw bytes

1import{j as e,L as s}from"./vendor-react-BH6F5oQJ.js";import{v as a,w as t,H as r,C as l,S as n,m as i,f as o,b as c,d,g as m,I as x,B as h,x as p,n as u,o as f,q as j}from"./index-C_oSc_qP.js";import{u as g}from"./useEventsHero-BWH5HzKL.js";import{D as v,a as w,b as N,c as b,d as y,e as _}from"./dropdown-menu-YTVGj1XK.js";import{g as k,S as C,c as E}from"./socialSharing-lIC7LEty.js";import{i as D,a as R,E as G,b as S,s as L}from"./EventShareMenu-D_pFae9X.js";import{g as A,b as $}from"./youtube-CvM_n7CG.js";import{D as F}from"./ogImage-5aQVhhu0.js";import{e as P,U as T,f as I,g as M,h as z,i as H,j as O,k as U,l as W,d as B,M as V,Y as q,F as K,E as Y}from"./vendor-icons-CaI5__By.js";import"./vendor-ui-B4WC06Sp.js";import"./vendor-query-CC4VRGyP.js";import"./vendor-supabase-COwyE4EW.js";import"./index-D5Ei2fSx.js";import"./Combination-DzDAyqvK.js";const X=({event:a})=>{return e.jsxs(l,{className:"relative overflow-hidden flex flex-col md:flex-row transition-shadow hover:shadow-lg w-full max-w-full min-h-[200px]",children:[e.jsx("div",{className:"w-full md:w-[30%] md:min-w-[30%] flex-shrink-0 overflow-hidden bg-muted h-48 md:h-auto md:min-h-[200px]",children:a.image_url?e.jsx("img",{src:m(a.image_url,{width:x.card}),srcSet:c(a.image_url,d.card),sizes:"(max-width: 768px) 100vw, 30vw",alt:"",className:"h-full w-full object-cover transition-transform duration-300 hover:scale-105",loading:"lazy",decoding:"async"}):e.jsx("div",{className:"h-full w-full flex items-center justify-center text-muted-foreground/50",children:e.jsx("span",{className:"text-4xl font-bold",children:"E"})})}),e.jsxs(i,{className:"p-2 md:p-3 flex-1 flex flex-col min-w-0",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:[a.is_featured&&e.jsx(h,{variant:"secondary",className:"text-xs",children:"Featured"}),e.jsx("h2",{className:"font-heading text-xl font-semibold text-foreground flex-1",children:e.jsx(s,{to:`/events/${a.slug||a.id}`,"aria-label":`View event: ${a.title}`,className:"rounded-sm transition-colors hover:text-primary after:absolute after:inset-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",children:a.title})})]}),p(a.event_date,a.end_date,a.event_time,a.end_time)&&e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground mb-2",children:[e.jsx(B,{className:"h-4 w-4 flex-shrink-0"}),e.jsx("span",{children:p(a.event_date,a.end_date,a.event_time,a.end_time)})]}),a.location&&e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground mb-2",children:[e.jsx(V,{className:"h-4 w-4 flex-shrink-0"}),e.jsx("span",{children:a.location})]}),a.description&&e.jsx("p",{className:"text-muted-foreground text-sm flex-1 mb-4 whitespace-pre-wrap line-clamp-3 md:line-clamp-4",children:a.description}),a.event_speakers&&a.event_speakers.length>0&&e.jsxs("div",{className:"text-sm mb-2",children:[e.jsxs("span",{className:"flex items-center gap-1.5 text-muted-foreground mb-1",children:[e.jsx(P,{className:"h-3.5 w-3.5"}),"Speakers"]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:a.event_speakers.map(s=>e.jsx(J,{fellow:s.fellows,compact:!0,linkable:!1},s.fellow_id))})]}),a.event_moderators&&a.event_moderators.length>0&&e.jsxs("div",{className:"text-sm mb-2",children:[e.jsxs("span",{className:"flex items-center gap-1.5 text-muted-foreground mb-1",children:[e.jsx(T,{className:"h-3.5 w-3.5"}),"Moderators"]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:a.event_moderators.map(s=>e.jsx(J,{fellow:s.fellows,compact:!0,linkable:!1},s.fellow_id))})]}),e.jsxs("div",{className:"relative z-10 flex flex-wrap items-center gap-3 mt-auto",children:[e.jsx("span",{onClick:e=>e.stopPropagation(),className:"inline-flex",children:e.jsx(G,{...S(a),stopPropagation:!0,variant:"ghost",size:"sm"})}),a.youtube_url&&L(a)&&e.jsxs("a",{href:a.youtube_url,target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),className:"inline-flex items-center gap-2 text-sm font-medium text-primary hover:underline",children:[e.jsx(q,{className:"h-4 w-4"}),e.jsx("span",{children:"Watch on YouTube"})]}),a.program_file_url&&e.jsxs("a",{href:(t=a.program_file_url,t.toLowerCase().endsWith(".pdf")?t.includes("#")?`${t}&view=FitH`:`${t}#view=FitH`:t),target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),className:"inline-flex max-w-full flex-wrap items-center gap-2 text-sm font-medium text-primary hover:underline",children:[e.jsx(K,{className:"h-3.5 w-3.5 flex-shrink-0"}),e.jsx("span",{className:"break-words",children:"View program page"}),e.jsx(Y,{className:"h-3.5 w-3.5 flex-shrink-0"})]}),a.link_url&&D(a)&&e.jsxs("a",{href:a.link_url,target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),className:"inline-flex items-center gap-2 text-sm font-medium text-primary hover:underline",children:[e.jsx("span",{children:"Register"}),e.jsx(Y,{className:"h-3.5 w-3.5"})]})]})]})]});var t},J=({fellow:a,compact:t=!1,linkable:r=!0})=>{const l=(null==a?void 0:a.name)??"—",n=e.jsxs("div",{className:"flex items-center gap-2 rounded-md bg-muted/80 px-2 py-1",children:[e.jsxs(u,{className:t?"h-7 w-7":"h-9 w-9",children:[e.jsx(f,{src:(null==a?void 0:a.avatar_url)??void 0,alt:l,className:"object-cover"}),e.jsx(j,{className:"text-[10px]",children:l.charAt(0)})]}),e.jsx("span",{className:"text-xs font-medium text-foreground truncate max-w-[90px] md:max-w-[110px]",children:l})]});return r&&(null==a?void 0:a.slug)?e.jsx(s,{to:`/fellows/${a.slug}`,onClick:e=>e.stopPropagation(),className:"hover:opacity-80 inline-block",children:n}):n},Q=({fellow:a})=>{const t=(null==a?void 0:a.name)??"—",r=e.jsxs("div",{className:"flex min-w-0 max-w-full items-center gap-2 rounded-md bg-muted/80 px-2 py-1",children:[e.jsxs(u,{className:"h-7 w-7 flex-shrink-0",children:[e.jsx(f,{src:(null==a?void 0:a.avatar_url)??void 0,alt:t,className:"object-cover",loading:"eager",decoding:"async"}),e.jsx(j,{className:"text-[10px]",children:t.charAt(0)})]}),e.jsx("span",{className:"min-w-0 truncate text-xs font-medium text-foreground",title:t,children:t})]});return(null==a?void 0:a.slug)?e.jsx(s,{to:`/fellows/${a.slug}`,className:"hover:opacity-80 inline-block",children:r}):r},Z=()=>{var s,c,d,m;const{data:x,isLoading:h}=a(),{data:p,isLoading:u}=g(),{toast:f}=t(),j="undefined"!=typeof window?`${window.location.origin}/events`:"https://delphigrc.org/events",G=()=>({url:j,title:(null==p?void 0:p.title)||"View Our Events | Delphi GRC",description:(null==p?void 0:p.description)||"Conferences, workshops, and public events hosted or co-hosted by Delphi Global Research Center on Eurasian security and regional dynamics."}),S=(null==p?void 0:p.youtube_url)&&A(p.youtube_url)?`https://img.youtube.com/vi/${A(p.youtube_url)}/hqdefault.jpg`:F;return e.jsxs(e.Fragment,{children:[e.jsxs(r,{children:[e.jsx("title",{children:"Events | Delphi Global Research Center"}),e.jsx("meta",{name:"description",content:"Upcoming and past events, conferences, and workshops hosted or co-hosted by Delphi Global Research Center on Eurasian security and regional dynamics."}),e.jsx("meta",{name:"keywords",content:"events, conferences, workshops, Delphi GRC, Eurasian security, think tank events"}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("meta",{property:"og:site_name",content:"Delphi Global Research Center"}),e.jsx("meta",{property:"og:title",content:(null==p?void 0:p.title)?`${p.title} | Delphi GRC Events`:"Events | Delphi Global Research Center"}),e.jsx("meta",{property:"og:description",content:(null==(s=null==p?void 0:p.description)?void 0:s.slice(0,200))||"Upcoming and past events, conferences, and workshops on Eurasian security and regional dynamics."}),e.jsx("meta",{property:"og:url",content:"https://delphigrc.org/events"}),e.jsx("meta",{property:"og:image",content:S}),e.jsx("meta",{property:"og:image:secure_url",content:S}
1),e.jsx("meta",{property:"og:image:width",content:"1200"}),e.jsx("meta",{property:"og:image:height",content:"630"}),e.jsx("meta",{property:"og:image:alt",content:(null==p?void 0:p.title)||"Delphi Global Research Center - Events"}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("meta",{name:"twitter:site",content:"@DelphiGRC"}),e.jsx("meta",{name:"twitter:title",content:(null==p?void 0:p.title)?`${p.title} | Delphi GRC Events`:"Events | Delphi Global Research Center"}),e.jsx("meta",{name:"twitter:description",content:(null==(c=null==p?void 0:p.description)?void 0:c.slice(0,200))||"Upcoming and past events, conferences, and workshops on Eurasian security."}),e.jsx("meta",{name:"twitter:image",content:S}),e.jsx("link",{rel:"canonical",href:"https://delphigrc.org/events"}),e.jsx("link",{rel:"alternate",hrefLang:"en",href:"https://delphigrc.org/events"}),e.jsx("link",{rel:"alternate",hrefLang:"x-default",href:"https://delphigrc.org/events"})]}),e.jsx("div",{className:"min-h-screen bg-background",children:e.jsx("main",{className:"container py-16",children:e.jsxs("div",{className:"mx-auto max-w-7xl space-y-12",children:[e.jsxs("div",{className:"space-y-6 text-center max-w-3xl mx-auto",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-heading font-bold text-foreground bg-gradient-to-r from-foreground to-foreground/70 bg-clip-text",children:"Our Events"}),e.jsx("p",{className:"text-lg md:text-xl text-muted-foreground leading-relaxed",children:"Conferences, workshops, and public events hosted or co-hosted by Delphi Global Research Center on Eurasian security and regional dynamics."})]}),h?e.jsx("div",{className:"grid grid-cols-1 gap-8 w-full max-w-full",children:[...Array(3)].map((s,a)=>e.jsxs(l,{className:"overflow-hidden",children:[e.jsx(n,{className:"aspect-video w-full"}),e.jsxs(i,{className:"p-6 space-y-3",children:[e.jsx(n,{className:"h-6 w-3/4"}),e.jsx(n,{className:"h-4 w-1/2"}),e.jsx(n,{className:"h-4 w-full"}),e.jsx(n,{className:"h-4 w-5/6"})]})]},a))}):x&&x.length>0?e.jsxs("div",{className:"space-y-12",children:[e.jsxs("section",{children:[e.jsx("h2",{className:"font-heading text-2xl font-bold text-foreground mb-6",children:"Upcoming Events"}),x.filter(D).length>0?e.jsx("div",{className:"grid grid-cols-1 gap-8 w-full max-w-full",children:x.filter(D).sort((e,s)=>(e.event_date||"").localeCompare(s.event_date||"")).map(s=>e.jsx(X,{event:s},s.id))}):e.jsx("p",{className:"text-muted-foreground py-4",children:"No upcoming events at the moment."})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"font-heading text-2xl font-bold text-foreground mb-6",children:"Past Events"}),x.filter(R).length>0?e.jsx("div",{className:"grid grid-cols-1 gap-8 w-full max-w-full",children:x.filter(R).sort((e,s)=>(s.end_date||s.event_date||"").localeCompare(e.end_date||e.event_date||"")).map(s=>e.jsx(X,{event:s},s.id))}):e.jsx("p",{className:"text-muted-foreground py-4",children:"No past events to display."})]})]}):e.jsx("div",{className:"rounded-lg border border-border bg-card p-8 text-center text-muted-foreground",children:e.jsx("p",{children:"No upcoming events at the moment. Check back later for conferences and workshops."})}),u?e.jsxs(l,{className:"overflow-hidden",children:[e.jsx(n,{className:"aspect-video w-full"}),e.jsxs(i,{className:"p-6",children:[e.jsx(n,{className:"h-6 w-1/3 mb-4"}),e.jsx(n,{className:"h-4 w-full"})]})]}):p&&p.youtube_url&&A(p.youtube_url)?e.jsxs("section",{className:"space-y-4",children:[e.jsx("h2",{className:"font-heading text-2xl font-bold text-foreground",children:p.title||"View Our Events"}),e.jsxs(l,{className:"overflow-hidden",children:[e.jsx("div",{className:"aspect-video w-full",children:e.jsx("iframe",{src:$(A(p.youtube_url)),title:p.title||"Featured event video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"w-full h-full"})}),e.jsxs(i,{className:"p-6 space-y-4",children:[p.description&&e.jsx("p",{className:"text-muted-foreground whitespace-pre-wrap",children:p.description}),((null==(d=p.events_hero_speakers)?void 0:d.length)??0)>0&&e.jsxs("div",{children:[e.jsxs("span",{className:"flex items-center gap-1.5 text-muted-foreground mb-2 block",children:[e.jsx(P,{className:"h-3.5 w-3.5"}),"Speakers"]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:(p.events_hero_speakers??[]).map(e=>
1e.fellows).filter(Boolean).map(s=>e.jsx(Q,{fellow:s},s.id))})]}),((null==(m=p.events_hero_moderators)?void 0:m.length)??0)>0&&e.jsxs("div",{children:[e.jsxs("span",{className:"flex items-center gap-1.5 text-muted-foreground mb-2 block",children:[e.jsx(T,{className:"h-3.5 w-3.5"}),"Moderators"]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:(p.events_hero_moderators??[]).map(e=>e.fellows).filter(Boolean).map(s=>e.jsx(Q,{fellow:s},s.id))})]}),e.jsxs("div",{className:"flex items-center gap-2 pt-2 border-t border-border",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"Share:"}),e.jsxs(v,{children:[e.jsx(w,{asChild:!0,children:e.jsxs(o,{variant:"outline",size:"sm",children:[e.jsx(I,{className:"mr-2 h-4 w-4"}),"Share"]})}),e.jsxs(N,{align:"start",className:"w-52",children:[e.jsx(b,{children:"Share on social media"}),e.jsx(y,{}),e.jsx(_,{asChild:!0,children:e.jsxs("a",{href:k(C.FACEBOOK,G()),target:"_blank",rel:"noopener noreferrer",children:[e.jsx(M,{className:"mr-2 h-4 w-4"}),"Facebook"]})}),e.jsx(_,{asChild:!0,children:e.jsxs("a",{href:k(C.TWITTER,G()),target:"_blank",rel:"noopener noreferrer",children:[e.jsx("span",{className:"mr-2 font-mono text-sm",children:"𝕏"}),"Twitter / X"]})}),e.jsx(_,{asChild:!0,children:e.jsxs("a",{href:k(C.LINKEDIN,G()),target:"_blank",rel:"noopener noreferrer",children:[e.jsx(z,{className:"mr-2 h-4 w-4"}),"LinkedIn"]})}),e.jsx(_,{asChild:!0,children:e.jsxs("a",{href:k(C.WHATSAPP,G()),target:"_blank",rel:"noopener noreferrer",children:[e.jsx(H,{className:"mr-2 h-4 w-4"}),"WhatsApp"]})}),e.jsx(_,{asChild:!0,children:e.jsxs("a",{href:k(C.TELEGRAM,G()),target:"_blank",rel:"noopener noreferrer",children:[e.jsx(O,{className:"mr-2 h-4 w-4"}),"Telegram"]})}),e.jsx(_,{asChild:!0,children:e.jsxs("a",{href:k(C.EMAIL,G()),children:[e.jsx(U,{className:"mr-2 h-4 w-4"}),"Email"]})}),e.jsx(y,{}),e.jsxs(_,{onClick:async()=>{const e=await E(j);f(e?{title:"Link copied!",description:"Shareable link copied to clipboard."}:{title:"Copy failed",description:"Could not copy link.",variant:"destructive"})},children:[e.jsx(W,{className:"mr-2 h-4 w-4"}),"Copy Link"]})]})]})]})]})]})]}):null]})})})]})};export{Z 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.