import { jsxs as g, Fragment as y, jsx as o } from "react/jsx-runtime";
import { l as m } from "./index.C1ZfizMq.js";
import { a as w } from "./index.CfQlFjZU.js";
import { C as R } from "./card.CVCKhKP6.js";
import { g as i, d as l } from "./GridRow._ehOXG8R.js";
import "./GridLayouts.DSIvKCIo.js";
import { C as _ } from "./CardContent.DpE_X3Tr.js";
const p = "creator_colFull_-8Hgz", u = "creator_categoryTitleCol_8WTbX", G = "creator_pageHeaderRow_Rc-uZ", f = "creator_categoryItemsGridRow_HWUx8", h = "creator_categoryItemGridCol_yrPsw", T = "creator_categoryTitleGridRow_4yY1S", a = { colFull: p, categoryTitleCol: u, pageHeaderRow: G, categoryItemsGridRow: f, categoryItemGridCol: h, categoryTitleGridRow: T };
function N({
  title: e,
  items: t,
  onMenuItemClick: c
}) {
  return {
    title: e,
    items: t,
    onMenuItemClick: c,
    categoryTitleRowClassName: a.categoryTitleGridRow,
    categoryItemsRowClassName: a.categoryItemsGridRow,
    categoryTitleColClassName: a.categoryTitleCol,
    categoryItemColClassName: a.categoryItemGridCol
  };
}
function H({
  title: e,
  items: t,
  onMenuItemClick: c,
  categoryTitleRowClassName: s,
  categoryItemsRowClassName: n,
  categoryTitleColClassName: d,
  categoryItemColClassName: C
}) {
  return /* @__PURE__ */ g(y, { children: [
    /* @__PURE__ */ o(i, { className: s, children: /* @__PURE__ */ o(l, { className: d, children: e }) }),
    /* @__PURE__ */ o(i, { className: n, children: /* @__PURE__ */ o(
      m,
      {
        values: t,
        layout: (r) => /* @__PURE__ */ o(l, { className: C, children: /* @__PURE__ */ o(
          R,
          {
            elevation: "medium",
            interaction: "interactive",
            fillHeight: !0,
            onClick: () => c(r, { title: e, items: t }),
            children: /* @__PURE__ */ o(
              _,
              {
                variant: "horizontal",
                header: r.title,
                body: r.description,
                icon: r.icon
              }
            )
          }
        ) }, r.id)
      }
    ) })
  ] });
}
const z = w(
  H,
  N,
  "ContentMenuCategory"
);
export {
  z as C,
  a as s
};
