import{r as e,h as a,F as l,H as s,g as i}from"./p-2b0a6102.js";import{a as t}from"./p-8df57f83.js";import"./p-14616bce.js";const b="bs-label{display:inline-block;width:100%}bs-label :where(label,legend){--label-color:var(--bs-ink-base);color:var(--label-color);display:inline-block;font-size:var(--bs-text-sm);font-weight:600;line-height:var(--bs-leading-base);width:100%}bs-label :where([data-required]){color:var(--bs-ink-red)}bs-label :where(label[data-disabled],[data-disabled] [data-required],[data-disabled] label){--label-color:var(--bs-ink-disabled)}.bs-boolean label,.bs-boolean bs-label{font-size:var(--bs-text-base);font-weight:400;line-height:1.5;width:auto}.bs-boolean bs-label label{padding-inline-end:0.5em}.bs-boolean input+bs-label label{padding-inline:0.5em 0}.bs-boolean[data-size=sm] bs-label,.bs-boolean[data-size=sm] bs-label label{font-size:var(--bs-text-xs);line-height:100%}";const n=class{constructor(a){e(this,a);this.attrs={};this.disabled=undefined;this.for=undefined;this.hide=undefined;this.passAttrs="";this.required=undefined}componentWillLoad(){this.attrs=t(this.hostEl,this.passAttrs.split(","))}render(){return a(s,{class:this.hide?"visually-hidden":""},a("label",Object.assign({"data-disabled":this.disabled,htmlFor:this.for},this.attrs),a("span",{"data-slot":true},a("slot",null)),this.required&&a(l,null,a("span",{"data-required":true,"aria-hidden":"true"}," *"),a("span",{class:"visually-hidden"},"required"))))}get hostEl(){return i(this)}};n.style=b;export{n as bs_label};
//# sourceMappingURL=p-c7321392.entry.js.map