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