import{I as p,J as y,K as w,M as k,r as c,_ as S,j as e,N,P as b,O as v,Q as h,S as u,T as E}from"./components-DlWBUmqp.js";import{l as T,v as M,w as O,x as B,y as H,z as L,E as I,B as P,G as f}from"./loginFormSchema-DG-AOL3J.js";/**
 * @remix-run/react v2.13.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */let m="positions";function _({getKey:t,...s}){let{isSpaMode:a}=p(),r=y(),l=w();k({getKey:t,storageKey:m});let i=c.useMemo(()=>{if(!t)return null;let n=t(r,l);return n!==r.key?n:null},[]);if(a)return null;let g=((n,j)=>{if(!window.history.state||!window.history.state.key){let o=Math.random().toString(32).slice(2);window.history.replaceState({key:o},"")}try{let x=JSON.parse(sessionStorage.getItem(n)||"{}")[j||window.history.state.key];typeof x=="number"&&window.scrollTo(0,x)}catch(o){console.error(o),sessionStorage.removeItem(n)}}).toString();return c.createElement("script",S({},s,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${g})(${JSON.stringify(m)}, ${JSON.stringify(i)})`}}))}function C(){const{toasts:t}=T();return e.jsxs(M,{children:[t.map(function({id:s,title:a,description:r,action:l,...i}){return e.jsxs(O,{...i,children:[e.jsxs("div",{className:"grid gap-1",children:[a&&e.jsx(B,{children:a}),r&&e.jsx(H,{children:r})]}),l,e.jsx(L,{})]},s)}),e.jsx(I,{})]})}const R=()=>e.jsxs("div",{className:"mx-auto max-w-screen-sm text-center",children:[e.jsx("h1",{className:"text-primary-600 dark:text-primary-500 mb-4 text-7xl font-extrabold tracking-tight lg:text-9xl",children:"404"}),e.jsx("p",{className:"mb-4 text-lg font-light text-gray-500 dark:text-gray-400",children:"Page not found"})]}),J=()=>e.jsxs("div",{className:"mx-auto max-w-screen-sm text-center",children:[e.jsx("h1",{className:"text-primary-600 dark:text-primary-500 mb-4 text-7xl font-extrabold tracking-tight lg:text-9xl",children:"400"}),e.jsx("p",{className:"mb-4 text-lg font-light text-gray-500 dark:text-gray-400",children:"Error: Something went wrong"})]}),d=()=>e.jsxs("div",{className:"mx-auto max-w-screen-sm text-center",children:[e.jsx("h1",{className:"text-primary-600 dark:text-primary-500 mb-4 text-7xl font-extrabold tracking-tight lg:text-9xl",children:"500"}),e.jsx("p",{className:"mb-4 text-lg font-light text-gray-500 dark:text-gray-400",children:"Internal Server Error"})]}),W=()=>e.jsx(P,{asChild:!0,children:e.jsx(b,{to:"/home",children:"Back to Home"})});function $(){const t=N();let s;if(!t.status)s=e.jsx(d,{});else switch(t.status){case 404:s=e.jsx(R,{});break;case 400:s=e.jsx(J,{});break;default:s=e.jsx(d,{});break}return e.jsx("div",{className:"flex h-screen flex-col items-center justify-center",children:e.jsx("div",{className:"h-screen w-full bg-cover bg-center",children:e.jsx("div",{className:"flex h-full w-full  items-center justify-center backdrop-brightness-50",children:e.jsxs("span",{className:"w-1/2 text-center text-4xl text-white",children:[s,e.jsx("div",{className:"flex justify-center my-8",children:e.jsx(W,{})})]})})})})}const A="/assets/tailwind-BiDkgXiU.css",D="/assets/theme-tcxMbmk3.css",F=()=>[{rel:"stylesheet",href:D},{rel:"stylesheet",href:A},{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Work+Sans:wght@300;400;500;600;700;800;900&family=Open+Sans:wght@300;400;500;600;700;800&family=Oswald:wght@200;300;400;500;600;700&family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap"}],G=typeof document<"u";function K({children:t}){return e.jsxs("html",{lang:"en",children:[e.jsxs("head",{children:[e.jsx("meta",{charSet:"utf-8"}),e.jsx("meta",{name:"viewport",content:"width=device-width,initial-scale=1"}),e.jsx(h,{}),e.jsx(u,{})]}),e.jsx("body",{children:e.jsxs(f,{platform:"xaeon-web",children:[t,e.jsx(_,{}),e.jsx(E,{}),e.jsx(C,{})]})})]})}function Q(){return e.jsx(v,{})}function U(){return G?c.createElement("html",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:document.getElementsByTagName("html")[0].innerHTML}}):e.jsxs("html",{lang:"en",children:[e.jsxs("head",{children:[e.jsx("title",{children:"XAEON"}),e.jsx("meta",{charSet:"utf-8"}),e.jsx("meta",{name:"viewport",content:"width=device-width,initial-scale=1"}),e.jsx(h,{}),e.jsx(u,{})]}),e.jsx("body",{children:e.jsx(f,{platform:"xaeon-web",children:e.jsx($,{})})})]})}export{U as ErrorBoundary,K as Layout,Q as default,F as links};
