import { k as n, l as s, N as c, T as t, a } from "./index-162fd1aa.mjs";
import { A as l } from "./AccountDeletionSuccessPageLock-3a9c670d.mjs";
import e from "react";
import { Redirect as r, Link as m } from "react-router-dom";
import "./dateFns-2367ee5b.mjs";
import "./validator-61879ab7.mjs";
import "./reactPlayer-2f69f369.mjs";
import "./reactSlick-cb4a2d39.mjs";
class A extends e.Component {
  componentDidMount() {
    n.updateBackground(`url(${s})`);
  }
  componentWillUnmount() {
    n.updateBackground(null);
  }
  render() {
    if (!l.peek())
      return /* @__PURE__ */ e.createElement(r, { to: c.Home.link });
    const o = 28;
    async function i() {
      a.getGdprManager().ignoreDeletionMark(), l.unlock(), await a.getAppState().logout();
    }
    return /* @__PURE__ */ e.createElement("div", { className: "deletionSuccessContainer" }, /* @__PURE__ */ e.createElement("main", null, /* @__PURE__ */ e.createElement("p", { className: "title" }, /* @__PURE__ */ e.createElement(t, { i18nKey: "RequestAccountDeletionSuccessPage.title" }, "Account Deletion")), /* @__PURE__ */ e.createElement("div", { className: "content" }, /* @__PURE__ */ e.createElement(t, { i18nKey: "RequestAccountDeletionSuccessPage.content" }, /* @__PURE__ */ e.createElement("p", { className: "top" }, "Your account is scheduled for deletion in ", { daysLeft: o }, " days. You will have the option to cancel the deletion process by logging in to your account within the next", { daysLeft: o }, " days."), /* @__PURE__ */ e.createElement("p", { className: "bottom" }, "We hope you come back soon!"))), /* @__PURE__ */ e.createElement(m, { onClick: i, to: c.Home.link, className: "btn big btn-primary btnGoToHome" }, /* @__PURE__ */ e.createElement(t, { i18nKey: "RequestAccountDeletionSuccessPage.button.goToHomepage" }, "Go To Homepage"))));
  }
}
export {
  A as default
};
