import{_ as d}from"./WebFormFieldCore_String-Daj5WKW-.mjs";import{_ as m,o as r,c as o,N as p,O as u,a as c,y as n,l as t,t as h}from"./BDipKYNj.js";import"./WebFormFieldCore-xNTPdj0N.mjs";const f={extends:d,props:{icon:{type:Boolean,default:!1}},data(){return{email:""}},mounted(){this.email=this.value??""}},v=["id","name","placeholder","disabled","required"],y={key:0,class:"icon"},E={key:1,class:"error"};function b(e,a,i,_,l,k){return r(),o("div",{class:n(["email-field",i.icon?"has-icon":""])},[p(c("input",{id:e.name,"onUpdate:modelValue":a[0]||(a[0]=s=>l.email=s),name:e.name,type:"email",placeholder:e.placeholder,disabled:e.disabled,required:e.required,class:n(e.hasError&&e.showErrors?"has-error":""),onInput:a[1]||(a[1]=s=>e.update(s.target.value))},null,42,v),[[u,l.email]]),i.icon?(r(),o("span",y)):t("",!0),e.hasError&&e.showErrors?(r(),o("span",E,h(e.errorMsg),1)):t("",!0)],2)}const w=m(f,[["render",b],["__scopeId","data-v-7c24b323"]]);export{w as default};