const s = "N_D:[";
function u(e, n, o) {
  const r = (e.validationType || e.type)?.errorMessageForm?.trim();
  if (r == null || r === "")
    return o;
  const t = n(r);
  return t && !t.startsWith(s) ? t : /^\d+$/.test(r) ? o : r;
}
export {
  u as resolveValidationErrorMessage
};
