"use client";
import { j as e } from "../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs";
import a from "../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.mjs";
import "react";
import { ReactComponent as d } from "../../assets/images/QuestScrollIcon.svg.mjs";
import { ReactComponent as p } from "../../assets/images/Diamond.svg.mjs";
import { ToastGeneric as C } from "../ToastGeneric/index.mjs";
import o from "./ToastQuest.module.scss.mjs";
function y({
  status: i,
  onCloseClick: x,
  i18n: t = {
    overlayToggleKey: "X",
    overlayToggleModKey: "option",
    toSeeDetails: "to see details.",
    toClaimReward: "to claim your reward.",
    questAvailable: "Quest available!",
    questComplete: "Quest complete!",
    plus: "+",
    rewardClaimed: "Claim successful",
    youHaveClaimed: "You have claimed {{numberClaimed}} rewards."
  }
}) {
  let l = "", m = "", c = /* @__PURE__ */ e.jsx(d, {}), r = "";
  const u = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
    /* @__PURE__ */ e.jsx("div", { className: a("menu", o.emphasisText), children: t.overlayToggleModKey }),
    t.plus,
    /* @__PURE__ */ e.jsx("div", { className: a("menu", o.emphasisText), children: t.overlayToggleKey })
  ] });
  function n({
    subtextText: s
  }) {
    return /* @__PURE__ */ e.jsx("div", { className: a("caption", o.subtextRow), children: s });
  }
  if (i === "available") {
    l = t.questAvailable;
    const s = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
      u,
      " ",
      t.toSeeDetails
    ] });
    m = /* @__PURE__ */ e.jsx(n, { subtextText: s }), r = o.questIconContainer;
  } else if (i === "completed") {
    l = t.questComplete;
    const s = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
      u,
      " ",
      t.toClaimReward
    ] });
    m = /* @__PURE__ */ e.jsx(n, { subtextText: s }), r = a(o.questIconContainer, o.completed);
  } else if (i === "claimed") {
    l = t.rewardClaimed;
    const s = /* @__PURE__ */ e.jsx(e.Fragment, { children: t.youHaveClaimed });
    m = /* @__PURE__ */ e.jsx(n, { subtextText: s }), r = a(o.questIconContainer, o.completed), c = /* @__PURE__ */ e.jsx(p, {});
  }
  return /* @__PURE__ */ e.jsx(
    C,
    {
      title: l,
      subtext: m,
      onClick: x,
      image: c,
      classNames: { image: r, root: o.root },
      showCloseButton: !0
    }
  );
}
export {
  y as ToastQuest
};
//# sourceMappingURL=index.mjs.map
