"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),p=require("../../components/StudyGridCard/StudyGridCard.cjs.js"),g=require("../../components/Typography/Typography.cjs.js"),t=require("../../src/modules/Studies/studies.module.css"),m=require("../../components/Button/Button.cjs.js");function y({title:d,description:n,articles:l,allStudiesLink:o,trackingEvent:a,trackingLocation:u}){const c=l.reduce((s,i)=>{const r=s[s.length-1];return r.length<2?r.push(i):s.push([i]),s},[[]]);return e.jsx("section",{className:t.root,children:e.jsxs("div",{className:t.container,children:[e.jsxs("div",{className:t.header,children:[e.jsx(h.HighlightedTitle,{title:d}),n&&e.jsx(g.Typography,{as:"p",defaultVariant:"bodyLg",className:t.description,children:n}),o&&e.jsx("div",{children:e.jsx(m.Button,{as:"a",variant:"muted",size:"lg",href:o,children:"view all studies"})})]}),e.jsx("div",{className:t.articles,children:c.map((s,i)=>e.jsx("div",{className:t.row,children:s.map(r=>e.jsx(p.StudyGridCard,{...r,trackingEvent:a,trackingLocation:u},r.title))},i))})]})})}exports.Studies=y;
