
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="01a1c9e9-83dc-551b-afb5-4fc4790cf6fb")}catch(e){}}();
import{j as s}from"./jsx-runtime-C7NhH_hV.js";import{c as m}from"./index-BUTHYIml.js";import{r as u}from"./index-Wp2u197Z.js";import{u as g}from"./useTranslation-C3yZl8Qm.js";import{u as j,a as N}from"./index-f2gNX814.js";import{u as y,L as b}from"./components-Dt5xBELm.js";const P=({isFullWidth:r=!1,inline:n=!1,errorCode:t="404",publicationPresent:o=!0,customTitle:f,customDescription:p,error:e})=>{const{t:a,i18n:l}=g(),h=l.exists(`errors.${t}.title`)?a(`errors.${t}.title`):a("errors.fallback.title"),d=l.exists(`errors.${t}.description`)?a(`errors.${t}.description`):a("errors.fallback.description"),c=j(),{pathname:x}=N(),[i]=y();return u.useEffect(()=>{t==="404"&&!i.has("404")&&c(`/?${new URLSearchParams({404:x})}`)},[t,x,i,c]),s.jsx("div",{className:m("mx-auto flex items-center justify-center bg-white px-4 py-24",n?"":"min-h-screen",r?"w-full":"max-w-3xl"),children:s.jsx("div",{className:m("mx-auto",r?"max-w-screen-lg":"max-w-max"),children:s.jsxs("main",{className:"sm:flex",children:[t!=="0"&&s.jsx("p",{className:"text-4xl font-extrabold text-gray-600 sm:text-5xl",children:t}),s.jsx("div",{className:"sm:ml-6",children:s.jsxs("div",{className:m("sm:pl-6",t!=="0"&&"sm:border-l sm:border-gray-200"),children:[s.jsx("h1",{className:"text-4xl font-extrabold tracking-tight text-gray-900 sm:text-5xl",children:f||h}),s.jsx("p",{className:"mb-2 mt-2 text-base text-gray-500",children:p||d}),o&&s.jsx(b,{to:"/",className:"offset-1 mt-1 text-base text-gray-600 underline hover:text-gray-700",children:a("errors.back")}),e&&s.jsxs("details",{className:"mt-4",children:[s.jsx("summary",{className:"text-sm font-medium text-gray-500",children:"Error Details"}),s.jsx("p",{className:"mt-2 text-sm text-gray-900",children:e.message}),e?.stack&&s.jsx("pre",{className:"mt-2 w-[360px] overflow-x-auto text-sm text-gray-900 sm:w-[480px]",children:e.stack})]})]})})]})})})};export{P as F};
//# sourceMappingURL=index-mylU3tVN.js.map

//# debugId=01a1c9e9-83dc-551b-afb5-4fc4790cf6fb
