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