"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");;/* empty css                                                                         */;/* empty css                                                                                     */;/* empty css                                                                                     */const g=require("swiper/modules"),l=require("swiper/react"),w=require("../../components/Icon/constants.cjs.js"),j=require("../../components/Label/Label.cjs.js"),B=require("../../components/TextButton/TextButton.cjs.js"),_=require("../../utils/useSwiper/useSwiper.cjs.js"),s=require("../../src/modules/FollowTheScience/followTheScience.module.css"),a=require("../../components/ProgressButton/ProgressButton.cjs.js"),q=require("../../components/Benefit/Benefit.cjs.js"),v=[g.Navigation];function N({labelText:d,benefits:u}){const{setIsEnd:h,isEnd:n,isBeginning:t,hideNav:o,handleSlideChange:p,handlePrevClick:r,handleNextClick:c,onSwiperInit:m,handleSwiperResize:x}=_.useSwiper();return e.jsxs("section",{className:s.container,children:[e.jsxs("div",{className:s.heading,children:[e.jsx(j.Label,{color:"white",size:"lg",children:d}),!o&&e.jsx("div",{className:s.progressButtons,"data-device":"desktop",children:e.jsx(a.ProgressButton,{left:{onClick:r,disabled:t},right:{disabled:n,onClick:c}})})]}),e.jsx("div",{className:s.content,children:e.jsx(l.Swiper,{onSwiper:m,onResize:x,onSlideChange:p,onReachEnd:()=>h(!0),modules:v,spaceBetween:0,slidesPerView:"auto",className:s.swiper,children:u.map((i,S)=>e.jsx(l.SwiperSlide,{className:s.swiperSlide,children:e.jsx(q.Benefit,{title:i.title,description:i.description,button:i.link&&i.buttonText?e.jsx(B.TextButton,{as:"a",size:"sm",color:"white",suffixIcon:w.EIconName.ARROW_FORWARD,href:i.link,children:i.buttonText}):void 0})},S))})}),!o&&e.jsx("div",{className:s.progressButtons,"data-device":"mobile",children:e.jsx(a.ProgressButton,{left:{onClick:r,disabled:t},right:{onClick:c,disabled:n}})})]})}exports.FollowTheScience=N;
