"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),o=require("../../../../utils/cn/cn.cjs.js"),e=require("../../../../src/components/AdvancedGallery/components/ImageGalleryPagination/imageGalleryPagination.module.css"),r=require("../../../Icon/Icon.cjs.js"),m=require("../../../Icon/constants.cjs.js"),u=({items:s,activeIndex:t,className:i,onSelect:l})=>a.jsx("div",{className:o.cn(e.root,i),children:s.map((n,c)=>a.jsxs("button",{type:"button",className:o.cn(e.thumbnailButton,{[e.active]:c===t}),onClick:()=>l(c),children:[a.jsx("img",{src:n.mediaType==="image"?n.url:n.preview,alt:`thumbnail ${c+1}`,className:e.thumbnailImage}),n.mediaType==="video"&&n.videoType==="complex"&&a.jsx("div",{className:e.customPlayButton,children:a.jsx(r.Icon,{className:e.icon,name:m.EIconName.ALT_PLAY})})]},c))});exports.ImageGalleryPagination=u;
