2 lines
2.1 KiB
JavaScript
2 lines
2.1 KiB
JavaScript
"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[9293],{40243:function(e,t,a){a.r(t),a.d(t,{ErrorPage:function(){return g},default:function(){return p}});var o=a.p+"e217d09d5f52145f24cc.png",r=a.p+"9977bdf408811d1dd51e.png",l=a.p+"0c3fc7e5bd85351aa4a2.png",n=a(12093),s=a(15867),c=a(95024),m=a(94159),u=a(90275);const g=({message:e,errorCode:t})=>{const a=(0,c.useFlag)(s.T.Enum["chaos-day-2022"]),g=(0,m.useMemo)((()=>a?o:"404"===t?l:r),[a,t]);return m.createElement(m.Fragment,null,m.createElement(u.ql,{title:"whoops!"}),m.createElement("div",{className:"container mx-auto mt-6 flex flex-row flex-wrap justify-center gap-6 bg-background text-bgText lg:flex-nowrap"},m.createElement("img",{className:"h-60 max-w-md flex-shrink object-contain sm:h-full",src:n.vf.public.static.staticAsset({path:g}).toString(),alt:"error bug"}),m.createElement("div",{className:"flex max-w-prose flex-col items-start gap-3 px-3 sm:justify-center sm:px-0"},m.createElement("h1",{className:"self-center font-league text-3xl font-bold text-bgText sm:self-auto sm:text-6xl"},"404"===t?"404!":"Uh oh!"),m.createElement("div",{className:"prose text-bgText prose-p:my-4"},m.createElement("p",null,e),m.createElement("p",null,"If you think you saw this page when you shouldn't have, please let us know by emailing"," ",m.createElement("a",{href:"mailto:support@cohost.org"},"support@cohost.org"),"."),m.createElement("p",null,"Logging out and back in might help get the site working for you again.",m.createElement("form",{method:"post",action:n.vf.public.logout().toString()},m.createElement("input",{className:"block max-w-max self-center rounded-lg bg-foreground py-2 pl-6 pr-6 leading-none text-text hover:bg-foreground-600 sm:self-auto",type:"submit",value:"log out"})))),m.createElement("a",{className:"block max-w-max self-center rounded-lg bg-foreground py-2 pl-6 pr-6 leading-none text-text hover:bg-foreground-600 sm:self-auto",href:n.vf.public.home().toString()},"go home"))))};g.displayName="error";var p=g}}]);
|
|
//# sourceMappingURL=client-preact-components-pages-error.f76de690f4fa4b1f7ae8.js.map
|