import { useMemo as l } from "react";
import { getValueByPath as n, parseNumberFromValue as s } from "../utils/formatUtils.js";
const p = (r, t, u = {}) => {
  const { locale: a = "en-GB" } = u;
  return l(() => {
    const o = r.map((e) => {
      const m = n(e, t);
      return s(m, a);
    }).filter((e) => !Number.isNaN(e));
    return o.length > 0 ? Math.max(...o) : 0;
  }, [r, t, a]);
};
export {
  p as default
};
//# sourceMappingURL=useMax.js.map
