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