/*!
 * KoliBri - The accessible HTML-Standard
 */
import{v as s,I as t}from"./controller-cbe5ff75.js";import{w as e}from"./prop.validators-db70e3c4.js";import{v as o}from"./suggestions-bca6edb5.js";const i=["text","search","url","tel"];class r extends t{constructor(t,o,s){super(t,o,s),this.component=t}validateSuggestions(t){o(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class a extends r{constructor(t,o,s){super(t,o,s),this.hasError=!1,this.component=t}validateType(t){e(this.component,"_type",(t=>"string"==typeof t&&i.includes(t)),new Set([`String {${i.join(", ")}`]),t)}validateHasCounter(t){s(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateType(this.component._type),this.validateHasCounter(this.component._hasCounter)}}export{r as I,a};