1import{j as t,A as n,m as c}from"./vendor-motion-Cx5pSsLb.js";import{r as m}from"./vendor-react-Cwa549HP.js";import{C as h}from"./chevron-left-MjAAnuTO.js";import{C as u}from"./chevron-right-BLUJjhkb.js";import"./index-DkHUl5W9.js";import"./vendor-helmet-D7xF1OWu.js";import"./vendor-player-CvrARvQq.js";import"./vendor-charts-D3cbwUm-.js";const N=({images:e})=>{const[a,s]=m.useState(0),r=()=>{s(l=>l===0?e.length-1:l-1)},i=()=>{s(l=>l===e.length-1?0:l+1)};return t.jsx("div",{className:"relative w-full max-w-5xl mx-auto",children:t.jsxs("div",{className:"relative aspect-[16/9] overflow-hidden rounded-xl",children:[t.jsx(n,{mode:"wait",children:t.jsx(c.img,{src:e[a].src,alt:e[a].title,className:"absolute w-full h-full object-contain bg-gray-900",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},loading:"lazy"},a)}),t.jsx("button",{onClick:r,className:"absolute left-4 top-1/2 -translate-y-1/2 bg-white/80 hover:bg-white rounded-full p-2 backdrop-blur-sm transition-colors","aria-label":"Previous image",children:t.jsx(h,{className:"w-6 h-6 text-gray-900"})}),t.jsx("button",{onClick:i,className:"absolute right-4 top-1/2 -translate-y-1/2 bg-white/80 hover:bg-white rounded-full p-2 backdrop-blur-sm transition-colors","aria-label":"Next image",children:t.jsx(u,{className:"w-6 h-6 text-gray-900"})}),t.jsxs("div",{className:"absolute bottom-0 left-0 right-0 bg-black/50 text-white p-4 backdrop-blur-sm",children:[t.jsx("h3",{className:"text-xl font-semibold mb-1",children:e[a].title}),t.jsx("p",{className:"text-sm text-gray-200",children:e[a].description})]}),t.jsx("div",{className:"absolute bottom-20 left-0 right-0 flex justify-center gap-2",children:e.map((l,o)=>t.jsx("button",{onClick:()=>s(o),className:`w-2 h-2 rounded-full transition-colors ${o===a?"bg-white":"bg-white/50"}`,"aria-label":`Go to image ${o+1}`},o))})]})})};export{N 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.