import o from "validator/lib/isAlphanumeric.js";
import e from "validator/lib/isEmpty.js";
import { z as n } from "zod";
import { CommonValidationErrorType as a } from "./accelbyte-widgets341.mjs";
import { ValidateLengthErrorType as p, validateLength as u } from "./accelbyte-widgets289.mjs";
const t = n.enum([...p.options, a.enum.invalidFormat]), s = (r, { maxLength: i = 256, isRequired: m = !0 } = {}) => e(r) ? m ? t.enum.empty : null : o(r) ? u(r, { max: i }) : t.enum.invalidFormat;
export {
  t as ValidateAlphaNumericErrorType,
  s as validateAlphanumeric
};
