import { PrivateRoute as o } from "./accelbyte-widgets32.mjs";
import { Ctx as m } from "./accelbyte-widgets33.mjs";
import { AccPath as r } from "./accelbyte-widgets34.mjs";
import { LoginPath as n } from "./accelbyte-widgets35.mjs";
import { IamHelper as c } from "@accelbyte/sdk-iam";
import e from "react";
import { Route as t } from "react-router-dom";
import l from "./accelbyte-widgets36.mjs";
import u from "./accelbyte-widgets37.mjs";
import p from "./accelbyte-widgets38.mjs";
import g from "./accelbyte-widgets39.mjs";
import E from "./accelbyte-widgets40.mjs";
import f from "./accelbyte-widgets41.mjs";
import R from "./accelbyte-widgets42.mjs";
import d from "./accelbyte-widgets43.mjs";
function _() {
  const a = m.getAppState();
  return [
    /* @__PURE__ */ e.createElement(t, { key: "LoginPageRoute", exact: !0, path: n.Login.link, render: () => /* @__PURE__ */ e.createElement(g, null) }),
    /* @__PURE__ */ e.createElement(t, { key: "LogoutPageRoute", exact: !0, path: n.Logout.link, render: () => /* @__PURE__ */ e.createElement(d, null) }),
    /* @__PURE__ */ e.createElement(t, { key: "RegisterPageRoute", exact: !0, path: n.Register.link, render: () => /* @__PURE__ */ e.createElement(E, null) }),
    /* @__PURE__ */ e.createElement(
      t,
      {
        key: "InvitationPageRoute",
        exact: !0,
        path: n.Invitation.link,
        render: (i) => /* @__PURE__ */ e.createElement(p, { invitationId: i.match.params.invitationId })
      }
    ),
    /* @__PURE__ */ e.createElement(o, { key: "ChangeEmailPageRoute", exact: !0, path: r.ChangeEmail.link, render: () => /* @__PURE__ */ e.createElement(f, null) }),
    /* @__PURE__ */ e.createElement(o, { key: "AccountHistoryPageRoute", path: r.AccountHistory.link, render: () => /* @__PURE__ */ e.createElement(l, null) }),
    /* @__PURE__ */ e.createElement(o, { key: "AccountPageRoute", path: r.Account.link, render: () => /* @__PURE__ */ e.createElement(u, null) }),
    c.currentUserIsHeadlessAccount(a.getUser()) && /* @__PURE__ */ e.createElement(t, { exact: !0, path: r.UpgradeAccount.link, render: () => /* @__PURE__ */ e.createElement(R, null) })
  ];
}
export {
  _ as AccountRoutesWidget
};
