import { EMPTY_ARRAY as f } from "../../../utils/value/constants.js";
const a = (e, o = f) => {
  if (Array.isArray(e))
    for (const r of e)
      try {
        const t = typeof r == "object" ? r?.key?.trim() : !1;
        if (
          // `fieldName` is expected to be a string (except in a case of misconfiguration)
          typeof t == "string" && // `fieldName` should not be an empty string (except in a case of misconfiguration)
          t && // `field` is a custom field if `fieldName` is not in the `standardFields` list
          !o.includes(t)
        )
          return !0;
      } catch {
      }
  return !1;
};
export {
  a as default,
  a as hasCustomField
};
