import { isFunction as i } from "../../../utils/value/is.js";
const s = (m, n = {}, a) => m?.map((e) => {
  if (typeof e == "object") {
    const r = e?.key?.trim(), t = r && n[r], o = i(t) ? t(a) : t;
    if (o) return { ...e, key: o };
  }
  return e;
});
export {
  s as default,
  s as normalizeCustomFields
};
