"use client";
import { j as r } from "../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs";
import { formatLargeNumber as j, decimalUnits as w } from "../../../node_modules/.pnpm/@hyperplay_utils@0.3.18/node_modules/@hyperplay/utils/dist/index.es.mjs";
import { HoverCard as l } from "@mantine/core";
import o from "../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.mjs";
import u from "../../assets/FallbackPoints.svg.mjs";
import C from "../../assets/G7Credits.png.mjs";
import t from "./index.module.scss.mjs";
function k({
  className: x,
  classNames: e,
  imageUrl: d,
  name: s,
  symbol: n,
  balance: m,
  isGame7Credits: p,
  i18n: i,
  cardProps: f,
  ...h
}) {
  m = j(m, w, 2);
  let a = u;
  p && (a = C, n = "G7C", s = "Game7 Credits"), d && (a = d);
  let c = `Total ${s} claimed in this game.`;
  return i != null && i.totalClaimed && (c = i.totalClaimed), /* @__PURE__ */ r.jsxs(
    l,
    {
      withArrow: !0,
      arrowPosition: "center",
      position: "bottom",
      width: 344,
      classNames: { dropdown: t.dropdown, arrow: t.arrow },
      ...f,
      children: [
        /* @__PURE__ */ r.jsx(l.Target, { children: /* @__PURE__ */ r.jsxs("div", { className: o(t.root, x, e == null ? void 0 : e.root), ...h, children: [
          /* @__PURE__ */ r.jsx("img", { className: t.image, src: a }),
          /* @__PURE__ */ r.jsxs("div", { className: o(t.textContainer), children: [
            /* @__PURE__ */ r.jsx(
              "div",
              {
                className: o("title-sm", t.title),
                children: `${m} ${n}`
              }
            ),
            /* @__PURE__ */ r.jsx("div", { className: o("menu-item", t.name), children: s })
          ] })
        ] }) }),
        /* @__PURE__ */ r.jsx(l.Dropdown, { children: /* @__PURE__ */ r.jsx("div", { className: "menu-item", children: c }) })
      ]
    }
  );
}
export {
  k as PointsBalance
};
//# sourceMappingURL=index.mjs.map
