1import{u as v,s as k,j as e,I as G,L as W,r as y,c as O,S as w,R as m,F as A,N as q,a as M,b as P,H as F,d as $,t as z,e as H,f as J,g as C}from"./index-ifFCWbr-.js";import{C as T}from"./ContentPartnersSection-_hVPvxB3.js";import{E as U}from"./external-link-BnCK3jdk.js";import{G as L}from"./GalleryCarousel-BilfWgSt.js";const I=({source_url:s,website_url:c,instagram_url:a,facebook_url:n,location:r})=>{const{language:x}=v(),u=x==="fr",l=k(c)??k(s),d=k(a),t=k(n);return!l&&!d&&!t&&!r?null:e.jsx("section",{className:"container mx-auto px-4 py-6 border-t border-border",children:e.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-3",children:[l&&e.jsxs("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm font-medium text-foreground hover:text-foreground/70 transition-colors uppercase tracking-wider",children:[e.jsx(U,{className:"w-4 h-4"}),u?"Site web":"Website"]}),d&&e.jsxs("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm font-medium text-foreground hover:text-foreground/70 transition-colors uppercase tracking-wider",children:[e.jsx(G,{className:"w-4 h-4"}),"Instagram"]}),t&&e.jsxs("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm font-medium text-foreground hover:text-foreground/70 transition-colors uppercase tracking-wider",children:[e.jsx(W,{className:"w-4 h-4"}),"LinkedIn"]}),r&&e.jsx("span",{className:"ml-auto text-sm font-medium text-muted-foreground uppercase tracking-wider",children:r})]})})},R=({children:s,className:c,minFontSize:a=12})=>{const n=y.useRef(null);return y.useLayoutEffect(()=>{var t;const r=n.current;if(!r)return;let x=0,u=0;const l=()=>{window.cancelAnimationFrame(x),x=window.requestAnimationFrame(()=>{const i=r.clientWidth;if(!i||i===u)return;u=i,r.style.removeProperty("font-size");const b=Number.parseFloat(window.getComputedStyle(r).fontSize);if(!b||r.scrollWidth<=i)return;let _=a,j=b,o=a;for(;j-_>.25;){const g=(_+j)/2;r.style.fontSize=`${g}px`,r.scrollWidth<=i?(o=g,_=g):j=g}r.style.fontSize=`${o}px`})};l();const d=new ResizeObserver(l);return d.observe(r.parentElement||r),(t=document.fonts)==null||t.ready.then(()=>{u=0,l()}),()=>{window.cancelAnimationFrame(x),d.disconnect()}},[s,a]),e.jsx("h1",{ref:n,className:O("w-full whitespace-nowrap",c),children:s})},V="https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?w=1200&h=800&fit=crop",E=({item:s,relatedItems:c,contentType:a="conferences"})=>{const{language:n}=v(),r=n==="fr",x=(()=>{switch(a){case"delegations":return r?"Autres délégations":"Other delegations";default:return r?"Autres orateurs":"Other speakers"}})(),u=(()=>{switch(a){case"delegations":return"/delegations";default:return"/talks"}})(),l=n==="en"?s.description_en||s.description:s.description||s.description_en,d=n==="en"?s.intro_text_en||s.intro_text:s.intro_text||s.intro_text_en,t=n==="en"?s.speaker_bio_en||s.speaker_bio:s.speaker_bio||s.speaker_bio_en,i=s.hero_image_url||s.image_url||V,b=(s.gallery_images||[]).filter(Boolean),_=(()=>{if(a==="delegations")return null;const o=[];if(s.date){const N=new Date(`${s.date}T00:00:00`);if(!isNaN(N.getTime())){const S=r?["JANV","FÃVR","MARS","AVR","MAI","JUIN","JUIL","AOÃT","SEPT","OCT","NOV","DÃC"]:["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"];o.push(`${N.getDate()} ${S[N.getMonth()]}`)}}s.start_time&&o.push(s.start_time.slice(0,5));const g=s.room_name||s.location;return g&&o.push(g),o.length>0?o.join(" · "):null})(),j=r?s.speaker_location_fr||s.speaker_location:s.speaker_location||s.speaker_location_fr;return e.jsxs("div",{className:"pb-24",children:[e.jsx("section",{className:"w-full h-[70vh] md:h-[85vh] overflow-hidden",children:e.jsx(w,{src:i,alt:s.speaker_name||s.title,className:"w-full h-full object-cover",loading:"eager",decoding:"sync",fetchpriority:"high",preload:!0,renderWidth:1600,responsiveWidths:[800,1280,1600,1920],quality:72,sizes:"100vw"})}),e.jsx("section",{className:"container mx-auto px-4 pt-12 pb-8",children:e.jsx("div",{className:"grid grid-cols-12 gap-4",children:e.jsxs("div",{className:"col-span-12 lg:col-span-8",children:[s.tags&&s.tags.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mb-6",children:s.tags.map(o=>e.jsx("span",{className:"text-[10px] uppercase tracking-[0.3em] font-medium text-muted-foreground border border-border px-3 py-1",children:o},o))}),s.country&&e.jsx("span",{className:"inline-block text-[10px] uppercase tracking-[0.3em] font-medium text-muted-foreground border border-border px-3 py-1 mb-6",children:s.country}
1),s.company_studio&&e.jsx("p",{className:"text-xs md:text-sm uppercase tracking-[0.15em] font-medium text-muted-foreground mb-2",children:s.company_studio}),e.jsx(R,{className:"text-5xl md:text-7xl lg:text-[6rem] font-black uppercase tracking-[-0.03em] leading-[0.85] mb-6",children:s.speaker_name||s.title})]})})}),e.jsx(I,{source_url:s.source_url,website_url:s.website_url,instagram_url:s.instagram_url,facebook_url:s.facebook_url,location:a==="delegations"?j:_}),d&&e.jsx("section",{className:"container mx-auto px-4 py-10 border-t border-border",children:e.jsx(m,{value:d,className:"text-lg md:text-xl text-muted-foreground leading-relaxed max-w-2xl"})}),t&&e.jsx("section",{className:"container mx-auto px-4 py-12 border-t border-border",children:e.jsxs("div",{className:"grid grid-cols-12 gap-8",children:[e.jsx("div",{className:"col-span-12 lg:col-span-3",children:e.jsx("h2",{className:"text-[10px] uppercase tracking-[0.4em] font-bold text-muted-foreground",children:r?"Biographie":"Biography"})}),e.jsx("div",{className:"col-span-12 lg:col-span-7",children:e.jsx(m,{value:t,className:"text-muted-foreground leading-relaxed text-base"})})]})}),b.length>0&&e.jsxs("section",{className:"container mx-auto px-4 py-12 border-t border-border",children:[e.jsx("h2",{className:"text-[10px] uppercase tracking-[0.4em] font-bold text-muted-foreground mb-8",children:r?"Galerie":"Gallery"}),e.jsx(L,{images:b,alt:s.title,credit:s.carousel_credit})]}),e.jsx("section",{className:"container mx-auto px-4 py-12 border-t border-border",children:e.jsxs("div",{className:"grid grid-cols-12 gap-8",children:[e.jsx("div",{className:"col-span-12 lg:col-span-3",children:e.jsx("h2",{className:"text-[10px] uppercase tracking-[0.4em] font-bold text-muted-foreground",children:r?"Ã propos du talk":"About the talk"})}),e.jsxs("div",{className:"col-span-12 lg:col-span-7",children:[e.jsx("h3",{className:"text-2xl md:text-3xl font-black uppercase tracking-tight mb-4",children:s.title}),l&&e.jsx(m,{value:l,className:"text-muted-foreground leading-relaxed text-base"})]})]})}),e.jsx(T,{contentType:a,contentId:s.id}),c&&c.length>0&&e.jsxs("section",{className:"container mx-auto px-4 py-16 border-t border-border",children:[e.jsx("h2",{className:"text-3xl md:text-5xl font-black uppercase tracking-tight mb-10",children:x}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:c.slice(0,4).map(o=>e.jsx(A,{image:o.image_url||o.gallery_images&&o.gallery_images[0]||"",companyStudio:o.company_studio||void 0,title:o.speaker_name||o.title,subtitle:o.speaker_name&&o.title&&o.title!==o.speaker_name?o.title:void 0,country:o.country||void 0,location:(r?o.speaker_location_fr||o.speaker_location:o.speaker_location||o.speaker_location_fr)||void 0,to:`${u}/${o.slug}`,variant:"visual"},o.id))})]})]})},Q="https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?w=1200&h=800&fit=crop",B=({item:s,relatedItems:c})=>{const{language:a}=v(),n=a==="fr",r=a==="en"?s.description_en||s.description:s.description||s.description_en,x=a==="en"?s.intro_text_en||s.intro_text:s.intro_text||s.intro_text_en,u=a==="en"?s.artist_bio_en||s.artist_bio:s.artist_bio||s.artist_bio_en,l=s.hero_image_url||s.image_url||Q,d=(s.gallery_images||[]).filter(Boolean);return e.jsxs("div",{className:"pb-24",children:[e.jsx("section",{className:"w-full h-[70vh] md:h-[85vh] overflow-hidden",children:e.jsx(w,{src:l,alt:s.artist_name||s.title,className:"w-full h-full object-cover",loading:"eager",decoding:"sync",fetchpriority:"high",preload:!0,renderWidth:1600,responsiveWidths:[800,1280,1600,1920],quality:72,sizes:"100vw"})}),e.jsx("section",{className:"container mx-auto px-4 pt-12 pb-8",children:e.jsx("div",{className:"grid grid-cols-12 gap-4",children:e.jsxs("div",{className:"col-span-12 lg:col-span-8",children:[s.tags&&s.tags.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mb-6",children:s.tags.map(t=>e.jsx("span",{className:"text-[10px] uppercase tracking-[0.3em] font-medium text-muted-foreground border border-border px-3 py-1",children:t},t))}),s.country&&e.jsx("span",{className:"inline-block text-[10px] uppercase tracking-[0.3em] font-medium text-muted-foreground border border-border px-3 py-1 mb-6",children:s.country}),e.jsx("h1",{className:"text-5xl md:text-7xl lg:text-[6rem] font-black uppercase tracking-[-0.03em] leading-[0.85] mb-6",children:s.title})]})})}
1),e.jsx(I,{source_url:s.source_url,website_url:s.website_url,instagram_url:s.instagram_url,facebook_url:s.facebook_url}),x&&e.jsx("section",{className:"container mx-auto px-4 py-10 border-t border-border",children:e.jsx(m,{value:x,className:"text-lg md:text-xl text-muted-foreground leading-relaxed max-w-2xl"})}),u&&e.jsx("section",{className:"container mx-auto px-4 py-12 border-t border-border",children:e.jsxs("div",{className:"grid grid-cols-12 gap-8",children:[e.jsx("div",{className:"col-span-12 lg:col-span-3",children:e.jsx("h2",{className:"text-[10px] uppercase tracking-[0.4em] font-bold text-muted-foreground",children:n?"L'artiste":"The artist"})}),e.jsx("div",{className:"col-span-12 lg:col-span-7",children:e.jsx(m,{value:u,className:"text-muted-foreground leading-relaxed text-base"})})]})}),d.length>0&&e.jsxs("section",{className:"container mx-auto px-4 py-12 border-t border-border",children:[e.jsx("h2",{className:"text-[10px] uppercase tracking-[0.4em] font-bold text-muted-foreground mb-8",children:n?"Galerie":"Gallery"}),e.jsx(L,{images:d,alt:s.title,credit:s.carousel_credit})]}),e.jsx("section",{className:"container mx-auto px-4 py-12 border-t border-border",children:e.jsxs("div",{className:"grid grid-cols-12 gap-8",children:[e.jsx("div",{className:"col-span-12 lg:col-span-3",children:e.jsx("h2",{className:"text-[10px] uppercase tracking-[0.4em] font-bold text-muted-foreground",children:n?"Ã propos de l'Åuvre":"About the work"})}),e.jsxs("div",{className:"col-span-12 lg:col-span-7",children:[e.jsx("h3",{className:"text-2xl md:text-3xl font-black uppercase tracking-tight mb-4",children:s.title}),r&&e.jsx(m,{value:r,className:"text-muted-foreground leading-relaxed text-base"})]})]})}),e.jsx(T,{contentType:"installations",contentId:s.id}),c&&c.length>0&&e.jsxs("section",{className:"container mx-auto px-4 py-16 border-t border-border",children:[e.jsx("h2",{className:"text-3xl md:text-5xl font-black uppercase tracking-tight mb-10",children:n?"Autres Åuvres":"Other artworks"}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[...c].sort(()=>Math.random()-.5).slice(0,5).map(t=>e.jsx(A,{image:t.image_url||t.gallery_images&&t.gallery_images[0]||"",title:t.artist_name||t.title,subtitle:t.artist_name?t.title:void 0,to:`/installations/${t.slug}`,variant:"visual"},t.id))})]})]})},Y="https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?w=1200&h=800&fit=crop",X=({item:s,relatedItems:c})=>{const{language:a}=v(),n=a==="fr";a==="en"?s.description_en||s.description:s.description||s.description_en;const r=a==="en"?s.intro_text_en||s.intro_text:s.intro_text||s.intro_text_en,x=a==="en"?s.artist_bio_en||s.artist_bio:s.artist_bio||s.artist_bio_en,u=a==="en"?s.about_project_en||s.about_project:s.about_project||s.about_project_en,l=s.name||s.title,d=s.hero_image_url||s.image_url||Y,t=(s.gallery_images||[]).filter(Boolean);return e.jsxs("div",{className:"pb-24",children:[e.jsx("section",{className:"w-full h-[70vh] md:h-[85vh] overflow-hidden",children:e.jsx(w,{src:d,alt:l,className:"w-full h-full object-cover",loading:"eager",decoding:"sync",fetchpriority:"high",preload:!0,renderWidth:1600,responsiveWidths:[800,1280,1600,1920],quality:72,sizes:"100vw"})}),e.jsx("section",{className:"container mx-auto px-4 pt-12 pb-8",children:e.jsx("div",{className:"grid grid-cols-12 gap-4",children:e.jsxs("div",{className:"col-span-12 lg:col-span-8",children:[s.tags&&s.tags.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mb-6",children:s.tags.map(i=>e.jsx("span",{className:"text-[10px] uppercase tracking-[0.3em] font-medium text-muted-foreground border border-border px-3 py-1",children:i},i))}),s.country&&e.jsx("span",{className:"inline-block text-[10px] uppercase tracking-[0.3em] font-medium text-muted-foreground border border-border px-3 py-1 mb-6",children:s.country}),e.jsx("h1",{className:"text-5xl md:text-7xl lg:text-[6rem] font-black uppercase tracking-[-0.03em] leading-[0.85] mb-6",children:l})]})})}),e.jsx(I,{source_url:s.source_url,website_url:s.website_url,instagram_url:s.instagram_url,facebook_url:s.facebook_url}),r&&e.jsx("section",{className:"container mx-auto px-4 py-10 border-t border-border",children:e.jsx(m,{value:r,className:"text-lg md:text-xl text-muted-foreground leading-relaxed max-w-2xl"})}),x&&e.jsx("section",{className:"container mx-auto px-4 py-12 border-t border-border",children:e.jsxs("div",{className:"grid grid-cols-12 gap-8",children:[e.jsx("div",{className:"col-span-12 lg:col-span-3",children:e.jsx("h2",{className:"text-[10px] uppercase tracking-[0.4em] font-bold text-muted-foreground",children:n?"L'artiste":"The artist"})}),e.jsx("div",{className:"col-span-12 lg:col-span-7",children:e.jsx(m,{value:x,className:"text-muted-foreground leading-relaxed text-base"})})]})}),t.length>0&&e.jsxs("section",{className:"container mx-auto px-4 py-12 border-t border-border",children:[e.jsx("h2",{className:"text-[10px] uppercase tracking-[0.4em] font-bold text-muted-foreground mb-8",children:n?"Galerie":"Gallery"}),e.jsx(L,{images:t,alt:l,credit:s.carousel_credit})]}),u&&e.jsx("section",{className:"container mx-auto px-4 py-12 border-t border-border",children:e.jsxs("div",{className:"grid grid-cols-12 gap-8",children:[e.jsx("div",{className:"col-span-12 lg:col-span-3",children:e.jsx("h2",{className:"text-[10px] uppercase tracking-[0.4em] font-bold text-muted-foreground",children:n?"Ã propos du projet":"About the project"})}),e.jsxs("div",{className:"col-span-12 lg:col-span-7",children:[e.jsx("h3",{className:"text-2xl md:text-3xl font-black uppercase tracking-tight mb-4",children:s.title}),e.jsx(m,{value:u,className:"text-muted-foreground leading-relaxed text-base"})]})]})}),e.jsx(T,{contentType:"exhibitors",contentId:s.id}),c&&c.length>0&&e.jsxs("section",{className:"container mx-auto px-4 py-16 border-t border-border",children:[e.jsx("h2",{className:"text-3xl md:text-5xl font-black uppercase tracking-tight mb-10",children:n?"Autres projets":"Other work"}
1),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[...c].sort(()=>Math.random()-.5).slice(0,5).map(i=>e.jsx(A,{image:i.image_url||i.gallery_images&&i.gallery_images[0]||"",title:i.name||i.title,to:`/pro/market/${i.slug}`,variant:"visual"},i.id))})]})]})},Z="https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?w=1200&h=800&fit=crop",ee=({item:s,relatedItems:c})=>{const{language:a}=v(),n=a==="fr",r=a==="en"?s.description_en||s.description:s.description||s.description_en,x=a==="en"?s.intro_text_en||s.intro_text:s.intro_text||s.intro_text_en,u=s.hero_image_url||s.image_url||Z,l=(s.gallery_images||[]).filter(Boolean),d=k(s.ticket_url);return e.jsxs("div",{className:"pb-24",children:[e.jsx("section",{className:"w-full h-[70vh] md:h-[85vh] overflow-hidden",children:e.jsx(w,{src:u,alt:s.artist_name||s.title,className:"w-full h-full object-cover",loading:"eager",decoding:"sync",fetchpriority:"high",preload:!0,renderWidth:1600,responsiveWidths:[800,1280,1600,1920],quality:72,sizes:"100vw"})}),e.jsx("section",{className:"container mx-auto px-4 pt-12 pb-8",children:e.jsx("div",{className:"grid grid-cols-12 gap-4",children:e.jsxs("div",{className:"col-span-12 lg:col-span-8",children:[s.tags&&s.tags.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mb-6",children:s.tags.map(t=>e.jsx("span",{className:"text-[10px] uppercase tracking-[0.3em] font-medium text-muted-foreground border border-border px-3 py-1",children:t},t))}),e.jsx(R,{className:"text-5xl md:text-7xl lg:text-[6rem] font-black uppercase tracking-[-0.03em] leading-[0.85] mb-6",children:s.artist_name||s.title})]})})}),e.jsx(I,{source_url:s.source_url,website_url:s.website_url,instagram_url:s.instagram_url,facebook_url:s.facebook_url}),e.jsx("section",{className:"container mx-auto px-4 py-10 border-t border-border",children:e.jsxs("div",{className:"grid grid-cols-12 gap-8",children:[e.jsx("div",{className:"col-span-12 lg:col-span-3",children:e.jsx("h2",{className:"text-[10px] uppercase tracking-[0.4em] font-bold text-muted-foreground",children:n?"Infos pratiques":"Practical info"})}),e.jsx("div",{className:"col-span-12 lg:col-span-9",children:e.jsxs("div",{className:"flex flex-col md:flex-row md:items-end md:justify-between gap-8",children:[e.jsxs("div",{className:"flex flex-wrap gap-x-12 gap-y-6",children:[s.event_date&&e.jsxs("div",{children:[e.jsx("span",{className:"text-[10px] uppercase tracking-[0.3em] text-muted-foreground block mb-2",children:"Date"}),e.jsx("span",{className:"text-base font-bold",children:s.event_date})]}),s.venue&&e.jsxs("div",{children:[e.jsx("span",{className:"text-[10px] uppercase tracking-[0.3em] text-muted-foreground block mb-2",children:n?"Lieu":"Venue"}),e.jsx("span",{className:"text-base font-bold",children:s.venue})]}),s.start_time&&e.jsxs("div",{children:[e.jsx("span",{className:"text-[10px] uppercase tracking-[0.3em] text-muted-foreground block mb-2",children:n?"Horaire":"Time"}),e.jsxs("span",{className:"text-base font-bold",children:[s.start_time,s.end_time?` â ${s.end_time}`:""]})]})]}),d&&e.jsx("div",{className:"flex md:justify-end",children:e.jsx(q,{href:d,variant:"filled",children:n?"Billetterie":"Tickets"})})]})})]})}),x&&e.jsx("section",{className:"container mx-auto px-4 py-10 border-t border-border",children:e.jsx(m,{value:x,className:"text-lg md:text-xl text-muted-foreground leading-relaxed max-w-2xl"})}),l.length>0&&e.jsxs("section",{className:"container mx-auto px-4 py-12 border-t border-border",children:[e.jsx("h2",{className:"text-[10px] uppercase tracking-[0.4em] font-bold text-muted-foreground mb-8",children:n?"Galerie":"Gallery"}),e.jsx(L,{images:l,alt:s.title,credit:s.carousel_credit})]}),e.jsx("section",{className:"container mx-auto px-4 py-12 border-t border-border",children:e.jsxs("div",{className:"grid grid-cols-12 gap-8",children:[e.jsx("div",{className:"col-span-12 lg:col-span-3",children:e.jsx("h2",{className:"text-[10px] uppercase tracking-[0.4em] font-bold text-muted-foreground",children:n?"à propos de l'événement":"About the event"})}),e.jsxs("div",{className:"col-span-12 lg:col-span-7",children:[e.jsx("h3",{className:"text-2xl md:text-3xl font-black uppercase tracking-tight mb-4",children:s.title}),e.jsx(m,{value:r,className:"text-muted-foreground leading-relaxed text-base"})]})]})}),e.jsx(T,{contentType:"by_night_events",contentId:s.id}),c&&c.length>0&&e.jsxs("section",{className:"container mx-auto px-4 py-16 border-t border-border",children:[e.jsx("h2",{className:"text-3xl md:text-5xl font-black uppercase tracking-tight mb-10",children:n?"Autres soirées":"Other parties"}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:c.slice(0,4).map(t=>e.jsx(A,{image:t.image_url||t.gallery_images&&t.gallery_images[0]||"",title:t.artist_name||t.title,subtitle:t.artist_name&&t.title&&t.title!==t.artist_name?t.title:void 0,to:`/parties/${t.slug}`,variant:"visual"},t.id))})]})]})},ne=()=>{const{id:s}=M(),{language:c}=v(),[a,n]=y.useState(null);y.useEffect(()=>{if(!s)return;const h=window.location.pathname.split("/"),p=h[1],f=h[2];p==="pro"&&f==="conferences"||p==="talks"?n("conferences"):p==="pro"&&f==="market"?n("exhibitors"):p==="public"&&f==="art-trail"||p==="installations"?n("installations"):p==="by-night"||p==="parties"?n("by_night_events"):p==="delegations"||p==="pro"&&f==="delegations"?n("delegations"):(p==="workshops-kids"||p==="public"&&f==="workshops-kids")&&n("workshops_kids")},[s]);const{data:r,isLoading:x,error:u}=P({queryKey:[a,"by-slug",s],queryFn:async()=>
1{if(!a||!s)return null;const{data:h,error:p}=await C.from(a).select("*").eq("slug",s).maybeSingle();if(p)throw p;return h},enabled:!!a&&!!s}),{data:l}=P({queryKey:[a,"related",s],queryFn:async()=>{if(!a||!s)return[];const{data:h}=await C.from(a).select("*").eq("status","published").neq("slug",s).limit(a==="installations"||a==="exhibitors"?20:4);return h||[]},enabled:!!a&&!!s});if(x)return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(F,{variant:"minimal",showBack:!0}),e.jsx("main",{className:"pt-20 flex items-center justify-center h-96",children:e.jsx("p",{className:"text-muted-foreground",children:c==="en"?"Loading...":"Chargement..."})})]});if(u||!r)return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(F,{variant:"minimal",showBack:!0}),e.jsx("main",{className:"pt-20 pb-16",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("p",{className:"text-muted-foreground",children:c==="en"?"Item not found":"Ãlément non trouvé"})})}),e.jsx($,{})]});const d=()=>{switch(a){case"conferences":return e.jsx(E,{item:r,relatedItems:l,contentType:"conferences"});case"installations":return e.jsx(B,{item:r,relatedItems:l});case"exhibitors":return e.jsx(X,{item:r,relatedItems:l});case"by_night_events":return e.jsx(ee,{item:r,relatedItems:l});case"delegations":return e.jsx(E,{item:r,relatedItems:l,contentType:"delegations"});case"workshops_kids":return e.jsx(B,{item:r,relatedItems:l});default:return e.jsx(E,{item:r,relatedItems:l})}},t=r,i=c==="en",b=t.title||t.speaker_name||t.name||"KIKK Festival",_=(i?t.seo_title_en:t.seo_title)||(i?t.seo_title_en||t.seo_title:t.seo_title||t.seo_title_en)||b,j=(i?t.meta_description_en:t.meta_description)||(i?t.description_en:t.description)||(i?t.description:t.description_en)||"",o=z(String(j)).replace(/\s+/g," ").trim().slice(0,160),g=t.social_share_image_url||t.hero_image_url||t.image_url||void 0,N=a==="by_night_events"||a==="workshops_kids"||a==="conferences"?"event":"article",S=typeof window<"u"?`https://kikkfestival.be${window.location.pathname}`:"https://kikkfestival.be",D=()=>{const h={"@context":"https://schema.org",name:b,url:S,...o?{description:o}:{},...g?{image:g}:{}};if(N==="event"){const p=t.date||t.event_date||t.workshop_date,f=t.start_time?`${p}T${t.start_time}`:p,K=t.end_time?`${p}T${t.end_time}`:void 0;return{...h,"@type":"Event",eventStatus:"https://schema.org/EventScheduled",eventAttendanceMode:"https://schema.org/OfflineEventAttendanceMode",...f?{startDate:f}:{},...K?{endDate:K}:{},location:{"@type":"Place",name:t.location||t.venue||"Namur",address:{"@type":"PostalAddress",addressLocality:"Namur",addressCountry:"BE"}},...t.speaker_name?{performer:{"@type":"Person",name:t.speaker_name}}:t.artist_name?{performer:{"@type":"Person",name:t.artist_name}}:{},superEvent:{"@type":"Festival",name:"KIKK Festival 2026"},organizer:{"@type":"Organization",name:"KIKK",url:"https://kikkfestival.be"}}}return a==="installations"?{...h,"@type":"VisualArtwork",...t.artist_name?{creator:{"@type":"Person",name:t.artist_name}}:{},...t.location?{locationCreated:{"@type":"Place",name:t.location}}:{}}:{...h,"@type":"CreativeWork",...t.artist_name?{creator:{"@type":"Person",name:t.artist_name}}:{}}};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(H,{children:e.jsx("script",{type:"application/ld+json",children:JSON.stringify(D())})}),e.jsx(J,{title:`${_} â KIKK Festival`,description:o||"KIKK Festival â Digital cultures festival in Namur.",path:typeof window<"u"?window.location.pathname:"/",image:g,type:N}),e.jsx(F,{variant:"minimal",showBack:!0}),e.jsx("main",{children:d()}),e.jsx($,{})]})};export{ne 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.