import { jsxDEV } from "react/jsx-dev-runtime";
import { DataBindingProvider, EntitySubTree } from "@contember/binding";
import { useOnPersistSuccess } from "../useOnPersistSuccess.js";
import { NotFoundBoundary } from "./NotFoundBoundary.js";
import { scopeComponent } from "./scopeComponent.js";
import { FeedbackRenderer } from "../../bindingFacade/renderers/FeedbackRenderer.js";
const EditScope = scopeComponent(
  ({ children, redirectOnSuccess, onPersistSuccess, refreshDataBindingOnPersist, skipBindingStateUpdateAfterPersist, ...entityProps }) => /* @__PURE__ */ jsxDEV(
    DataBindingProvider,
    {
      stateComponent: FeedbackRenderer,
      refreshOnPersist: refreshDataBindingOnPersist ?? true,
      skipStateUpdateAfterPersist: skipBindingStateUpdateAfterPersist,
      children: /* @__PURE__ */ jsxDEV(EntitySubTree, { ...entityProps, onPersistSuccess: useOnPersistSuccess({ redirectOnSuccess, onPersistSuccess }), children: /* @__PURE__ */ jsxDEV(NotFoundBoundary, { children }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/Scopes/EditScope.tsx",
        lineNumber: 30,
        columnNumber: 5
      }, globalThis) }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/Scopes/EditScope.tsx",
        lineNumber: 29,
        columnNumber: 4
      }, globalThis)
    },
    void 0,
    false,
    {
      fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/Scopes/EditScope.tsx",
      lineNumber: 24,
      columnNumber: 3
    },
    globalThis
  ),
  "EditScope"
);
export {
  EditScope
};
//# sourceMappingURL=EditScope.js.map
