import { jsx as o } from "@emotion/react/jsx-runtime";
import { normalizeCheckableListPropsFromBackend as u } from "./normalizeCheckableListPropsFromBackend.js";
import { DynamicFormCheckableListWrapperStyled as g } from "../../../../slots/DynamicFormSlots.js";
import { RHFCheckableList as v } from "../../../../../hook-form/RHFCheckableList/RHFCheckableList.js";
const x = {
  componentIds: ["RHFCheckableList"],
  /** Renders the RHFCheckableList component for the given field and context. */
  render(s) {
    const { field: e, props: a } = s, { size: t = "medium", disabled: l, readOnly: i, getLabel: m } = a, { name: d, isRequired: c, helperText: n } = e, p = u(e, m), {
      groups: b,
      resolvedLabel: h,
      hasGroups: r,
      resolvedSearchable: L,
      resolvedCheckableListItems: k,
      ...f
    } = p;
    return /* @__PURE__ */ o(g, { children: /* @__PURE__ */ o(
      v,
      {
        name: d,
        size: t,
        label: h ?? "",
        mandatory: c,
        items: r ? void 0 : k,
        groups: r ? b : void 0,
        helperMessage: n || "",
        disabled: l || i,
        searchable: L ?? !1,
        ...f
      }
    ) });
  }
};
export {
  x as checkableListStrategy
};
