import { Button as a } from "./accelbyte-widgets107.mjs";
import { Ctx as o } from "./accelbyte-widgets33.mjs";
import { Env as n } from "./accelbyte-widgets108.mjs";
import { LoginPath as s } from "./accelbyte-widgets35.mjs";
import l from "./accelbyte-widgets109.mjs";
import m from "./accelbyte-widgets110.mjs";
import * as e from "react";
import { Trans as t } from "react-i18next";
import "./accelbyte-widgets111.mjs";
class f extends e.Component {
  constructor() {
    super(...arguments), this.logout = () => {
      o.getAppState().state.appHistory.push(s.Logout.link);
    }, this.reloadPage = () => window.location.reload();
  }
  render() {
    const r = n.CONTACT_SUPPORT_EMAIL;
    return /* @__PURE__ */ e.createElement("div", { className: "mainPageContainer" }, /* @__PURE__ */ e.createElement("div", { className: "errorPage", style: { backgroundImage: `url(${m})` } }, /* @__PURE__ */ e.createElement("div", { className: "errorPageContentWrapper errorFetchUser" }, /* @__PURE__ */ e.createElement("div", { className: "errorPageContent" }, /* @__PURE__ */ e.createElement("img", { src: l, alt: "space ship alien", loading: "lazy" }), /* @__PURE__ */ e.createElement("div", { className: "errorPageText" }, /* @__PURE__ */ e.createElement("h2", { className: "textHeading" }, /* @__PURE__ */ e.createElement(t, { i18nKey: "FetchUserErrorPage.title" }, "Internal Server Error")), /* @__PURE__ */ e.createElement("div", { className: "textContent" }, !!r && /* @__PURE__ */ e.createElement(t, { i18nKey: "FetchUserErrorPage.textContentWithSupport" }, /* @__PURE__ */ e.createElement("p", null, "Oops.. Something went wrong. Try to refresh this page or log in again. If the problem persists, please contact our support at ", /* @__PURE__ */ e.createElement("a", { href: `mailto:${r}` }, { contactSupportEmail: r }))), !r && /* @__PURE__ */ e.createElement(t, { i18nKey: "FetchUserErrorPage.textContent" }, /* @__PURE__ */ e.createElement("p", null, "Don't worry, our team on Mars is working hard to fix this! For now let's retreat to our home page.")), /* @__PURE__ */ e.createElement("div", { className: "buttonWrapper" }, /* @__PURE__ */ e.createElement(a, { className: "btn btn-primary", onClick: this.reloadPage }, /* @__PURE__ */ e.createElement(t, { i18nKey: "FetchUserErrorPage.refresh" }, "Refresh")), /* @__PURE__ */ e.createElement(a, { className: "btn", onClick: this.logout }, /* @__PURE__ */ e.createElement(t, { i18nKey: "FetchUserErrorPage.logout" }, "Log out")))))))));
  }
}
export {
  f as default
};
