var __extends=this&&this.__extends||function(){var t=function(r,e){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e))t[e]=r[e]};return t(r,e)};return function(r,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();import{r as registerInterceptor,I as InterceptorConfig,a as InterceptorHandler}from"./InterceptorHandler-6474bcf4.js";var ValidatorEmail=function(t){__extends(r,t);function r(){return t.call(this,"validatorEmail")||this}return r}(InterceptorConfig);ValidatorEmail.id="validatorEmail";var isValidEmail=function(t){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())};var ValidatorEmailHandler=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}r.prototype.run=function(t,r,e,n){if(!n||!isValidEmail(n)){return{error:t.strings.interceptors.validatorEmail.message.replace("{title}",e.errorTitle||e.title),value:n}}return{value:n}};return r}(InterceptorHandler);registerInterceptor(ValidatorEmail.id,(function(t){return new ValidatorEmailHandler}));export{ValidatorEmail as V};