"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),l=require("../../utils/cn/cn.cjs.js"),e=require("../../src/pageComponents/TreatmentsHero/treatmentsHero.module.css"),o=require("../../components/Typography/Typography.cjs.js"),d=require("./components/TreatmentHeroCard/TreatmentHeroCard.cjs.js"),h=require("../../components/Button/Button.cjs.js"),c=(n,t)=>n?r.jsx(h.Button,{variant:"primary",as:"a",href:n.link,size:t,children:n.text}):null,m=({title:n,description:t,button:a,cards:i})=>r.jsxs("section",{className:e.root,"data-type":"hero",children:[r.jsx("div",{className:l.cn(e.row,e.headerContainer),children:r.jsxs("div",{className:e.headerContent,children:[r.jsxs("div",{className:e.headerText,children:[r.jsx(o.Typography,{as:"h1",defaultVariant:"displayMd",mobileVariant:"headingXl",weight:"regular",children:n}),t&&r.jsx(o.Typography,{as:"p",defaultVariant:"bodyLg",mobileVariant:"bodySm",weight:"regular",children:t})]}),a&&r.jsx("div",{className:l.cn(e.headerButton,e.mobile),children:c(a,"md")}),a&&r.jsx("div",{className:l.cn(e.headerButton,e.desktop),children:c(a,"lg")})]})}),!!(i!=null&&i.length)&&r.jsx("div",{className:l.cn(e.row,e.cardsContainer),children:i.map(s=>r.jsx(d.TreatmentHeroCard,{title:s.title,link:s.link,image:s.image},s.link))})]});exports.TreatmentsHero=m;
