import { jsxs as c, jsx as o, Fragment as g } from "react/jsx-runtime";
import { n as a } from "./index.B0wX8xO7.js";
import { a as N } from "./index.CfQlFjZU.js";
import { F as _ } from "./index.dWlEA7uO.js";
import { B as v } from "./ButtonGroup.GFy-lPs3.js";
import { a as C } from "./breakpoint.DipDapki.js";
import "react";
import "./ProgressActivity.DYLCzf8q.js";
import "./formInputIcon.module.CU3tuFAI.js";
import "./isEqual.Bk3xqtBB.js";
const B = "creator_dialog_kwNIc", b = "creator_header_TKjEb", x = "creator_closeButton_Sq3QF", y = "creator_body_-Tx0I", D = "creator_footer_08iuv", e = { dialog: B, header: b, closeButton: x, body: y, footer: D };
function j({
  dismissible: t = !0,
  onDismiss: r,
  ...s
}) {
  const n = C("sm");
  return {
    containerClassName: e.dialog,
    headerClassName: e.header,
    bodyClassName: e.body,
    closeButtonClassName: e.closeButton,
    footerClassName: e.footer,
    showDismiss: t,
    buttonOrientation: n ? "horizontal" : "vertical",
    onDismiss: r,
    ...s
  };
}
function k({
  heading: t,
  body: r,
  headerClassName: s,
  containerClassName: n,
  bodyClassName: m,
  closeButtonClassName: d,
  footerClassName: u,
  onDismiss: h,
  showDismiss: p,
  buttons: l,
  buttonOrientation: f,
  slot: i
}) {
  return /* @__PURE__ */ c("div", { className: n, role: "dialog", children: [
    /* @__PURE__ */ c("div", { className: s, children: [
      /* @__PURE__ */ o("span", { role: "heading", children: t }),
      /* @__PURE__ */ o(
        a,
        {
          value: p,
          then: /* @__PURE__ */ o(
            _,
            {
              size: 24,
              role: "button",
              "aria-label": "Close",
              onClick: h,
              className: d
            }
          )
        }
      )
    ] }),
    /* @__PURE__ */ o(
      a,
      {
        value: r,
        then: /* @__PURE__ */ o("p", { className: m, role: "document", children: r })
      }
    ),
    /* @__PURE__ */ o(a, { value: i, then: /* @__PURE__ */ o(g, { children: i }) }),
    /* @__PURE__ */ o(
      a,
      {
        value: l?.length,
        then: /* @__PURE__ */ o(
          v,
          {
            buttons: l,
            orientation: f,
            className: u
          }
        )
      }
    )
  ] });
}
const G = N(k, j);
export {
  G as D
};
