1import{a as u,b as d,s as p,r as _,j as e}from"./index-DT2isS-B.js";import{p as o}from"./i18n-content-8nzK2gBV.js";import{S as f}from"./SiteHeader-r3alhaBg.js";import{p as b}from"./PageHeaderEditor-D3Jcm4ON.js";import"./ContentPage-qk8DJaZN.js";import"./MenuCtasEditor-DESSHbbl.js";import"./custom-pages-D564KhPh.js";import"./chevron-down-BFY4FmaF.js";import"./plus-D3jd3V9j.js";import"./trash-2-B5BqHYpk.js";import"./EmojiPicker-B4UL_LnF.js";import"./Field-BwzEz6u9.js";import"./RichTextEditor-CP9YQyTw.js";import"./admin-upload-CZ0UrFKR.js";function T(){const a=u(),{data:i=""}=d({queryKey:["site_menu_icon"],queryFn:async()=>{const{data:t}=await p.from("site_settings").select("key,value").in("key",["menu_icon_url","favicon_url"]),s=new Map((t??[]).map(r=>[r.key,r.value??""]));return s.get("menu_icon_url")||s.get("favicon_url")||""}}),{data:n}=d({queryKey:["programme_page_header"],queryFn:async()=>{const{data:t}=await p.from("site_settings").select("key,value").in("key",b("programme")),s=new Map((t??[]).map(r=>[r.key,r.value??""]));return{eyebrow:s.get("programme_page_eyebrow")??"Agenda officiel",eyebrow_en:s.get("programme_page_eyebrow_en")??"",title:s.get("programme_page_title")||"Programme",title_en:s.get("programme_page_title_en")??"",subtitle:s.get("programme_page_subtitle")??"Toutes les sessions, keynotes et tables rondes de l'événement, avec les intervenants associés.",subtitle_en:s.get("programme_page_subtitle_en")??""}}}),{data:l=[],isLoading:c}=d({queryKey:["public_program_sessions"],queryFn:async()=>{const{data:t,error:s}=await p.from("program_sessions").select("id, title, description, room, starts_at, ends_at, session_type, position, title_en, description_en, room_en, session_type_en, program_session_speakers(speaker_id, speakers(id, first_name, last_name, role, org, role_en, org_en, photo_url))").order("starts_at",{ascending:!0});if(s)throw s;return(t??[]).map(r=>({id:r.id,title:r.title,description:r.description,room:r.room,starts_at:r.starts_at,ends_at:r.ends_at,session_type:r.session_type,position:r.position,title_en:r.title_en,description_en:r.description_en,room_en:r.room_en,session_type_en:r.session_type_en,speakers:(r.program_session_speakers??[]).map(x=>x.speakers).filter(Boolean)}))}}),m=_.useMemo(()=>{const t=new Map;for(const s of l){const r=new Date(s.starts_at).toISOString().slice(0,10);t.has(r)||t.set(r,[]),t.get(r).push(s)}return Array.from(t.entries()).sort(([s],[r])=>s.localeCompare(r))},[l]);return e.jsxs("div",{id:"programme",className:"min-h-screen bg-background text-foreground overflow-x-hidden relative scroll-mt-24",children:[e.jsxs("div",{className:"pointer-events-none fixed inset-0 z-0 overflow-hidden",children:[e.jsx("div",{className:"absolute -top-40 -left-40 w-[600px] h-[600px] rounded-full bg-primary/20 blur-[140px]"}),e.jsx("div",{className:"absolute -bottom-40 -right-40 w-[600px] h-[600px] rounded-full bg-accent/20 blur-[140px]"})]}),e.jsx(f,{}),e.jsxs("main",{className:"relative z-10 max-w-5xl mx-auto px-6 py-12 md:py-20",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("span",{className:"inline-block text-xs font-bold uppercase tracking-widest text-accent mb-3",children:o(a,n?.eyebrow??"Agenda officiel",n?.eyebrow_en)}),e.jsx("h1",{className:"text-4xl md:text-6xl font-extrabold tracking-tight bg-gradient-to-r from-foreground to-foreground/70 bg-clip-text text-transparent leading-[1.15] pb-2",children:o(a,n?.title??"Programme",n?.title_en)}),o(a,n?.subtitle,n?.subtitle_en)&&e.jsx("p",{className:"mt-4 text-muted-foreground max-w-2xl mx-auto",children:o(a,n?.subtitle,n?.subtitle_en)})]}),c?e.jsx("div",{className:"text-center py-24 text-muted-foreground",children:"Chargementâ¦"}):m.length===0?e.jsx("div",{className:"text-center py-24 text-muted-foreground",children:"Le programme sera publié prochainement."}):e.jsx("div",{className:"space-y-14",children:m.map(([t,s])=>e.jsxs("section",{children:[e.jsx("h2",{className:"text-sm font-bold uppercase tracking-widest text-accent mb-4",children:y(t)}),e.jsx("div",{className:"space-y-3",children:s.map(r=>e.jsx(h,{session:r},r.id))})]},t))})]})]})}function h({session:a}){const i=u(),n=o(i,a.title,a.title_en),l=o(i,a.description,a.description_en),c=o(i,a.room,a.room_en),m=o(i,a.session_type,a.session_type_en);
1return e.jsxs("article",{className:"bg-foreground/[0.03] border border-border rounded-2xl p-5 md:p-6 hover:border-accent/60 transition-colors",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:[e.jsxs("span",{className:"text-accent",children:[g(a.starts_at)," â ",g(a.ends_at)]}),c&&e.jsxs("span",{children:["⢠",c]}),m&&e.jsxs("span",{children:["⢠",m]})]}),e.jsx("h3",{className:"text-lg md:text-xl font-bold mt-2",children:n}),l&&e.jsx("p",{className:"mt-2 text-sm md:text-base text-muted-foreground whitespace-pre-wrap",children:l}),a.speakers.length>0&&e.jsx("div",{className:"mt-4 flex flex-wrap gap-3",children:a.speakers.map(t=>e.jsxs("div",{className:"flex items-center gap-2 bg-background/60 border border-border rounded-full pl-1 pr-3 py-1",children:[t.photo_url?e.jsx("img",{src:t.photo_url,alt:`${t.first_name} ${t.last_name}`,className:"size-7 rounded-full object-cover"}):e.jsx("div",{className:"size-7 rounded-full bg-gradient-to-br from-primary to-accent grid place-items-center text-white text-[10px] font-bold",children:(t.first_name?.[0]??"")+(t.last_name?.[0]??"")}),e.jsxs("div",{className:"text-xs leading-tight",children:[e.jsxs("div",{className:"font-semibold",children:[t.first_name," ",t.last_name]}),(t.role||t.org)&&e.jsx("div",{className:"text-muted-foreground",children:[o(i,t.role,t.role_en),o(i,t.org,t.org_en)].filter(Boolean).join(" â ")})]})]},t.id))})]})}function y(a){return new Date(a).toLocaleDateString("fr-FR",{weekday:"long",day:"numeric",month:"long",year:"numeric"})}function g(a){return new Date(a).toLocaleTimeString("fr-FR",{hour:"2-digit",minute:"2-digit"})}export{T as component};
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.