/*!
 * KoliBri - The accessible HTML-Standard
 */
import{w as watchValidator}from"./common.js";import{v as validateSpellCheck}from"./spell-check.js";import{v as validateSuggestions}from"./suggestions.js";import{I as InputPasswordController}from"./controller5.js";const inputTextTypeOptions=["text","search","url","tel"],isInputTextTypePropType=t=>"string"==typeof t&&inputTextTypeOptions.includes(t),validateTypeInputText=(t,e)=>{watchValidator(t,"_type",isInputTextTypePropType,new Set(inputTextTypeOptions),e)};class InputTextEmailController extends InputPasswordController{constructor(t,e,o){super(t,e,o),this.component=t}validateSuggestions(t){validateSuggestions(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class InputTextController extends InputTextEmailController{constructor(t,e,o){super(t,e,o),this.hasError=!1,this.component=t}validateSpellCheck(t){validateSpellCheck(this.component,t)}validateType(t){validateTypeInputText(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSpellCheck(this.component._spellCheck),this.validateType(this.component._type)}}export{InputTextEmailController as I,InputTextController as a};