import { defineComponent as t, renderSlot as d } from "vue";
import { genRealChildren as a } from "../ap-form/item-group/helper.mjs";
const o = () => ({
  renderer: Function,
  node: Object,
  data: Object
}), i = /* @__PURE__ */ t({
  name: "ApRender",
  props: o(),
  setup(e, {
    slots: r
  }) {
    return () => {
      if (e.node)
        return e.node;
      if (e.renderer) {
        const n = a(r.default?.() || []);
        return e.renderer(n, e.data);
      }
      return d(r, "default", e.data);
    };
  }
});
export {
  i as default,
  o as renderProps
};
