"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("swiper/modules"),s=require("swiper/react"),P=require("../../utils/useSwiper/useSwiper.cjs.js");;/* empty css                                                                         */;/* empty css                                                                                     */;/* empty css                                                                                     */const r=require("../../src/components/ProductPairs/productPairs.module.css"),m=require("../ProductGalleryCard/ProductGalleryCard.cjs.js"),w=require("../ProgressButton/ProgressButton.cjs.js"),g=[h.Navigation],j=({productCards:i})=>{const{isBeginning:n,isEnd:l,setIsEnd:o,handleSlideChange:t,handlePrevClick:a,handleNextClick:c,onSwiperInit:d,handleSwiperResize:u}=P.useSwiper();return e.jsxs("div",{className:r.root,children:[e.jsx("div",{className:r.carouselArea,children:e.jsx(s.Swiper,{onSwiper:d,onResize:u,onSlideChange:t,onReachEnd:()=>o(!0),modules:g,spaceBetween:0,slidesPerView:"auto",className:r.swiper,children:i.slice(0,2).map((p,S)=>e.jsx(s.SwiperSlide,{className:r.swiperSlide,children:e.jsx("div",{className:r.card,children:e.jsx(m.ProductGalleryCard,{...p,isHoverable:!1})})},S))})}),e.jsx("div",{className:r.swiperControlsMobile,children:e.jsx(w.ProgressButton,{left:{disabled:n,onClick:a},right:{disabled:l,onClick:c}})})]})};exports.ProductPairs=j;
