;
{
  try {
    let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
    n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1c35c18a-4e42-444a-a61e-e0dab206af22", e._sentryDebugIdIdentifier = "sentry-dbid-1c35c18a-4e42-444a-a61e-e0dab206af22");
  } catch (e) {
  }
}
;
import { jsx, Fragment } from "preact/jsx-runtime";
import { T as ToastContextProvider } from "./StoreProvider-CqQrndhS.js";
import { M as Modal } from "./Modal-1lLoobr9.js";
const MaybeModal = ({
  ariaLabel,
  children,
  inline = false,
  inset,
  onClose,
  showCloseButton,
  size
}) => {
  return inline ? /* @__PURE__ */ jsx(Fragment, { children }) : /* @__PURE__ */ jsx(
    Modal,
    {
      onClose,
      ariaLabel,
      size,
      inset,
      showCloseButton,
      children: /* @__PURE__ */ jsx(ToastContextProvider, { children })
    }
  );
};
export {
  MaybeModal as M
};
