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