import { a as o, Q as n, T as t, f as a, E as s } from "./index-162fd1aa.mjs";
import { b as l } from "./brokenRocket-303762d8.mjs";
import { s as i } from "./starBgGradient-589e5185.mjs";
import * as e from "react";
import "./ErrorPage-4ed993c7.mjs";
import "./dateFns-2367ee5b.mjs";
import "./validator-61879ab7.mjs";
import "./reactPlayer-2f69f369.mjs";
import "react-router-dom";
import "./reactSlick-cb4a2d39.mjs";
class C extends e.Component {
  constructor() {
    super(...arguments), this.logout = () => {
      o.getAppState().state.appHistory.push(n.Logout.link);
    }, this.reloadPage = () => window.location.reload();
  }
  render() {
    const r = s.CONTACT_SUPPORT_EMAIL;
    return /* @__PURE__ */ e.createElement("div", { className: "mainPageContainer" }, /* @__PURE__ */ e.createElement("div", { className: "errorPage", style: { backgroundImage: `url(${i})` } }, /* @__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 {
  C as default
};
