import{a0 as r,aR as d,j as t,a1 as u,a3 as x,Y as o,ap as h,K as f}from"./main-D6SjkSWq.js";import{K as b}from"./KeyboardArrowRight-Cz-JHdeb.js";function g(a){const{close:n}=r(),{image:c,images:e}=a,[l,s]=d(a.activeIndex,a.defaultActiveIndex,a.onActiveIndexChange),i=c||(e==null?void 0:e[l]);return t.jsx(u,{size:"fullscreenTakeover",background:"bg-black/80",children:t.jsxs(x,{padding:"p-0",className:"h-full w-full",children:[t.jsx(o,{size:"lg",color:"elevated",className:"absolute right-0 top-0 z-20 text-white",onClick:()=>{n()},children:t.jsx(h,{})}),t.jsxs("div",{className:"relative flex h-full w-full items-center justify-center p-40",children:[e!=null&&e.length?t.jsx(o,{size:"lg",color:"white",variant:"flat",className:"absolute bottom-0 left-20 top-0 my-auto",disabled:l<1,onClick:()=>{s(l-1)},children:t.jsx(f,{})}):null,t.jsx("img",{src:i,alt:"",className:"max-h-full w-auto rounded-panel object-contain shadow"}),e!=null&&e.length?t.jsx(o,{size:"lg",color:"white",variant:"flat",className:"absolute bottom-0 right-20 top-0 my-auto",disabled:l+1===(e==null?void 0:e.length),onClick:()=>{s(l+1)},children:t.jsx(b,{})}):null]})]})})}export{g as I};
