import{r,I as t,a as e}from"./p-35c7f358.js";class a extends t{constructor(r,t){super("validatorLength"),this.min=r,this.max=t}}a.id="validatorLength";class n extends e{constructor(r){super(),this.config=r}run(r,t,e,a){const{max:n,min:s}=this.config;return s||n?"string"==typeof a||a instanceof String?function(r,t,e,a,n){return a&&(!e||e.length<a)?{error:r.strings.interceptors.validatorLength.messageMinChars.replace("{title}",t.errorTitle||t.title).replace("{min}",a),value:e}:n&&e&&e.length>n?{error:r.strings.interceptors.validatorLength.messageMaxChars.replace("{title}",t.errorTitle||t.title).replace("{max}",n),value:e}:{value:e}}(r,e,a,s,n):a instanceof Array?function(r,t,e,a,n){return a&&(!e||e.length<a)?{error:r.strings.interceptors.validatorLength.messageMinItems.replace("{title}",t.errorTitle||t.title).replace("{min}",a),value:e}:n&&e&&e.length>n?{error:r.strings.interceptors.validatorLength.messageMaxItems.replace("{title}",t.errorTitle||t.title).replace("{max}",n),value:e}:{value:e}}(r,e,a,s,n):{value:a}:{value:a}}}r(a.id,(r=>new n(r)));export{a as V}