"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),s=require("../../utils/cn/cn.cjs.js"),c=require("./assets/program_card_bg.png.cjs.js"),n=require("../../src/components/ProgramCard/programCard.module.css"),m=require("../Typography/Typography.cjs.js"),u=require("../Icon/Icon.cjs.js"),d=require("../Icon/constants.cjs.js"),g=a=>{if(a.type==="coming_soon")return{title:{label:a.label||"Coming Soon",variant:"headingLg",mobileVariant:"headingXxs"}};if(a.type==="active"){const{label:e,image:r,link:i,isRounded:o,withArrow:l}=a;return{title:{label:e,variant:"displayXs",mobileVariant:"headingSm"},image:r||c.default,isRounded:o,withArrow:l,link:i}}return null};function y(a){const e=g(a);if(!e)return null;const r=e.link?"a":"div";return t.jsxs(r,{href:e.link||"",className:s.cn(n.card,{[n.cardRounded]:e.isRounded}),"data-type":a.type,style:{backgroundImage:e.image?`url(${e.image})`:void 0},children:[t.jsx(m.Typography,{as:"p",defaultVariant:e.title.variant,mobileVariant:e.title.mobileVariant,className:n.label,children:e.title.label}),e.withArrow&&t.jsx(u.Icon,{name:d.EIconName.ARROW_FORWARD_THIN,className:n.arrow})]})}exports.ProgramCard=y;
