import { jsx as R } from "@emotion/react/jsx-runtime";
import { normalizeDateRangePickerPropsFromBackend as F } from "./normalizeDateRangePickerPropsFromBackend.js";
import { resolveFieldHelperMessage as P, resolveFieldMandatory as b } from "../../../resolveFieldContractAliases.js";
import { RHFDateTimeRangePicker as f } from "../../../../../hook-form/RHFDateTimeRangePicker/RHFDateTimeRangePicker.js";
const D = {
  componentIds: ["RHFDateRangePicker", "RHFDateTimeRangePicker"],
  /** Renders the RHFDateTimeRangePicker component for the given field and context. */
  render(r) {
    const { field: e, props: a } = r, { size: o = "medium", disabled: s, readOnly: n, getLabel: t, suppressLabel: i } = a, { name: l } = e, d = P(e), m = b(e), c = F(e, t), { resolvedLabel: p, ...g } = c;
    return /* @__PURE__ */ R(
      f,
      {
        name: l,
        size: o,
        ...!i && { mandatory: m, label: p },
        helperMessage: d || "",
        disabled: s || n,
        ...g
      }
    );
  }
};
export {
  D as dateRangePickerStrategy
};
