import{r as t,h as s,H as e}from"./p-1617f73a.js";const i=".bs-character-count{color:var(--bs-ink-base);font-size:var(--bs-text-xs);font-weight:400;text-align:right;white-space:nowrap}:where([disabled],[data-disabled])+.bs-character-count,:where([disabled],[data-disabled]) .bs-character-count,.bs-character-count:where([data-disabled]){color:var(--bs-gray-400)}.bs-character-count:where([data-error]){color:var(--bs-red-400)}";const a=class{constructor(s){t(this,s);this.charCount=undefined;this.charMax=undefined}render(){return s(e,{class:"bs-character-count","data-error":this.charCount>this.charMax},s("span",null,this.charCount||"0"," / ",this.charMax))}};a.style=i;const r="bs-field-layout{display:block}bs-field-layout .bs-field-details{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--bs-space-2);padding:0 0.75rem;margin-top:0.5rem}bs-field-layout :where(textarea,bs-textarea)+.bs-field-details{margin-top:0.25rem}bs-field-layout .bs-field-details :where(.bs-character-count:first-child){margin-left:auto}";const n=class{constructor(s){t(this,s);this.charCount=undefined;this.charMax=undefined;this.disabled=false;this.error=undefined;this.hints=undefined;this.label=undefined;this.labelFor=undefined;this.required=undefined;this.hintId=undefined}render(){return s(e,{"data-disabled":this.disabled},this.label&&s("bs-label",{for:this.labelFor,disabled:this.disabled,required:this.required},this.label),s("slot",null),(this.hints||this.charMax)&&s("div",{class:"bs-field-details"},this.hints&&s("bs-hint",{error:this.error,hintId:this.hintId,hints:this.hints}),this.charMax&&s("bs-character-count",{charCount:this.charCount,charMax:this.charMax})))}};n.style=r;const d="bs-hint{display:inline-block;min-width:0}bs-hint .bs-hint{min-width:0;color:var(--bs-ink-light);font-size:var(--bs-text-xs);padding:0;margin:0;list-style:none;overflow-wrap:break-word}bs-hint .bs-hint:where([data-error]){color:var(--bs-red-400)}";const h=class{constructor(s){t(this,s);this.error=undefined;this.hintId=undefined;this.hints=undefined}render(){const t=this.hints?Array.isArray(this.hints)?this.hints:[this.hints]:null;return s(e,null,s("ul",{id:this.hintId,class:"bs-hint","data-error":this.error,role:"list"},t.map((t=>s("li",null,t)))))}};h.style=d;export{a as bs_character_count,n as bs_field_layout,h as bs_hint};
//# sourceMappingURL=p-20dd86a4.entry.js.map