import{B as t}from"./p-eebad85b.js";import{r as s,I as r,a as e}from"./p-35c7f358.js";class i extends t{constructor(t,s,r,e="json"){super(t,"raw-data"),this.dataType="json",this.trimStringQuotes=!1,this.id=t,this.title=s,this.description=r,this.dataType=e}showPreview(){return this.preview=!0,this}getDisplayValue(t){return t}setDataType(t){return this.dataType=t,this}setTrimStringQuotes(t){return this.trimStringQuotes=t,this}}i.type="raw-data";class a extends r{constructor(t,s){super("validatorAlphanumericChar"),this.regexFlags="gm",this.regex=t,this.message=s}}a.id="validatorAlphanumericChar";class h extends e{constructor(t){super(),this.config=t}run(t,s,r,e){return("string"==typeof e||e instanceof String)&&!new RegExp(this.config.regex,this.config.regexFlags).test(e)?{error:(this.config.message||t.strings.interceptors.validatorRegex.message).replace("{title}",r.errorTitle||r.title),value:e}:{value:e}}}s(a.id,(t=>new h(t)));export{i as R,a as V}