import{r as t,h as i,H as s,g as e}from"./p-1617f73a.js";import{v as h,a as r}from"./p-51b0bb94.js";const n="bs-textarea-field{display:block;width:100%}";const a=class{constructor(i){t(this,i);this.attrs={};this.charMax=undefined;this.disabled=false;this.error=undefined;this.hints=undefined;this.label=undefined;this.placeholder=undefined;this.required=undefined;this.value="";this.passAttrs="";this.hintId=null}get charCount(){var t;return((t=this.value)===null||t===void 0?void 0:t.length)||0}componentWillLoad(){this.hintId=this.hints?h():null;this.attrs=r(this.hostEl,["autocomplete","maxlength","minlength","name",...this.passAttrs.split(",")])}render(){return i(s,null,i("bs-field-layout",{disabled:this.disabled,error:this.error,hints:this.hints,label:this.label,labelFor:this.attrs.id,required:this.required,charCount:this.charCount,charMax:this.charMax,hintId:this.hintId},i("bs-textarea",Object.assign({disabled:this.disabled,error:this.error,placeholder:this.placeholder,required:this.required,value:this.value,hintId:this.hintId},this.attrs))))}get hostEl(){return e(this)}};a.style=n;export{a as bs_textarea_field};
//# sourceMappingURL=p-92e49df7.entry.js.map