import { isRecord as l } from "../../../isRecord.js";
import { normalizeDisabledDays as t } from "./helpers/normalizeDisabledDays/normalizeDisabledDays.js";
import { resolveFieldInputLabel as s } from "../../../resolveFieldInputLabel/resolveFieldInputLabel.js";
function f(r, a) {
  const i = s(r, a), e = r.fieldType.rhfComponentProps;
  if (!l(e))
    return { resolvedLabel: i };
  const o = {};
  typeof e.name == "string" && e.name.trim() !== "" && (o.name = e.name.trim());
  const n = t(e.disabledDays);
  return n !== void 0 && (o.disabledDays = n), typeof e.readOnly == "boolean" && (o.readOnly = e.readOnly), typeof e.multiple == "boolean" && (o.multiple = e.multiple), {
    ...o,
    resolvedLabel: i
  };
}
export {
  f as normalizeDaysOfWeekPickerPropsFromBackend
};
