"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("../../components/StudyGridCard/StudyGridCard.cjs.js"),h=require("../../utils/cn/cn.cjs.js"),t=require("../../src/modules/Curiosity/curiosity.module.css"),y=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),r=require("../../components/Typography/Typography.cjs.js"),p=require("../../components/Button/Button.cjs.js"),u=require("../../components/InfiniteScroll/InfiniteScroll.cjs.js"),j=({title:m,description:l,studies:a,indexed:i,trackingEvent:o,trackingLocation:c})=>e.jsxs("div",{className:h.cn(t.root,{[t.notIndexed]:!i}),children:[e.jsxs("div",{className:t.contentContainer,children:[e.jsxs("div",{className:t.containerHeader,children:[e.jsx(y.HighlightedTitle,{title:m,className:t.title,defaultVariant:"displayXl",mobileVariant:"displayXs"}),e.jsxs("div",{className:t.contentTextContainer,children:[l&&e.jsx(r.Typography,{defaultVariant:"bodyLg",mobileVariant:"bodySm",className:t.contentText,children:l}),e.jsx("div",{className:t.buttonContainer,children:e.jsx(p.Button,{as:"a",href:"/research",variant:"muted",size:"lg",children:"View all studies"})})]})]}),i&&e.jsxs("div",{className:t.dividerContainer,children:[e.jsx(r.Typography,{defaultVariant:"labelMd",children:i.number}),e.jsx("div",{className:t.divider}),e.jsx(r.Typography,{defaultVariant:"labelMd",emphasis:!0,children:i.label})]})]}),e.jsxs("div",{className:t.containerBottom,children:[e.jsx(u.InfiniteScroll,{items:a,speed:50,slowOnTouch:!0,enableManualScroll:!0,contentClassName:t.infiniteScrollContent,itemClassName:t.infiniteScrollItem,rootClassName:t.infiniteScrollRoot,renderItem:(n,s)=>e.jsx(d.StudyGridCard,{...n,compressed:!0,trackingEvent:o,trackingLocation:c},s)}),e.jsx(u.InfiniteScroll,{items:a,speed:50,direction:"right",slowOnTouch:!0,enableManualScroll:!0,contentClassName:t.infiniteScrollContent,itemClassName:t.infiniteScrollItemTwo,renderItem:(n,s)=>e.jsx(d.StudyGridCard,{...n,compressed:!0,trackingEvent:o,trackingLocation:c},s)})]})]});exports.Curiosity=j;
