import { isRecord as m } from "../../../isRecord.js";
import { resolveFieldInputLabel as a } from "../../../resolveFieldInputLabel/resolveFieldInputLabel.js";
function p(o, n) {
  const t = a(o, n), r = o.fieldType.rhfComponentProps;
  if (!m(r))
    return { resolvedLabel: t };
  const e = {};
  return typeof r.name == "string" && r.name.trim() !== "" && (e.name = r.name.trim()), typeof r.format == "string" && r.format.trim() !== "" && (e.format = r.format.trim()), typeof r.readOnly == "boolean" && (e.readOnly = r.readOnly), {
    ...e,
    resolvedLabel: t
  };
}
export {
  p as normalizeDateRangePickerPropsFromBackend
};
