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