import { jsx as t, jsxs as i } from "@emotion/react/jsx-runtime";
import { ToastContainer as l } from "react-toastify";
import { DEFAULT_CLOSE_TIME as m, TOAST_KEY_COMPONENT as f } from "./constants.js";
import { getPropDataTestId as d } from "../../test/getNameDataTestId.js";
import { ModuleSkeletonProvider as c } from "@m4l/core";
import { RootStyled as p } from "./slots/toastContainerSlots.js";
import { ToastContainerSlots as T } from "./slots/ToastContainerEnum.js";
const _ = (o) => {
  const {
    color: e = "default",
    children: r,
    fixed: s = !0,
    dataTestId: a,
    ...n
  } = o;
  return /* @__PURE__ */ t(c, { flags: [], children: /* @__PURE__ */ i(
    p,
    {
      ownerState: { ...{ fixed: s, color: e } },
      ...d(f, T.root, a),
      children: [
        /* @__PURE__ */ t(
          l,
          {
            className: "toastify",
            stacked: !0,
            icon: !1,
            closeButton: !1,
            autoClose: m,
            position: "bottom-left",
            theme: "light",
            ...n
          }
        ),
        r
      ]
    }
  ) });
};
export {
  _ as ToastContainer
};
