/*!
 * KoliBri - The accessible HTML-Standard
 */
"use strict";const tslib_es6=require("./tslib.es6-16e4524f.js"),index=require("./index-4e35d174.js"),clsx=require("./clsx-dd4d6dd1.js"),MIN_HEADING_LEVEL=1,MAX_HEADING_LEVEL=6;function isValidHeadingLevel(e){return e>=MIN_HEADING_LEVEL&&e<=6}function getHeadlineTag(e){return isValidHeadingLevel(e)?`h${e}`:"strong"}function getSubHeadlineTag(e){return 1===e?"span":getHeadlineTag(e)}const KolHeadlineFc=(e,s)=>{var{class:l,level:n=MIN_HEADING_LEVEL,variant:a}=e,i=tslib_es6.__rest(e,["class","level","variant"]);const c=getHeadlineTag(n),d=a||c;return index.h(c,Object.assign({class:clsx.clsx("headline",`headline-${d}`,l)},i),s)},KolSecondaryHeadlineFc=(e,s)=>{var{class:l,level:n=MIN_HEADING_LEVEL}=e,a=tslib_es6.__rest(e,["class","level"]);const i=getSubHeadlineTag(n+1);return index.h(i,Object.assign({class:clsx.clsx("secondary-headline",l)},a),s)},KolHeadingFc=(e,s)=>{var{secondaryHeadline:l,level:n=MIN_HEADING_LEVEL,class:a,HeadingGroupProps:i={},SecondaryHeadlineProps:c={}}=e,d=tslib_es6.__rest(e,["secondaryHeadline","level","class","HeadingGroupProps","SecondaryHeadlineProps"]);const r="kol-heading-wc",t=Object.assign({level:n},d);if(!l)return index.h(KolHeadlineFc,Object.assign({class:clsx.clsx(r,a)},t),s);const{class:o}=i,g=tslib_es6.__rest(i,["class"]),H=Object.assign({class:clsx.clsx(r,o)},g);return index.h("hgroup",Object.assign({},H),index.h(KolHeadlineFc,Object.assign({class:a},t),s),index.h(KolSecondaryHeadlineFc,Object.assign({level:n},c),l))},KolHeadingFc$1=KolHeadingFc;exports.KolHeadingFc=KolHeadingFc$1;