"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("react"),i=require("../../../../utils/cn/cn.cjs.js"),n=require("../../../../src/modules/ProgramDetails/components/Features/features.module.css"),r=require("../../../../components/Typography/Typography.cjs.js"),p=require("../../../../components/IconBracket/IconBracket.cjs.js"),u=require("../../../../components/Label/Label.cjs.js"),m=({features:l})=>{const[t,o]=h.useState(0);return e.jsx("div",{className:n.root,children:l.map((s,c)=>e.jsxs("div",{className:n.feature,children:[e.jsxs("button",{className:n.header,onClick:()=>o(a=>c===a?null:c),children:[e.jsx(r.Typography,{as:"h4",defaultVariant:"headingSm",mobileVariant:"headingSm",weight:"regular",children:s.label}),s.description&&e.jsx(p.IconBracket,{variant:t===c?"close":"plus",size:"sm"})]}),e.jsx("div",{className:i.cn(n.content,t===c&&n.contentActive),children:e.jsxs("div",{className:i.cn(n.contentInner),children:[s.description&&e.jsx(r.Typography,{as:"p",defaultVariant:"bodyXs",weight:"regular",children:s.description}),s.info&&e.jsxs("div",{className:n.info,children:[e.jsx(r.Typography,{defaultVariant:"bodyXs",children:s.info.label}),e.jsx("div",{className:n.labels,children:s.info.labels.map((a,d)=>e.jsx(u.Label,{color:"black",size:"sm",children:a},`${a}-${d}`))})]})]})})]},`${s.label}-${c}`))})};exports.Features=m;
