"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");;/* empty css                                                                         */;/* empty css                                                                                     */;/* empty css                                                                                     */const h=require("swiper/modules"),n=require("swiper/react"),m=require("../../components/Cursor/Cursor.cjs.js"),S=require("../../components/ProgramCard/ProgramCard.cjs.js"),j=require("../../components/Typography/Typography.cjs.js"),x=require("../../utils/useSwiper/useSwiper.cjs.js"),r=require("../../src/modules/TargetedPrograms/targetedPrograms.module.css"),t=require("../../components/ProgressButton/ProgressButton.cjs.js"),C=[h.Navigation];function P({title:a,cards:l}){const{setIsEnd:c,handleSlideChange:d,handlePrevClick:i,handleNextClick:o,onSwiperInit:u,handleSwiperResize:p}=x.useSwiper();return e.jsxs("section",{className:r.container,children:[e.jsxs("div",{className:r.heading,children:[e.jsx(j.Typography,{as:"h2",defaultVariant:"displayMd",mobileVariant:"headingXl",children:a}),e.jsx("div",{className:r.progressButtons,"data-device":"desktop",children:e.jsx(t.ProgressButton,{left:{onClick:i},right:{onClick:o}})})]}),e.jsx("div",{className:r.carouselArea,children:e.jsx(n.Swiper,{onSwiper:u,onResize:p,onSlideChange:d,onReachEnd:()=>c(!0),modules:C,spaceBetween:16,slidesPerView:"auto",className:r.swiper,loop:!0,slidesOffsetBefore:8,children:l.filter(s=>s.type!=="coming_soon").map((s,g)=>e.jsx(n.SwiperSlide,{className:r.swiperSlide,children:e.jsx(m.Cursor,{label:"Learn More",colorScheme:"light",children:e.jsx(S.ProgramCard,{...s})})},g))})}),e.jsx("div",{className:r.progressButtons,"data-device":"mobile",children:e.jsx(t.ProgressButton,{left:{onClick:i},right:{onClick:o}})})]})}exports.TargetedPrograms=P;
