Files
e-tib.com/.next/server/chunks/ssr/_1952759f._.js
Marc Mintel d14122005d Initial commit: E-TIB production hardening & E2E foundation
Former-commit-id: ef04fca3d76375630c05aac117bf586953f3b657
2026-04-28 19:11:38 +02:00

5 lines
4.5 KiB
JavaScript

;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="e6cac3b4-dda4-efab-e229-65e802298d15")}catch(e){}}();
module.exports=[224650,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/components/analytics/ClientNotFoundTracker.tsx <module evaluation> from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/analytics/ClientNotFoundTracker.tsx <module evaluation>","default")},588684,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/components/analytics/ClientNotFoundTracker.tsx from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/analytics/ClientNotFoundTracker.tsx","default")},230492,a=>{"use strict";a.i(224650);var b=a.i(588684);a.n(b)},825138,a=>a.a(async(b,c)=>{try{var d=a.i(998511),e=a.i(183751);a.i(280896);var f=a.i(873035),g=a.i(401719),h=a.i(277870),i=a.i(77716),j=a.i(488582),k=a.i(273824),l=a.i(393001),m=a.i(230492),n=b([k]);async function o(){console.log("--- NOT FOUND RENDERED ---");let a=await (0,e.getTranslations)("Error.notFound"),b=(await (0,l.headers)()).get("x-invoke-path")||"",c=null,n=null;if(b){let a=b.split("/").filter(Boolean).pop();if(a)try{let d=await (0,j.getPayload)({config:k.default}),e=await d.find({collection:"posts",where:{slug:{equals:a}},locale:"all",limit:1}),f=0===e.docs.length?await d.find({collection:"competences",where:{slug:{equals:a}},locale:"all",limit:1}):{docs:[]},g=0===e.docs.length&&0===f.docs.length?await d.find({collection:"pages",where:{slug:{equals:a}},locale:"all",limit:1}):{docs:[]};if(e.docs[0]||f.docs[0]||g.docs[0]){let a=b.startsWith("/en")?"en":"de",d="de"===a?"en":"de";n="de"===d?"Deutsch":"English";let e=b.split("/").filter(Boolean);e.length>0&&("en"===e[0]||"de"===e[0])?e[0]=d:e.unshift(d),c="/"+e.join("/")}}catch{}}return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(m.default,{path:b}),(0,d.jsxs)(f.Container,{className:"relative py-24 flex flex-col items-center justify-center text-center min-h-[70vh] overflow-hidden",children:[(0,d.jsx)("div",{className:"absolute inset-0 -z-10 opacity-[0.03] pointer-events-none flex items-center justify-center",children:(0,d.jsx)("span",{className:"text-[20rem] font-bold select-none",children:"404"})}),(0,d.jsxs)("div",{className:"relative mb-8",children:[(0,d.jsx)(h.Heading,{level:1,className:"text-6xl md:text-8xl font-bold mb-2",children:"404"}),(0,d.jsx)(i.default,{variant:"circle",className:"w-[150%] h-[150%] -top-[25%] -left-[25%] text-accent/40"})]}),(0,d.jsx)(h.Heading,{level:2,className:"text-2xl md:text-3xl font-bold mb-4 text-primary",children:a("title")}),(0,d.jsx)("p",{className:"text-text-secondary mb-10 max-w-md text-lg",children:a("description")}),c&&(0,d.jsxs)("div",{className:"mb-12 p-6 bg-accent/10 border border-accent/20 rounded-2xl animate-fade-in shadow-lg relative overflow-hidden group",children:[(0,d.jsx)("div",{className:"absolute inset-0 bg-accent/5 -skew-x-12 translate-x-full group-hover:translate-x-0 transition-transform duration-700"}),(0,d.jsxs)("div",{className:"relative z-10",children:[(0,d.jsxs)("h3",{className:"text-primary font-bold mb-2 text-lg",children:["Did you mean to visit the ",n," version?"]}),(0,d.jsx)("p",{className:"text-text-secondary text-sm mb-4",children:"This page exists, but in another language."}),(0,d.jsxs)(g.Button,{href:c,variant:"accent",size:"md",className:"w-full sm:w-auto",children:["Go to ",n," Version"]})]})]}),(0,d.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4",children:[(0,d.jsx)(g.Button,{href:"/",variant:c?"outline":"accent",size:"lg",children:a("cta")}),(0,d.jsx)(g.Button,{href:"/contact",variant:c?"ghost":"outline",size:"lg",children:"Contact Support"})]}),(0,d.jsx)("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-px h-24 bg-gradient-to-t from-accent/50 to-transparent"})]})]})}[k]=n.then?(await n)():n,a.s(["default",()=>o]),c()}catch(a){c(a)}},!1)];
//# debugId=e6cac3b4-dda4-efab-e229-65e802298d15
//# sourceMappingURL=_1952759f._.js.map