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