import { jsxs as i, jsx as a } from "react/jsx-runtime";
import { t as d } from "../../classix-DG18itHa.js";
import { Badge as g } from "../badge/index.js";
import { Checkbox as p } from "../checkbox/index.js";
import { Figure as f } from "../figure/index.js";
import { Icon as w } from "../icon/index.js";
import '../../assets/index15.css';const q = "_card_18wqh_1", u = "_head_18wqh_31", y = "_center_18wqh_44", N = "_content_18wqh_56", j = "_clickable_18wqh_94", v = "_image_18wqh_109", D = "_selected_18wqh_137", e = {
  card: q,
  head: u,
  center: y,
  content: N,
  clickable: j,
  "image-top": "_image-top_18wqh_109",
  "image-left": "_image-left_18wqh_119",
  "image-right": "_image-right_18wqh_120",
  image: v,
  selected: D
}, F = ({
  badge: m,
  checkbox: r,
  children: l,
  header: h,
  icon: _,
  image: o,
  imagePosition: s = "top",
  onClick: n,
  variant: c = "default"
}) => /* @__PURE__ */ i("article", { className: d(e.card, s && e[`image-${s}`], n && e.clickable, (r == null ? void 0 : r.checked) && e.selected), "data-minimal": c === "minimal", onClick: n, onKeyDown: (t) => {
  n && t.currentTarget === document.activeElement && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.currentTarget.click());
}, tabIndex: n ? 0 : -1, "data-component": "card", children: [
  o && c !== "minimal" && /* @__PURE__ */ a(f, { className: e.image, children: o }),
  /* @__PURE__ */ i("section", { children: [
    /* @__PURE__ */ i("div", { className: d(e.head, c === "minimal" && e.center), children: [
      r && /* @__PURE__ */ a("span", { onClick: (t) => t.stopPropagation(), children: /* @__PURE__ */ a(p, { ...r }) }),
      h,
      m && /* @__PURE__ */ a(g, { ...m }),
      _ && /* @__PURE__ */ a(w, { name: _, size: "medium" })
    ] }),
    l && /* @__PURE__ */ a("div", { className: e.content, children: l })
  ] })
] });
export {
  F as Card
};
//# sourceMappingURL=index.js.map
