import k from "./accelbyte-widgets87.mjs";
import { accountWildCardRedirect as x } from "./accelbyte-widgets133.mjs";
import { AccPath as r } from "./accelbyte-widgets34.mjs";
import { UrlUtils as s } from "./accelbyte-widgets90.mjs";
import e from "react";
import { Switch as N, Route as t, Redirect as l, withRouter as A } from "react-router-dom";
import { accountPageNav as v, menuVisibility as w } from "./accelbyte-widgets134.mjs";
import H from "./accelbyte-widgets84.mjs";
import O from "./accelbyte-widgets36.mjs";
import R from "./accelbyte-widgets88.mjs";
import D from "./accelbyte-widgets89.mjs";
import C from "./accelbyte-widgets135.mjs";
import b from "./accelbyte-widgets92.mjs";
import S from "./accelbyte-widgets91.mjs";
import I from "./accelbyte-widgets85.mjs";
import L from "./accelbyte-widgets93.mjs";
import M from "./accelbyte-widgets94.mjs";
import V from "./accelbyte-widgets95.mjs";
import W from "./accelbyte-widgets96.mjs";
import B from "./accelbyte-widgets97.mjs";
import { RedeemCodePage as G } from "./accelbyte-widgets98.mjs";
class U extends e.Component {
  constructor(c) {
    super(c);
  }
  render() {
    const {
      accountOverview: c,
      profile: i,
      changePassword: u,
      purchasedItems: d,
      orderHistory: m,
      paymentMethods: p,
      redeemCode: P,
      notification: h,
      privacyRecords: f,
      personalData: g,
      deleteAccount: E,
      linkedAccounts: y
    } = w;
    return /* @__PURE__ */ e.createElement(k, { accountPageNav: v, ...this.props }, /* @__PURE__ */ e.createElement(N, null, c() && /* @__PURE__ */ e.createElement(t, { exact: !0, path: r.Overview.link, render: () => /* @__PURE__ */ e.createElement(I, null) }), d() && /* @__PURE__ */ e.createElement(t, { path: r.PurchasedItems.link, render: () => /* @__PURE__ */ e.createElement(B, null) }), p() && /* @__PURE__ */ e.createElement(t, { exact: !0, path: r.PaymentMethods.link, render: () => /* @__PURE__ */ e.createElement(L, null) }), u() && /* @__PURE__ */ e.createElement(t, { exact: !0, path: r.ChangePassword.link, render: () => /* @__PURE__ */ e.createElement(R, null) }), P() && /* @__PURE__ */ e.createElement(t, { exact: !0, path: r.RedeemCode.link, render: () => /* @__PURE__ */ e.createElement(G, null) }), m() && /* @__PURE__ */ e.createElement(
      t,
      {
        key: "OrderHistoryPage",
        exact: !0,
        path: r.OrderHistory.link,
        render: (n) => {
          const a = Number(s.silentSearchParamsBuilder(n.location.search).get("page")), o = !Number.isNaN(a) && a >= 1;
          return o ? o && /* @__PURE__ */ e.createElement(S, { page: a }) : /* @__PURE__ */ e.createElement(l, { to: r.OrderHistory.withSearchParams({ page: 1 }) });
        }
      }
    ), m() && /* @__PURE__ */ e.createElement(
      t,
      {
        key: "OrderHistoryDetailPage",
        path: r.OrderHistoryDetail.link,
        render: (n) => /* @__PURE__ */ e.createElement(b, { orderNo: n.match.params.orderNo })
      }
    ), i() && /* @__PURE__ */ e.createElement(t, { exact: !0, path: r.Profile.link, render: () => /* @__PURE__ */ e.createElement(W, null) }), i() && /* @__PURE__ */ e.createElement(t, { path: r.ProfileHistory.link, render: () => /* @__PURE__ */ e.createElement(O, null) }), y() && /* @__PURE__ */ e.createElement(t, { exact: !0, path: r.LinkedAccounts.link, render: () => /* @__PURE__ */ e.createElement(D, null) }), g() && /* @__PURE__ */ e.createElement(
      t,
      {
        exact: !0,
        path: r.PersonalData.link,
        render: (n) => {
          const a = Number(s.silentSearchParamsBuilder(n.location.search).get("page")), o = !Number.isNaN(a) && a >= 1;
          return o ? o && /* @__PURE__ */ e.createElement(M, { page: a }) : /* @__PURE__ */ e.createElement(l, { to: r.PersonalData.withSearchParams({ page: 1 }) });
        }
      }
    ), E() && /* @__PURE__ */ e.createElement(t, { exact: !0, path: r.AccountDeletion.link, render: () => /* @__PURE__ */ e.createElement(H, null) }), h() && /* @__PURE__ */ e.createElement(t, { exact: !0, path: r.NotificationPreferences.link, render: () => /* @__PURE__ */ e.createElement(C, null) }), f() && /* @__PURE__ */ e.createElement(t, { exact: !0, path: r.PrivacyRecords.link, render: () => /* @__PURE__ */ e.createElement(V, null) }), /* @__PURE__ */ e.createElement(l, { from: "/**", to: x() })));
  }
}
const me = A(U);
export {
  me as default
};
