"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 reactBindingUi = require("@contember/react-binding-ui");
const pageComponent = require("./pageComponent.cjs");
const FeedbackRenderer = require("../../bindingFacade/renderers/FeedbackRenderer.cjs");
const LayoutRenderer = require("../../bindingFacade/renderers/LayoutRenderer.cjs");
const PersistButton = require("../../bindingFacade/buttons/PersistButton.cjs");
const EditPage = pageComponent.pageComponent(
  ({ pageName, children, rendererProps, redirectOnSuccess, onPersistSuccess, refreshDataBindingOnPersist, skipBindingStateUpdateAfterPersist, ...entityProps }) => /* @__PURE__ */ jsxDevRuntime.jsxDEV(
    reactBinding.DataBindingProvider,
    {
      stateComponent: FeedbackRenderer.FeedbackRenderer,
      refreshOnPersist: refreshDataBindingOnPersist ?? true,
      skipStateUpdateAfterPersist: skipBindingStateUpdateAfterPersist,
      children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(reactBinding.EntitySubTree, { ...entityProps, onPersistSuccess: useOnPersistSuccess.useOnPersistSuccess({ redirectOnSuccess, onPersistSuccess }), children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(reactBindingUi.NotFoundWrapper, { title: rendererProps?.title, children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(LayoutRenderer.LayoutRenderer, { ...rendererProps, actions: rendererProps?.actions ?? /* @__PURE__ */ jsxDevRuntime.jsxDEV(PersistButton.PersistButton, {}, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/pageComponents/EditPage.tsx",
        lineNumber: 48,
        columnNumber: 76
      }, void 0), children }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/pageComponents/EditPage.tsx",
        lineNumber: 48,
        columnNumber: 6
      }, void 0) }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/pageComponents/EditPage.tsx",
        lineNumber: 47,
        columnNumber: 5
      }, void 0) }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/pageComponents/EditPage.tsx",
        lineNumber: 46,
        columnNumber: 4
      }, void 0)
    },
    void 0,
    false,
    {
      fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/pageComponents/EditPage.tsx",
      lineNumber: 41,
      columnNumber: 3
    },
    void 0
  ),
  "EditPage"
);
exports.EditPage = EditPage;
//# sourceMappingURL=EditPage.cjs.map
