/*!
 * KoliBri - The accessible HTML-Standard
 */
import{w as s,a9 as t,aa as a,a2 as e}from"./index-0489af72.js";import{I as i}from"./controller-a4e8cbd2.js";class o extends i{constructor(t,o,s){super(t,o,s),this.component=t}validateSuggestions(t){e(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class r extends o{constructor(t,o,s){super(t,o,s),this.hasError=!1,this.component=t}validateType(o){s(this.component,"_type",(o=>"string"==typeof o&&t.includes(o)),new Set([`String {${t.join(", ")}`]),o)}validateHasCounter(t){a(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateType(this.component._type),this.validateHasCounter(this.component._hasCounter)}}export{o as I,r as a};