"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxDevRuntime = require("react/jsx-dev-runtime");
const reactBinding = require("@contember/react-binding");
const useOnPersistSuccess = require("../useOnPersistSuccess.cjs");
const NotFoundBoundary = require("./NotFoundBoundary.cjs");
const scopeComponent = require("./scopeComponent.cjs");
const FeedbackRenderer = require("../../bindingFacade/renderers/FeedbackRenderer.cjs");
const EditScope = scopeComponent.scopeComponent(
  ({
    children,
    onPersistSuccess,
    redirectOnSuccess,
    refreshDataBindingOnPersist,
    skipBindingStateUpdateAfterPersist,
    stateComponent,
    stateProps,
    ...entityProps
  }) => /* @__PURE__ */ jsxDevRuntime.jsxDEV(
    reactBinding.DataBindingProvider,
    {
      refreshOnPersist: refreshDataBindingOnPersist ?? true,
      stateComponent: stateComponent ?? FeedbackRenderer.FeedbackRenderer,
      stateProps,
      skipStateUpdateAfterPersist: skipBindingStateUpdateAfterPersist,
      children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(reactBinding.EntitySubTree, { ...entityProps, onPersistSuccess: useOnPersistSuccess.useOnPersistSuccess({ redirectOnSuccess, onPersistSuccess }), children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(NotFoundBoundary.NotFoundBoundary, { children }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/Scopes/EditScope.tsx",
        lineNumber: 41,
        columnNumber: 5
      }, void 0) }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/Scopes/EditScope.tsx",
        lineNumber: 40,
        columnNumber: 4
      }, void 0)
    },
    void 0,
    false,
    {
      fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/Scopes/EditScope.tsx",
      lineNumber: 34,
      columnNumber: 3
    },
    void 0
  ),
  "EditScope"
);
exports.EditScope = EditScope;
//# sourceMappingURL=EditScope.cjs.map
