"use client";
import { j as e } from "../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs";
import z from "../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.mjs";
import i from "../Button/index.mjs";
import l from "./index.module.scss.mjs";
import { ReactComponent as B } from "../../assets/images/CloseButton.svg.mjs";
function L({
  title: n,
  message: c,
  onClose: t = () => {
  },
  variant: o,
  size: m = "large",
  layout: d = "horizontal",
  isOpen: x = !0,
  showClose: p = !0,
  closeButton: j = /* @__PURE__ */ e.jsx(B, {}),
  showIcon: y = !0,
  icon: h,
  iconContainer: u = !1,
  listItems: a,
  link: s,
  buttons: r,
  noBorderLeft: C = !1,
  className: f,
  ...N
}) {
  return x ? /* @__PURE__ */ e.jsxs(
    "div",
    {
      className: z(
        l.container,
        l[o],
        l[m],
        l[d],
        {
          [l.noBorderLeft]: C,
          [l.iconContainer]: u
        },
        f
      ),
      ...N,
      children: [
        p ? /* @__PURE__ */ e.jsx("button", { type: "button", onClick: t, className: l.closeButton, children: j }) : null,
        y ? /* @__PURE__ */ e.jsx("div", { className: l.icon, children: h }) : null,
        /* @__PURE__ */ e.jsxs("div", { className: l.content, children: [
          /* @__PURE__ */ e.jsx("div", { className: l.header, children: /* @__PURE__ */ e.jsx("div", { className: l.title, children: n }) }),
          /* @__PURE__ */ e.jsx("div", { className: l.message, children: c }),
          a ? /* @__PURE__ */ e.jsx("ul", { className: l.list, children: a.map((k, v) => /* @__PURE__ */ e.jsx("li", { children: k }, v)) }) : null,
          s ? /* @__PURE__ */ e.jsx("div", { className: l.link, children: /* @__PURE__ */ e.jsx(i, { type: "link", size: "small", onClick: s.onClick, children: s.text }) }) : null,
          r ? /* @__PURE__ */ e.jsxs("div", { className: l.buttonGroup, children: [
            r.primary && /* @__PURE__ */ e.jsx(
              i,
              {
                type: "primary",
                size: "small",
                onClick: r.primary.onClick,
                children: r.primary.text
              }
            ),
            r.secondary && /* @__PURE__ */ e.jsx(
              i,
              {
                type: "secondary",
                size: "small",
                onClick: r.secondary.onClick,
                children: r.secondary.text
              }
            ),
            r.tertiary && /* @__PURE__ */ e.jsx(
              i,
              {
                type: "tertiary",
                size: "small",
                onClick: r.tertiary.onClick,
                children: r.tertiary.text
              }
            )
          ] }) : null
        ] })
      ]
    }
  ) : null;
}
export {
  L as default
};
//# sourceMappingURL=index.mjs.map
