import { o } from "./rolldown-runtime.js";
import { i as m, r as _, t as c } from "./vendor/react.js";
import { x as u } from "./popupStateMapping.js";
var a = /* @__PURE__ */ o(m()), d = /* @__PURE__ */ o(_()), f = c(), q = /* @__PURE__ */ a.forwardRef(function(t, i) {
  const { children: n, container: l, className: x, render: g, style: v, ...s } = t, { portalNode: r, portalSubtree: e } = u({
    container: l,
    ref: i,
    componentProps: t,
    elementProps: s
  });
  return !e && !r ? null : /* @__PURE__ */ (0, f.jsxs)(a.Fragment, { children: [e, r && /* @__PURE__ */ d.createPortal(n, r)] });
});
export {
  q as t
};

//# sourceMappingURL=FloatingPortalLite.js.map