import{_ as r}from"./InputModelBase-CeuTljlj.js";import{F as m}from"./FieldValidityExamples-CjjfBqdt.js";import{_ as t,o as a,a as n,e as d,f as u,t as s,d as i,z as p,C as y,n as f}from"./_plugin-vue_export-helper-DfQgE-tC.js";const v={name:"InputEmail",extends:r,mounted:function(){this.model.addValidityRule(m.email())}},b={class:"ainput-label"},B={key:0,class:"ainput-stern"},I=["autocomplete","name","required","disabled","readonly","placeholder"],V={key:0,class:"ainput-errormessage"};function E(e,o,F,$,k,q){return a(),n("div",{class:f(["ainput",{error:!e.model.valid,disabled:e.model.disabled}])},[d("label",null,[d("span",b,[u(s(e.model.label),1),e.model.required?(a(),n("span",B,"*")):i("",!0)]),p(d("input",{type:"text",class:"ainput-input",autocomplete:e.autocomplete,name:e.formElementName,required:e.model.required,disabled:e.model.disabled,readonly:e.model.readonly,placeholder:e.model.placeholder,"onUpdate:modelValue":o[0]||(o[0]=l=>e.model.value=l),onFocus:o[1]||(o[1]=(...l)=>e.onFocus&&e.onFocus(...l)),onBlur:o[2]||(o[2]=(...l)=>e.onBlur&&e.onBlur(...l)),onKeydown:o[3]||(o[3]=(...l)=>e.onKeydown&&e.onKeydown(...l)),onInvalid:o[4]||(o[4]=(...l)=>e.onInvalid&&e.onInvalid(...l))},null,40,I),[[y,e.model.value]])]),e.model.valid?i("",!0):(a(),n("p",V,s(e.model.message),1))],2)}const C=t(v,[["render",E]]);export{C as I};