var __extends=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();import{B as BaseField}from"./BaseField-461b6d0c.js";import{r as registerInterceptor,I as InterceptorConfig,a as InterceptorHandler}from"./InterceptorHandler-6474bcf4.js";var RawDataField=function(t){__extends(e,t);function e(e,r,n,i){if(i===void 0){i="json"}var o=t.call(this,e,"raw-data")||this;o.dataType="json";o.trimStringQuotes=false;o.id=e;o.title=r;o.description=n;o.dataType=i;return o}e.prototype.showPreview=function(){this.preview=true;return this};e.prototype.getDisplayValue=function(t){return t};e.prototype.setDataType=function(t){this.dataType=t;return this};e.prototype.setTrimStringQuotes=function(t){this.trimStringQuotes=t;return this};return e}(BaseField);RawDataField.type="raw-data";var ValidatorRegex=function(t){__extends(e,t);function e(e,r){var n=t.call(this,"validatorAlphanumericChar")||this;n.regexFlags="gm";n.regex=e;n.message=r;return n}return e}(InterceptorConfig);ValidatorRegex.id="validatorAlphanumericChar";var ValidatorRegexHandler=function(t){__extends(e,t);function e(e){var r=t.call(this)||this;r.config=e;return r}e.prototype.run=function(t,e,r,n){if(typeof n==="string"||n instanceof String){if(!new RegExp(this.config.regex,this.config.regexFlags).test(n)){var i=this.config.message||t.strings.interceptors.validatorRegex.message;return{error:i.replace("{title}",r.errorTitle||r.title),value:n}}}return{value:n}};return e}(InterceptorHandler);registerInterceptor(ValidatorRegex.id,(function(t){return new ValidatorRegexHandler(t)}));export{RawDataField as R,ValidatorRegex as V};