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