import { jsxs as u, jsx as o } from "@emotion/react/jsx-runtime";
import f from "../ToastContainer/helpers/toaster.js";
import { BaseModule as y } from "../BaseModule/BaseModule.js";
import { SettingsLayout as b } from "../SettingsLayout/SettingsLayout.js";
import { ToastContainer as S } from "../ToastContainer/ToastContainer.js";
import { PopupsProvider as I } from "../popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js";
function h(e) {
  const {
    moduleId: r,
    skeletonFlags: t,
    moduleNameField: a,
    privileges: p,
    componentsDictionary: s,
    moduleDictionaryLoaded: n,
    areasStoreId: i,
    areasStoreDevtoolsEnabled: m,
    appWrappers: d
  } = e;
  return {
    toastFactory: f,
    appWrappers: [({
      children: l,
      toastContainerId: c
    }) => /* @__PURE__ */ u(
      y,
      {
        moduleId: r,
        privileges: p,
        skeletonFlags: t,
        componentsDictionary: s,
        moduleNameField: a,
        moduleDictionaryLoaded: n,
        children: [
          /* @__PURE__ */ o(b, {}),
          /* @__PURE__ */ o(S, { containerId: c }),
          /* @__PURE__ */ o(
            I,
            {
              baseZindex: 1e3,
              storeId: i,
              storeDevtoolsEnabled: m,
              children: l
            }
          )
        ]
      }
    ), ...d ?? []]
  };
}
export {
  h as createComponentsMFIsolationAppStorybookProps
};
