import { jsx } from "react/jsx-runtime";
import { Toaster as Toaster$1 } from "../../node_modules/sonner/dist/index.js";
import { toast } from "../../node_modules/sonner/dist/index.js";
import LoaderCircle from "../../node_modules/lucide-react/dist/esm/icons/loader-circle.js";
import OctagonX from "../../node_modules/lucide-react/dist/esm/icons/octagon-x.js";
import TriangleAlert from "../../node_modules/lucide-react/dist/esm/icons/triangle-alert.js";
import Info from "../../node_modules/lucide-react/dist/esm/icons/info.js";
import CircleCheck from "../../node_modules/lucide-react/dist/esm/icons/circle-check.js";
function Toaster({
  theme = "system",
  richColors = true,
  ...props
}) {
  return /* @__PURE__ */ jsx(
    Toaster$1,
    {
      "data-slot": "toaster",
      theme,
      className: "toaster group",
      richColors,
      icons: {
        success: /* @__PURE__ */ jsx(CircleCheck, { className: "size-4" }),
        info: /* @__PURE__ */ jsx(Info, { className: "size-4" }),
        warning: /* @__PURE__ */ jsx(TriangleAlert, { className: "size-4" }),
        error: /* @__PURE__ */ jsx(OctagonX, { className: "size-4" }),
        loading: /* @__PURE__ */ jsx(LoaderCircle, { className: "size-4 animate-spin" })
      },
      style: {
        "--normal-bg": "var(--popover)",
        "--normal-text": "var(--popover-foreground)",
        "--normal-border": "var(--border)",
        "--border-radius": "var(--radius)",
        // Success
        "--success-bg": "oklch(from var(--success) l c h / 10%)",
        "--success-text": "var(--success)",
        "--success-border": "oklch(from var(--success) l c h / 30%)",
        // Error
        "--error-bg": "oklch(from var(--destructive) l c h / 10%)",
        "--error-text": "var(--destructive)",
        "--error-border": "oklch(from var(--destructive) l c h / 30%)",
        // Warning
        "--warning-bg": "oklch(from var(--warning) l c h / 10%)",
        "--warning-text": "var(--warning)",
        "--warning-border": "oklch(from var(--warning) l c h / 30%)",
        // Info
        "--info-bg": "oklch(from var(--info) l c h / 10%)",
        "--info-text": "var(--info)",
        "--info-border": "oklch(from var(--info) l c h / 30%)"
      },
      toastOptions: {
        classNames: {
          toast: "group backdrop-blur-md"
        }
      },
      ...props
    }
  );
}
export {
  Toaster,
  toast
};
//# sourceMappingURL=sonner.js.map
