1import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,r as n}from"./framework-JGc2HF7T.js";import r from"./link-BHO5p8bD.js";import i from"./image-Bu8YI18p.js";var a=e(t(),1),o={carousel:`_carousel_soadd_1`,image:`_image_soadd_1`,reveal:`_reveal_soadd_1`,controls:`_controls_soadd_1`,expo:`_expo_soadd_4`},s=n();function c({slides:e,locale:t=`hu`}){let[n,c]=(0,a.useState)(0);if((0,a.useEffect)(()=>{if(e.length<2)return;let t=window.setInterval(()=>c(t=>(t+1)%e.length),6500);return()=>window.clearInterval(t)},[e.length]),!e.length)return null;let l=e[n],u=(e,n,r)=>t===`fr`?r:t===`en`?n:e;return(0,s.jsxs)(`div`,{className:o.carousel,"aria-roledescription":`carousel`,"aria-label":u(`Aktuális kiállÃtások`,`Current exhibitions`,`Expositions en cours`),children:[(0,s.jsxs)(r,{className:`feature ${l.slug===`godot-art-expo-2026`?o.expo:``}`,id:`aktualis-kiallitas`,href:`${t===`hu`?``:`/${t}`}/kiallitasok/${l.slug}`,"aria-label":`${l.title} â ${u(`részletek`,`details`,`détails`)}`,children:[(0,s.jsxs)(`picture`,{children:[(0,s.jsx)(`source`,{media:`(max-width: 600px)`,srcSet:l.slug===`godot-art-expo-2026`?`/exhibitions/art-expo-2026-square.jpg`:l.image}),(0,s.jsx)(i,{src:l.slug===`godot-art-expo-2026`?`/exhibitions/art-expo-2026-landscape.jpg`:l.image,alt:l.imageAlt,width:l.slug===`godot-art-expo-2026`?1200:2048,height:l.slug===`godot-art-expo-2026`?628:923,priority:!0,className:o.image},l.image)]}),(0,s.jsxs)(`span`,{className:`feature-caption`,children:[(0,s.jsx)(`strong`,{children:l.title}),(0,s.jsxs)(`span`,{children:[l.period,` · `,l.venue]})]})]}),e.length>1&&(0,s.jsx)(`div`,{className:o.controls,"aria-label":u(`KiállÃtás választása`,`Choose an exhibition`,`Choisir une exposition`),children:e.map((e,t)=>(0,s.jsx)(`button`,{type:`button`,"aria-label":`${u(`Mutasd`,`Show`,`Afficher`)} ${e.title}`,"aria-current":t===n?`true`:void 0,onClick:()=>c(t),children:(0,s.jsx)(`span`,{children:String(t+1).padStart(2,`0`)})},e.slug))})]})}export{c as HomeHeroCarousel};
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.