"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../../../../utils/cn/cn.cjs.js"),n=require("../../../../src/pageComponents/Footer/components/AccordionFooterItem/accordionFooterItem.module.css"),c=require("../../../../components/Typography/Typography.cjs.js"),u=require("../../../../components/Icon/Icon.cjs.js"),p=require("../../../../components/Icon/constants.cjs.js"),j=({title:a,content:i,isOpen:t,index:o,onClick:l,disableLinks:d=!1})=>{const m=s=>{d&&s.preventDefault()};return e.jsxs("div",{className:n.itemRoot,children:[e.jsxs("div",{className:n.itemHeader,onClick:()=>l(o),children:[e.jsx(c.Typography,{defaultVariant:"labelMd",mobileVariant:"labelMd",emphasis:!0,weight:"regular",children:a}),e.jsx("div",{className:n.closeButtonWrapper,children:e.jsx("span",{className:r.cn(n.arrow,{[n.arrowRotated]:t}),children:e.jsx(u.Icon,{name:p.EIconName.CHEVRON_DOWN})})})]}),e.jsx("div",{className:r.cn(n.itemContent,{[n.itemContentOpen]:t}),children:e.jsx("div",{className:n.itemContentInner,children:e.jsx("ul",{className:n.linkList,children:i.map((s,h)=>e.jsx("li",{className:n.linkItem,children:e.jsx("a",{href:s.href,className:n.link,onClick:m,children:e.jsx(c.Typography,{defaultVariant:"bodyMd",children:s.title})})},h))})})})]})};exports.AccordionFooterItem=j;
