/*!
 * KoliBri - The accessible HTML-Standard
 */
import{b as t,w as i,k as s,i as a}from"./prop.validators-db70e3c4.js";import{I as e}from"./controller-icon-b6046f95.js";const h=(e,a)=>{t(e,"_hasCounter",a)},o=["default","visibility-toggle"],l=(t,e)=>{i(t,"_variant",(t=>"string"==typeof t&&o.includes(t)),new Set(o),e)};class r extends e{constructor(t,e,a){super(t,e,a),this.component=t}validateAutoComplete(t){i(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateHasCounter(t){h(this.component,t)}validateVariant(t){l(this.component,t)}validateMaxLength(t){s(this.component,"_maxLength",t,{min:0})}validatePattern(t){a(this.component,"_pattern",t)}validatePlaceholder(t){a(this.component,"_placeholder",t)}validateReadOnly(e){t(this.component,"_readOnly",e)}validateRequired(e){t(this.component,"_required",e)}validateValue(t){a(this.component,"_value",t),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateHasCounter(this.component._hasCounter),this.validateMaxLength(this.component._maxLength),this.validatePattern(this.component._pattern),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateValue(this.component._value),this.validateVariant(this.component._variant)}}export{r as I,h as v};