1import{n as I,j as e,t as m,r as l,y as k,o as f,S as N,h as P,G as V}from"./client-CW2TRXQx.js";function E(s){const[n]=I("title");return e.jsx("div",{className:"w-full overflow-hidden image-gallery",children:e.jsxs("div",{className:m("grid-auto pt-10",s.items&&s.items?.length>3?"pb-6":"pb-10"),children:[!1,n&&!0&&e.jsx("div",{className:"col-span-12 flex items-end justify-between border-b pb-2 mb-4",children:e.jsx("h3",{className:"!type-title-s !my-0",dangerouslySetInnerHTML:{__html:n}})}),s.items&&e.jsx(_,{items:s.items,center:s.items.length<3?`lg:[&>div>div]:w-[calc(100%*(${s.items.length}/3))]`:""})]})})}E.displayName="Block(content/image-gallery)";const _=({items:s,center:n})=>{const c=l.useRef(null),r=l.useRef(null),[x,b]=l.useState(1),[d,u]=l.useState(1),[h,g]=l.useState(!1),[w,p]=l.useState(!0),[v,j]=l.useState(!1),y=k(),a=t=>{p(t.isBeginning),j(t.isEnd)};l.useEffect(()=>{r.current&&g(!!r.current.closest(".exhibition-accordion"))},[]);const o=t=>{const i=c.current;if(!i)return;const S=Math.max(0,Math.min(x-1,t-1));i.slideToLoop(S,300)};return l.useEffect(()=>{s&&(u(1),b(s.length),o(1))},[s]),e.jsxs("div",{ref:r,className:m(`scontainer flex flex-col [&>div]:!flex [&>div]:!overflow-visible ${n} [&>div>div]:m-auto`,y==="page"?"col-span-12":"col-span-12 md:col-span-10 md:col-start-2"),children:[s.length>3&&e.jsxs("div",{className:"w-full flex items-center justify-between mb-4",children:[e.jsx("button",{type:"button",disabled:w,className:"hover:text-hero disabled:hover:text-black disabled:opacity-10",onClick:()=>o(d-1),children:e.jsx("i",{className:"block w-[20px] h-[20px] [&_svg]:w-full [&_svg]:h-full rotate-180",children:e.jsx(f,{name:"arrowCircle"})})}),e.jsx("button",{type:"button",disabled:v,className:"hover:text-hero disabled:hover:text-black disabled:opacity-10",onClick:()=>o(d+1),children:e.jsx("i",{className:"block w-[20px] h-[20px] [&_svg]:w-full [&_svg]:h-full",children:e.jsx(f,{name:"arrowCircle"})})})]}),e.jsx(N,{onInit:t=>{const i=t;c.current=i,a(i)},autoplay:{delay:4e3},watchSlidesProgress:!0,onSlideChange:t=>{u(t.realIndex+1),a(t)},onResize:a,onBreakpoint:a,a11y:{enabled:!1},keyboard:{enabled:!1},mousewheel:{forceToAxis:!0},breakpoints:h?{0:{slidesPerView:2},600:{slidesPerView:2},900:{slidesPerView:2},1200:{slidesPerView:2},1600:{slidesPerView:3}}:{0:{slidesPerView:1.25},600:{slidesPerView:2.5},900:{slidesPerView:3},1200:{slidesPerView:4}},spaceBetween:32,injectStyles:[".swiper { overflow: visible }"],children:s.map((t,i)=>e.jsx(P,{children:e.jsx(V,{item:t})},i))},h?"accordion":"default")]})};export{E 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.