/*!
 * KoliBri - The accessible HTML-Standard
 */
"use strict";const controller=require("./controller-c17a58e8.js"),spellCheck=require("./spell-check-5c5eee25.js"),prop_validators=require("./prop.validators-96dfedce.js"),suggestions=require("./suggestions-cd0a843d.js"),inputTextTypeOptions=["text","search","url","tel"];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){prop_validators.watchValidator(this.component,"_type",(e=>"string"==typeof e&&inputTextTypeOptions.includes(e)),new Set([`String {${inputTextTypeOptions.join(", ")}`]),e)}componentWillLoad(){super.componentWillLoad(),this.validateSpellCheck(this.component._spellCheck),this.validateType(this.component._type)}}exports.InputTextController=InputTextController,exports.InputTextEmailController=InputTextEmailController;