1import{j as e}from"./jsx-runtime-u17CrQMm.js";import{T as s}from"./Card-BDsiwhVP.js";import{B as i}from"./Button-BSrSF1uC.js";import{S as c}from"./Stack-BaDtpcfX.js";import{T as m}from"./Title-B_su_QpY.js";import{A as d}from"./Timeline-Dlv82O7P.js";import{q as p,t as u,C as g,B as f}from"./chunk-62JRHF6Z-B_bjtN1J.js";import{F as h}from"./FocusedLayout-Bem4s4nQ.js";import{p as l,b as k}from"./i18n-BQ-6rFBr.js";import{m as x}from"./links-CKg8ZY3X.js";import{r as y}from"./reportClientError-CFLb60CZ.js";import{I as b}from"./IconArrowBackUp-C9QRWi6H.js";const j={lv:{generic:{heading:"RadÄs kļūda!",body:"MÄs to fiksÄjÄm un noskaidrosim, kas notika.",cta:"Atpakaļ uz sÄkumu"},notFound:{heading:"Lapa nav atrasta",body:"Å Ä« lapa neeksistÄ vai ir pÄrvietota.",cta:"Atpakaļ uz sÄkumu"}},en:{generic:{heading:"An error has occurred!",body:"We've logged it and will look into what went wrong.",cta:"Back to home"},notFound:{heading:"Page not found",body:"This page does not exist or has been moved.",cta:"Back to home"}},ru:{generic:{heading:"ÐÑоизоÑла оÑибка!",body:"ÐÑ Ð·Ð°ÑикÑиÑовали ÐµÑ Ð¸ ÑазбеÑÑмÑÑ, ÑÑо пÑоизоÑло.",cta:"Ðа главнÑÑ"},notFound:{heading:"СÑÑаниÑа не найдена",body:"ÐÑа ÑÑÑаниÑа не ÑÑÑеÑÑвÑÐµÑ Ð¸Ð»Ð¸ бÑла пеÑемеÑена.",cta:"Ðа главнÑÑ"}}};function L(){const o=g(),{pathname:t}=f(),r=o.find(a=>a.params.lang)?.params.lang,n=t.split("/").find(a=>k(a));return r??n??"lv"}function I({error:o}){const t=p(o)&&o.status===404,r=L(),n=l(j,r)[t?"notFound":"generic"],a=x(r).home();return u.useEffect(()=>{t||y(o)},[o,t]),e.jsx(h,{logoTo:a,gradient:!0,centered:!0,children:e.jsxs(c,{gap:"md",ta:"center","data-error-screen":t?"not-found":"error",children:[e.jsx(m,{order:1,children:n.heading}),e.jsx(s,{c:"dimmed",children:n.body}),e.jsx(i,{component:d,to:a,leftSection:e.jsx(b,{size:18}),mt:"md",children:n.cta}),!1]})})}export{I as E};
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.