import { jsx as i } from "react/jsx-runtime";
import { CancelRounded as f, Info as p } from "@mui/icons-material";
import o from "./result.js";
import r from "./translations.js";
import { useLocaleContext as d } from "../Locale/context.js";
import { useTheme as m } from "@mui/material";
import "../Theme/theme.js";
import "../Theme/theme-provider.js";
const e = (t) => {
  t = ["zh", "en"].includes(t) ? t : "";
  const { locale: n } = d() || { locale: "en" }, c = t || n;
  return r[c] ? c : "en";
};
function a({ locale: t, ...n }) {
  return t = e(t), /* @__PURE__ */ i(
    o,
    {
      icon: /* @__PURE__ */ i(s, {}),
      title: r[t][404].title,
      description: r[t][404].description,
      ...n
    }
  );
}
a.status = "404";
function S({ locale: t, ...n }) {
  return t = e(t), /* @__PURE__ */ i(
    o,
    {
      icon: /* @__PURE__ */ i(s, {}),
      title: r[t][403].title,
      description: r[t][403].description,
      ...n
    }
  );
}
S.status = "403";
function I({ locale: t, ...n }) {
  return t = e(t), /* @__PURE__ */ i(
    o,
    {
      icon: /* @__PURE__ */ i(s, {}),
      title: r[t][500].title,
      description: r[t][500].description,
      ...n
    }
  );
}
I.status = "500";
function g({ locale: t, ...n }) {
  return t = e(t), /* @__PURE__ */ i(
    o,
    {
      icon: /* @__PURE__ */ i(s, {}),
      title: r[t].error.title,
      description: r[t].error.description,
      ...n
    }
  );
}
g.status = "error";
function h({ locale: t, ...n }) {
  return t = e(t), /* @__PURE__ */ i(
    o,
    {
      icon: /* @__PURE__ */ i(u, {}),
      title: r[t].maintenance.title,
      description: r[t].maintenance.description,
      ...n
    }
  );
}
h.status = "maintenance";
function x({ locale: t, ...n }) {
  return t = e(t), /* @__PURE__ */ i(
    o,
    {
      icon: /* @__PURE__ */ i(u, {}),
      title: r[t].comingSoon.title,
      description: r[t].comingSoon.description,
      ...n
    }
  );
}
x.status = "comingSoon";
function y(t) {
  return /* @__PURE__ */ i(o, { icon: /* @__PURE__ */ i(u, {}), ...t });
}
y.status = "info";
function s(t) {
  const n = m();
  return /* @__PURE__ */ i(f, { style: { color: n.palette.error.main, fontSize: 72 }, ...t });
}
function u(t) {
  const n = m();
  return /* @__PURE__ */ i(p, { style: { color: n.palette.info.main, fontSize: 72 }, ...t });
}
export {
  x as ComingSoon,
  g as Error,
  S as Forbidden,
  y as Info,
  I as InternalServerError,
  h as Maintenance,
  a as PageNotFound
};
