import e from "validator/lib/isEmpty.js";
import n from "validator/lib/matches.js";
import { z as i } from "zod";
import { CommonValidationErrorType as m } from "./accelbyte-widgets341.mjs";
const o = i.enum([m.enum.empty, m.enum.invalidFormat]), s = (r, { isRequired: t = !0 } = {}) => {
  const a = '^(?:(?=.*\\d)(?=.*[A-Z])(?=.*[a-z])|(?=.*\\d)(?=.*[^A-Za-z0-9])(?=.*[a-z])|(?=.*[^A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z])|(?=.*\\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9]))(?!.*(.)\\1{2,})[A-Za-z0-9!~<>,;:_=?*+#."&§%°()\\|\\[\\]\\-\\$\\^\\@\\/]{8,32}$';
  return e(r) ? t ? o.enum.empty : null : n(r, a) ? null : o.enum.invalidFormat;
};
export {
  o as ValidateComplexPasswordErrorType,
  s as validateComplexPassword
};
