import { createElement, Fragment } from "react";
import { useComponentClassName } from "@contember/ui";
import cn from "classnames";
import { SortableContainer } from "react-sortable-hoc";
const getHelperContainer = () => {
  return document.getElementById("portal-root") ?? document.body;
};
const SortableRepeaterContainerInner = SortableContainer(({ children }) => /* @__PURE__ */ createElement(Fragment, null, children));
const SortableRepeaterContainer = ({ helperClass, ...props }) => /* @__PURE__ */ createElement(SortableRepeaterContainerInner, {
  helperContainer: getHelperContainer,
  ...props,
  helperClass: cn(helperClass, useComponentClassName("root-no-display"))
});
SortableRepeaterContainer.displayName = "SortableRepeaterContainer";
export { SortableRepeaterContainer };
//# sourceMappingURL=SortableRepeaterContainer.js.map
