1import{v as d,r as i,j as e,C as m,n as x,M as h,B as n,V as f,x as u}from"./index-Dx1y5dmn.js";function w(){const[g,t]=d();i.useEffect(()=>{const a=window.location.pathname;if(a.includes("%"))try{const s=decodeURIComponent(a);if(console.log("404 page - Decoded malformed URL [path redacted]"),s.includes("login")&&s.includes("redirect")){const o=s.match(/redirect=([^&]+)/);if(o){const r=decodeURIComponent(o[1]);console.log("404 page - Fixing login redirect [destination redacted]"),t(`/login?redirect=${encodeURIComponent(r)}`);return}}}catch(s){console.warn("404 page - Could not decode malformed URL:",s)}},[t]);const c=()=>{t("/")},l=()=>{window.location.reload()};return e.jsx("div",{className:"min-h-screen w-full flex items-center justify-center bg-gray-50",children:e.jsx(m,{className:"w-full max-w-md mx-4",children:e.jsx(x,{className:"pt-6",children:e.jsxs("div",{className:"flex flex-col items-center text-center",children:[e.jsx(h,{className:"h-12 w-12 text-red-500 mb-4"}),e.jsx("h1",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Page Not Found"}),e.jsx("p",{className:"text-gray-600 mb-6",children:"The page you're looking for doesn't exist or there was an issue with the link."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 w-full",children:[e.jsxs(n,{onClick:c,className:"flex-1",variant:"default",children:[e.jsx(f,{className:"w-4 h-4 mr-2"}),"Go Home"]}),e.jsxs(n,{onClick:l,className:"flex-1",variant:"outline",children:[e.jsx(u,{className:"w-4 h-4 mr-2"}),"Try Again"]})]})]})})})})}export{w as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.