"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("../../src/modules/ContentHighlight/contentHighlight.module.css"),d=require("../../components/YouTubeEmbed/YouTubeEmbed.cjs.js"),o=require("../../components/WistiaEmbed/WistiaEmbed.cjs.js"),n=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),a=require("../../components/Typography/Typography.cjs.js"),c=require("../../components/Button/Button.cjs.js"),m=({label:r,title:t,content:e})=>{const l=e.type==="youtube"||e.type==="wistia";return i.jsx("section",{className:s.root,children:i.jsxs("div",{className:s.container,children:[i.jsx("div",{className:s.topContainer,children:i.jsx(n.HighlightedTitle,{title:t,label:r,as:"div",defaultVariant:"displayMd",className:s.title})}),i.jsxs("div",{className:s.card,children:[l&&i.jsx("div",{className:s.videoContainer,children:e.type==="youtube"?i.jsx(d.YouTubeEmbed,{videoId:e.videoId||"",className:s.video}):i.jsx(o.WistiaEmbed,{videoId:e.videoId||"",className:s.video})}),e.image&&i.jsx("img",{src:e.image,alt:e.title,className:s.image}),i.jsxs("div",{className:s.content,children:[i.jsx(a.Typography,{defaultVariant:"headingLg",mobileVariant:"headingSm",className:s.contentTitle,children:e.title}),e.description&&i.jsx(a.Typography,{defaultVariant:"bodySm",mobileVariant:"bodySm",className:s.description,children:e.description}),e.buttonLabel&&e.link&&i.jsx("div",{className:s.button,children:i.jsx(c.Button,{as:"a",href:e.link,target:"_blank",rel:"noopener noreferrer",size:"sm",children:e.buttonLabel})})]})]})]})})};exports.ContentHighlight=m;
