import{w as i}from"./index-CekivK6a.js";import{v as p}from"./spell-check-DrU5XI1o-jq5sNsA-.js";import{v as a}from"./suggestions-Bufr76At-BKZhiSne.js";import{I as l}from"./controller-vOxat2Sj-ClC1HciK.js";const n=["text","search","url","tel"],r=e=>typeof e=="string"&&n.includes(e),c=(e,t)=>{i(e,"_type",r,new Set(n),t)};class h extends l{constructor(t,o,s){super(t,o,s),this.component=t}validateSuggestions(t){a(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class v extends h{constructor(t,o,s){super(t,o,s),this.hasError=!1,this.component=t}validateSpellCheck(t){p(this.component,t)}validateType(t){c(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSpellCheck(this.component._spellCheck),this.validateType(this.component._type)}}export{h as I,v as a};
//# sourceMappingURL=controller-D9ua2tDQ-DsqiYxYi.js.map
