"use client";
import { j as d } from "../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs";
import { Card as f, Image as h } from "@mantine/core";
import r from "../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.mjs";
import i from "../../assets/fallback_achievement.svg.mjs";
import t from "./index.module.scss.mjs";
function c({
  image: l,
  imageProps: p = {},
  showLabel: x = !1,
  i18n: j = {
    label: "Label"
  },
  statusIcon: u,
  children: v,
  className: m,
  genericClassNames: o,
  showGradientBorderAndShadow: b = !1,
  ...y
}) {
  return /* @__PURE__ */ d.jsxs(
    f,
    {
      className: r(
        {
          gradientShadow: !b,
          gradientBorderOnHover: !b
        },
        t.card,
        o == null ? void 0 : o.root,
        m
      ),
      ...y,
      unstyled: !0,
      children: [
        /* @__PURE__ */ d.jsxs(
          f.Section,
          {
            pos: "relative",
            className: r(
              t.image,
              t.mantineOverRide,
              o == null ? void 0 : o.image
            ),
            children: [
              /* @__PURE__ */ d.jsx(
                h,
                {
                  src: l,
                  fallbackSrc: i,
                  ...p,
                  className: t.achievementImage
                }
              ),
              x && /* @__PURE__ */ d.jsx(
                "div",
                {
                  className: r(t.label, "eyebrow", o == null ? void 0 : o.label),
                  children: j.label
                }
              )
            ]
          }
        ),
        u,
        /* @__PURE__ */ d.jsx("div", { className: r(t.cardBody, o == null ? void 0 : o.body), children: v })
      ]
    }
  );
}
export {
  c as CardGeneric
};
//# sourceMappingURL=index.mjs.map
