import{c as v,j as n,B as a,O as w,V as z,ab as p,cI as I}from"./index-DR3HTfO6.js";const k=v(n.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m4.3 14.3c-.39.39-1.02.39-1.41 0L12 13.41 9.11 16.3c-.39.39-1.02.39-1.41 0a.996.996 0 0 1 0-1.41L10.59 12 7.7 9.11a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L12 10.59l2.89-2.89c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41L13.41 12l2.89 2.89c.38.38.38 1.02 0 1.41"}));function r({icon:e=null,title:t="",description:o="",extra:b=null,...y}){return n.jsxs(E,{...y,children:[e,typeof t=="string"?n.jsx(a,{sx:{mt:3,fontSize:22,fontWeight:400,color:"text.primary",textAlign:"center"},children:t}):t,typeof o=="string"?n.jsx(a,{sx:{mt:1,fontSize:14,color:"text.secondary",textAlign:"center"},children:o}):o,n.jsx(a,{sx:{mt:3},children:b})]})}const E=w("div")`
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 16px;

  background-color: ${({theme:e})=>e.palette?.background?.default||"#F7F8F8"};
`,i={en:{404:{title:"404 - Page Not Found",description:"Sorry about that, the page you are looking for does not exist or has been moved."},403:{title:"403 – Forbidden",description:"Sorry, you are not authorized to access this page."},500:{title:"500 - Internal Server Error",description:"An internal server error has occurred. Please try again later."},error:{title:"Application Error",description:"Something went wrong. Please try again later."},maintenance:{title:"Offline for maintenance",description:"This app is undergoing maintenance right now. Please check back later."},comingSoon:{title:"Coming Soon",description:"Our website is under construction. We'll be here soon with our new website."}},zh:{404:{title:"404 - 页面未找到",description:"很抱歉，您正在寻找的页面不存在或已被移动。"},403:{title:"403 – 禁止访问",description:"很抱歉，您没有权限访问此页面。"},500:{title:"500 - 内部服务器错误",description:"发生了一个内部服务器错误。请稍后再试。"},error:{title:"Application Error",description:"出错了, 请稍后再试。"},maintenance:{title:"维护中",description:"应用程序正在进行维护。请稍后再查看。"},comingSoon:{title:"即将上线",description:"我们的网站正在建设中。我们很快就会在这里推出我们的新网站。"}}},s=e=>{e=["zh","en"].includes(e)?e:"";const{locale:t}=z()||{locale:"en"},o=e||t;return i[o]?o:"en"};function x({locale:e,...t}){return e=s(e),n.jsx(r,{icon:n.jsx(c,{}),title:i[e][404].title,description:i[e][404].description,...t})}x.status="404";function f({locale:e,...t}){return e=s(e),n.jsx(r,{icon:n.jsx(c,{}),title:i[e][403].title,description:i[e][403].description,...t})}f.status="403";function g({locale:e,...t}){return e=s(e),n.jsx(r,{icon:n.jsx(c,{}),title:i[e][500].title,description:i[e][500].description,...t})}g.status="500";function j({locale:e,...t}){return e=s(e),n.jsx(r,{icon:n.jsx(c,{}),title:i[e].error.title,description:i[e].error.description,...t})}j.status="error";function m({locale:e,...t}){return e=s(e),n.jsx(r,{icon:n.jsx(d,{}),title:i[e].maintenance.title,description:i[e].maintenance.description,...t})}m.status="maintenance";function h({locale:e,...t}){return e=s(e),n.jsx(r,{icon:n.jsx(d,{}),title:i[e].comingSoon.title,description:i[e].comingSoon.description,...t})}h.status="comingSoon";function S(e){return n.jsx(r,{icon:n.jsx(d,{}),...e})}S.status="info";function c(e){const t=p();return n.jsx(k,{style:{color:t.palette.error.main,fontSize:72},...e})}function d(e){const t=p();return n.jsx(I,{style:{color:t.palette.info.main,fontSize:72},...e})}const l=Object.freeze(Object.defineProperty({__proto__:null,ComingSoon:h,Error:j,Forbidden:f,Info:S,InternalServerError:g,Maintenance:m,PageNotFound:x},Symbol.toStringTag,{value:"Module"})),u=Object.keys(l).reduce((e,t)=>({...e,[l[t].status||t]:l[t]}),{});function O({status:e="",...t}){if(e){if(u[e]){const o=u[e];return n.jsx(o,{...t})}throw new Error(`Please provide a valid status for Result.status. Valid values are: ${Object.keys(u).join(", ")}`)}return n.jsx(r,{...t})}export{O as p};
