import{a as e,c as t,l as n}from"./preact.module-CNakwbc9.js";import{d as r,p as i}from"./hooks.module-BrXTvcfS.js";import{R as a}from"./content_renderer-DOj8g78V.js";import{t as o}from"./jsxRuntime.module-Cao1NCKs.js";n(),r();function s({className:e,highlightOnHover:t,children:n,...r}){return o(`div`,{...r,className:a(`tn-card-frame`,e,{"tn-card-highlight-on-hover":t}),children:n})}function c(e){return o(`div`,{className:a(`tn-card`,e.className),children:[e.heading&&o(`h5`,{class:`tn-card-heading`,children:e.heading}),o(`div`,{className:`tn-card-body`,children:e.children})]})}var l=t(void 0);function u(t){let n=i(l),r=(n&&n.nestingLevel+1)??0;return o(e,{children:[o(`section`,{className:a(`tn-card-section`,t.className,{"tn-card-section-nested":r>0,"tn-card-highlight-on-hover":t.highlightOnHover||t.onAction,"tn-no-padding":t.noPadding}),style:{"--tn-card-section-nesting-level":r||null},onClick:t.onAction,children:t.children}),t.subSectionsVisible&&t.subSections&&o(l.Provider,{value:{nestingLevel:r},children:t.subSections})]})}export{s as n,u as r,c as t};