/*!
 * KoliBri - The accessible HTML-Standard
 */
import{w as s}from"./common-Dd0zJQbD.js";import{v as t}from"./spell-check-B9ot-4t-.js";import{v as e}from"./suggestions-B-jLvT4L.js";import{I as o}from"./controller-BbPdbRY2.js";const i=["text","search","url","tel"],r=t=>"string"==typeof t&&i.includes(t),a=(t,o)=>{s(t,"_type",r,new Set(i),o)};class l extends o{constructor(t,o,e){super(t,o,e),this.component=t}validateSuggestions(t){e(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class c extends l{constructor(t,o,e){super(t,o,e),this.hasError=!1,this.component=t}validateSpellCheck(o){t(this.component,o)}validateType(t){a(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSpellCheck(this.component._spellCheck),this.validateType(this.component._type)}}export{l as I,c as a};