import{r as t,h as i,H as s,g as e}from"./p-2b0a6102.js";import{g as h,a as n}from"./p-8df57f83.js";import"./p-14616bce.js";const d=":where(bs-input-field){display:block;width:100%}";const r=class{constructor(i){t(this,i);this.attrs={};this.disabled=false;this.error=undefined;this.errorMsg=undefined;this.hint=undefined;this.hints=undefined;this.inputId=undefined;this.label=undefined;this.passAttrs="";this.placeholder=undefined;this.required=undefined;this.type="text";this.value=undefined;this.hintId=null}get hintMsg(){return this.errorMsg||this.hint||this.hintDeprecated||undefined}get hintDeprecated(){var t,i;return((i=(t=this.hints)===null||t===void 0?void 0:t.join)===null||i===void 0?void 0:i.call(t,"\n"))||this.hints}get inputIdAttr(){return this.inputId||this.inputIdGen}componentWillLoad(){this.inputIdGen=this.inputId||h();this.hintId=this.hintMsg?h():null;this.attrs=n(this.hostEl,["autocomplete","max","min","maxlength","minlength","name",...this.passAttrs.split(",")])}render(){return i(s,null,this.label&&i("bs-label",{for:this.inputIdAttr,disabled:this.disabled,required:this.required},this.label),i("bs-input",Object.assign({disabled:this.disabled,error:this.error,"hint-id":this.hintId,"input-id":this.inputIdAttr,"pass-attrs":this.passAttrs,placeholder:this.placeholder,required:this.required,type:this.type,value:this.value},this.attrs)),this.hintMsg&&i("bs-field-details",{error:this.error,"error-msg":this.errorMsg,hint:this.hint||this.hintDeprecated,"hint-id":this.hintId}))}get hostEl(){return e(this)}};r.style=d;export{r as bs_input_field};
//# sourceMappingURL=p-6bad16fd.entry.js.map