import{r as e,h as l,F as a,H as s,g as i}from"./p-1617f73a.js";import{b as t}from"./p-51b0bb94.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-red-500)}bs-label :where(label[data-disabled],[data-disabled] [data-required],[data-disabled] label){--label-color:var(--bs-ink-light)}.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(l){e(this,l);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 l(s,{class:this.hide?"visually-hidden":""},l("label",Object.assign({"data-disabled":this.disabled,htmlFor:this.for},this.attrs),l("span",{"data-slot":true},l("slot",null)),this.required&&l(a,null,l("span",{"data-required":true,"aria-hidden":"true"}," *"),l("span",{class:"visually-hidden"},"required"))))}get hostEl(){return i(this)}};n.style=b;export{n as bs_label};
//# sourceMappingURL=p-807ba1d9.entry.js.map