import { getCurrentLanguage as m } from "./accelbyte-widgets58.mjs";
import { PrivateRoute as i } from "./accelbyte-widgets32.mjs";
import { EcomPath as a } from "./accelbyte-widgets59.mjs";
import e from "react";
import { Route as r } from "react-router-dom";
import l from "./accelbyte-widgets60.mjs";
import c from "./accelbyte-widgets61.mjs";
import p from "./accelbyte-widgets62.mjs";
import d from "./accelbyte-widgets63.mjs";
import g from "./accelbyte-widgets64.mjs";
import I from "./accelbyte-widgets65.mjs";
import u from "./accelbyte-widgets66.mjs";
import P from "./accelbyte-widgets67.mjs";
function b() {
  return [
    /* @__PURE__ */ e.createElement(
      r,
      {
        key: "GameDetailPage",
        exact: !0,
        path: a.GameItem.link,
        render: (t) => /* @__PURE__ */ e.createElement(u, { itemId: t.match.params.itemId, language: m() })
      }
    ),
    /* @__PURE__ */ e.createElement(
      r,
      {
        key: "DlcDetailItemPage",
        exact: !0,
        path: a.DlcItem.link,
        render: (t) => /* @__PURE__ */ e.createElement(I, { itemId: t.match.params.itemId, language: m() })
      }
    ),
    /* @__PURE__ */ e.createElement(
      r,
      {
        key: "InGameDetailItemPage",
        exact: !0,
        path: a.InGameItem.link,
        render: (t) => /* @__PURE__ */ e.createElement(P, { itemId: t.match.params.itemId, language: m() })
      }
    ),
    /* @__PURE__ */ e.createElement(
      r,
      {
        key: "BundleDetailItemPage",
        exact: !0,
        path: a.BundleItem.link,
        render: (t) => /* @__PURE__ */ e.createElement(d, { itemId: t.match.params.itemId, language: m() })
      }
    ),
    /* @__PURE__ */ e.createElement(
      r,
      {
        key: "CodeItemDetailPage",
        exact: !0,
        path: a.CodeItem.link,
        render: (t) => /* @__PURE__ */ e.createElement(c, { itemId: t.match.params.itemId, language: m() })
      }
    ),
    /* @__PURE__ */ e.createElement(
      r,
      {
        key: "OptionboxDetailPage",
        exact: !0,
        path: a.OptionboxItem.link,
        render: (t) => /* @__PURE__ */ e.createElement(g, { itemId: t.match.params.itemId, language: m() })
      }
    ),
    /* @__PURE__ */ e.createElement(
      i,
      {
        key: "OrderDetailPage",
        exact: !0,
        path: a.OrderDetail.link,
        render: (t) => {
          const n = t, o = new URLSearchParams(n.location.search).get("referrer");
          return /* @__PURE__ */ e.createElement(l, { orderNo: n.match.params.orderNo, redirectPath: o || void 0 });
        }
      }
    ),
    /* @__PURE__ */ e.createElement(r, { key: "StorePage", path: a.Store.link, render: () => /* @__PURE__ */ e.createElement(p, null) })
  ];
}
export {
  b as EcommerceRoutesWidget
};
