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