var __extends=this&&this.__extends||function(){var e=function(r,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t))e[t]=r[t]};return e(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();import{r as registerInterceptor,I as InterceptorConfig,a as InterceptorHandler}from"./InterceptorHandler-6474bcf4.js";var ValidatorRegex=function(e){__extends(r,e);function r(r,t){var n=e.call(this,"validatorAlphanumericChar")||this;n.regexFlags="gm";n.regex=r;n.message=t;return n}return r}(InterceptorConfig);ValidatorRegex.id="validatorAlphanumericChar";var ValidatorRegexHandler=function(e){__extends(r,e);function r(r){var t=e.call(this)||this;t.config=r;return t}r.prototype.run=function(e,r,t,n){if(typeof n==="string"||n instanceof String){if(!new RegExp(this.config.regex,this.config.regexFlags).test(n)){var o=this.config.message||e.strings.interceptors.validatorRegex.message;return{error:o.replace("{title}",t.errorTitle||t.title),value:n}}}return{value:n}};return r}(InterceptorHandler);registerInterceptor(ValidatorRegex.id,(function(e){return new ValidatorRegexHandler(e)}));export{ValidatorRegex as V};