/*!
 * KoliBri - The accessible HTML-Standard
 */
"use strict";var common=require("./common-Cd2qH809.js"),spellCheck=require("./spell-check-Bkq4G9L7.js"),suggestions=require("./suggestions-BjiW0xio.js"),controller=require("./controller-CqxK7O88.js");const inputTextTypeOptions=["text","search","url","tel"],isInputTextTypePropType=e=>"string"==typeof e&&inputTextTypeOptions.includes(e),validateTypeInputText=(e,t)=>{common.watchValidator(e,"_type",isInputTextTypePropType,new Set(inputTextTypeOptions),t)};class InputTextEmailController extends controller.InputPasswordController{constructor(e,t,o){super(e,t,o),this.component=e}validateSuggestions(e){suggestions.validateSuggestions(this.component,e)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class InputTextController extends InputTextEmailController{constructor(e,t,o){super(e,t,o),this.hasError=!1,this.component=e}validateSpellCheck(e){spellCheck.validateSpellCheck(this.component,e)}validateType(e){validateTypeInputText(this.component,e)}componentWillLoad(){super.componentWillLoad(),this.validateSpellCheck(this.component._spellCheck),this.validateType(this.component._type)}}exports.InputTextController=InputTextController,exports.InputTextEmailController=InputTextEmailController;