const n = (r) => {
  const o = r.passError;
  if (Array.isArray(o) && r.arrayPosition !== void 0) {
    const a = o[r.arrayPosition];
    return r.errors = [a], a ?? "";
  }
  return Array.isArray(o) && r.arrayPosition === void 0 ? "" : typeof o == "string" ? o : "";
};
export {
  n as extractSetErrorsFromConfig
};
