import { jsx as i } from "@emotion/react/jsx-runtime";
import { normalizeCheckboxPropsFromBackend as p } from "./normalizeCheckboxPropsFromBackend.js";
import { RHFCheckbox as b } from "../../../../../hook-form/RHFCheckbox/RHFCheckbox.js";
const k = {
  componentIds: ["RHFCheckbox"],
  /** Renders the RHFCheckbox component for the given field and context. */
  render(o) {
    const { field: e, props: r } = o, { size: s = "medium", disabled: t, readOnly: n, getLabel: a } = r, { name: d } = e, m = p(e, a), { resolvedLabel: c, ...l } = m;
    return /* @__PURE__ */ i(
      b,
      {
        name: d,
        size: s,
        mandatory: e.isRequired,
        helperMessage: e.helperText || "",
        disabled: t || n,
        ...l,
        label: c
      }
    );
  }
};
export {
  k as checkboxStrategy
};
