import { Dialog as i, DialogBody as o, DialogFooter as m } from "./accelbyte-widgets235.mjs";
import { FailedIcon as c } from "./accelbyte-widgets540.mjs";
import { t as n } from "./accelbyte-widgets58.mjs";
import { Env as r } from "./accelbyte-widgets108.mjs";
import e from "react";
import { Trans as t } from "react-i18next";
import "./accelbyte-widgets541.mjs";
const F = (l) => {
  const a = r.CONTACT_SUPPORT_EMAIL;
  return /* @__PURE__ */ e.createElement(i, { title: n("AppDetailPage.dialog.claimFailed.title"), isOpen: !0, className: "claimStatusDialog" }, /* @__PURE__ */ e.createElement(o, null, /* @__PURE__ */ e.createElement(c, { className: "failedIcon" }), !a && /* @__PURE__ */ e.createElement(t, { i18nKey: "AppDetailPage.dialog.claimFailed.content" }, /* @__PURE__ */ e.createElement("p", { className: "failedMessage" }, "Failed to claim the game. Please contact support for assistance.")), a && /* @__PURE__ */ e.createElement(t, { i18nKey: "AppDetailPage.dialog.claimFailed.contentWithEmail" }, /* @__PURE__ */ e.createElement("p", { className: "failedMessage" }, "Failed to claim the game. Please contact support at ", /* @__PURE__ */ e.createElement("a", { href: `mailto:${a}` }, { contactSupportEmail: a }), " ", "for assistance."))), /* @__PURE__ */ e.createElement(m, { className: "dialogFooter" }, /* @__PURE__ */ e.createElement("button", { onClick: l.onCloseDialog, className: "btn btnClose" }, /* @__PURE__ */ e.createElement(t, { i18nKey: "AppDetailPage.dialog.claimFailed.close" }, "Close"))));
};
export {
  F as ClaimFailedDialog
};
