import { jsx as f } from "@emotion/react/jsx-runtime";
import { normalizeTextFieldPropsFromBackend as z } from "./normalizeTextFieldPropsFromBackend.js";
import { RHFTextField as R } from "../../../../../hook-form/RHFTextField/RHFTextField.js";
const y = {
  componentIds: ["RHFTextField"],
  /** Renders the RHFTextField component for the given field and context. */
  render(o) {
    const { field: e, props: r } = o, { size: t = "medium", disabled: d, readOnly: s, getLabel: l, assetBasePath: a } = r, { name: n, placeholder: i, isRequired: m, helperText: p } = e, c = z(e, l, a), { resolvedLabel: x, startIcon: F, endIcon: h, ...b } = c;
    return /* @__PURE__ */ f(
      R,
      {
        name: n,
        size: t,
        label: x,
        mandatory: m,
        helperMessage: p || "",
        disabled: d || s,
        placeholder: i || void 0,
        ...b,
        startIcon: F,
        endIcon: h
      }
    );
  }
};
export {
  y as textFieldStrategy
};
