import{r as d,h as t,t as r,H as h,w as o}from"./index-BeCeuELg.js";import{w as c}from"./validation-4dfd3138-ComY-4MF.js";import{a as v}from"./label-3757689e-D7ErDa5R.js";const s=["h1","h2","h3","h4","h5","h6","strong"],_=(e,i)=>{o(e,"_variant",a=>typeof a=="string"&&s.includes(a),new Set([`KoliBriHeadingVariant {${s.join(", ")}`]),i)},f=class{constructor(e){d(this,e),this.renderHeadline=(i,a)=>{const n=typeof a=="number"&&a>0&&a<=6?`h${a}`:"strong",l=this._variant||n;return t(n,{class:{headline:!0,[`headline-${l}`]:!0}},i,t("slot",{name:"expert"}))},this._label=void 0,this._level=1,this._secondaryHeadline=void 0,this._variant=void 0,this.state={_label:"",_level:1}}validateLabel(e){v(this,e)}validateLevel(e){c(this,e)}validateSecondaryHeadline(e){r(this,"_secondaryHeadline",e)}validateVariant(e){_(this,e)}componentWillLoad(){this.validateLabel(this._label),this.validateLevel(this._level),this.validateSecondaryHeadline(this._secondaryHeadline),this.validateVariant(this._variant)}render(){return t(h,{key:"22f36aaef40f3efe39f699ee910d119aec4231da",class:"kol-heading-wc"},typeof this.state._secondaryHeadline=="string"&&this.state._secondaryHeadline.length>0?t("hgroup",null,this.renderHeadline(this.state._label,this.state._level),t("p",{class:"secondary-headline"},this.state._secondaryHeadline)):this.renderHeadline(this.state._label,this.state._level))}static get watchers(){return{_label:["validateLabel"],_level:["validateLevel"],_secondaryHeadline:["validateSecondaryHeadline"],_variant:["validateVariant"]}}};export{f as kol_heading_wc};
//# sourceMappingURL=kol-heading-wc.entry-Dhbuw813.js.map
