1import{b as m,j as e}from"./vendor-query-BNzl40hr.js";import{c as x,aw as u,ae as p,j as h,C as t,b as r,R as j,ax as f,aO as g,ac as N,T as v}from"./index-DgQoM3Lc.js";import{W as b}from"./wifi-DEkVBVD3.js";import{L as a}from"./vendor-react-C2gGN3kB.js";import{A as w}from"./arrow-left-COFj_GxK.js";import"./vendor-supabase-Wgj5GqXg.js";import"./vendor-ui-Dx4N_DVy.js";import"./vendor-charts-BHMEPWWf.js";import"./vendor-forms-BTVwTRgq.js";import"./vendor-maps-DsqnI_0k.js";const y=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],k=x("server",y),O=({errorCode:i})=>{const l=u(s=>s.user),[o]=m.useState(()=>i||`500.${Date.now().toString(36).toUpperCase().slice(-6)}`),c=[{icon:k,title:"Servidor ocupado",description:"Muchas solicitudes simultáneas"},{icon:b,title:"Conexión intermitente",description:"Problemas de conectividad"},{icon:h,title:"Mantenimiento",description:"Sistema en actualización"}],d=()=>{window.location.reload()};return e.jsxs("div",{className:"min-h-screen bg-linear-to-b from-background via-background to-muted/30 flex flex-col",children:[e.jsx("main",{className:"flex-1 flex items-center justify-center px-4 py-12 sm:py-16 lg:py-20",children:e.jsxs("div",{className:"w-full max-w-3xl mx-auto text-center",children:[e.jsxs("div",{className:"mb-8 sm:mb-10",children:[e.jsxs("div",{className:"relative inline-flex items-center justify-center mb-6",children:[e.jsx("div",{className:"absolute inset-0 bg-destructive/10 rounded-full blur-2xl scale-150 animate-pulse"}),e.jsx("div",{className:"relative bg-linear-to-br from-destructive/20 to-destructive/5 rounded-full p-6 sm:p-8",children:e.jsx(p,{className:"h-16 w-16 sm:h-20 sm:w-20 text-destructive opacity-80",strokeWidth:1.5})})]}),e.jsx("p",{className:"ds-caption-1 text-destructive font-semibold tracking-widest mb-2",children:"ERROR"}),e.jsx("h1",{className:"ds-display-xl text-destructive font-bold tracking-tight",children:"500"})]}),e.jsxs("div",{className:"mb-8 sm:mb-10 space-y-3",children:[e.jsx("h2",{className:"ds-heading-1 text-foreground",children:"Oops⦠algo falló ð¾"}),e.jsx("p",{className:"ds-paragraph-l text-muted-foreground max-w-xl mx-auto",children:"Hemos tenido un problemita con el sistema. No te preocupes, estamos trabajando en ello."})]}),e.jsxs("div",{className:"mb-8 sm:mb-10",children:[e.jsx("p",{className:"ds-paragraph-m text-muted-foreground mb-4",children:"Esto pudo haber ocurrido por:"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3 sm:gap-4",children:c.map((s,n)=>e.jsx(t,{className:"p-4 bg-card/50 backdrop-blur-sm border-border/50 hover:border-destructive/30 transition-colors duration-200",children:e.jsxs("div",{className:"flex flex-col items-center text-center space-y-2",children:[e.jsx("div",{className:"p-2 rounded-lg bg-destructive/10",children:e.jsx(s.icon,{className:"h-5 w-5 text-destructive"})}),e.jsx("p",{className:"ds-paragraph-m font-medium text-foreground",children:s.title}),e.jsx("p",{className:"ds-caption-1 text-muted-foreground",children:s.description})]})},n))})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-3 sm:gap-4 mb-6",children:[e.jsxs(r,{onClick:d,size:"lg",className:"w-full sm:w-auto",children:[e.jsx(j,{className:"mr-2 h-4 w-4"}),"Reintentar"]}),l?e.jsx(r,{asChild:!0,variant:"outline",size:"lg",className:"w-full sm:w-auto",children:e.jsxs(a,{to:"/profile",children:[e.jsx(f,{className:"mr-2 h-4 w-4"}),"Volver al perfil"]})}):e.jsx(r,{asChild:!0,variant:"outline",size:"lg",className:"w-full sm:w-auto",children:e.jsxs(a,{to:"/",children:[e.jsx(g,{className:"mr-2 h-4 w-4"}),"Ir al inicio"]})}),e.jsx(r,{asChild:!0,variant:"ghost",size:"lg",className:"w-full sm:w-auto",children:e.jsxs("a",{href:"mailto:[email protected]",children:[e.jsx(N,{className:"mr-2 h-4 w-4"}),"Contactar soporte"]})})]}),e.jsx("div",{className:"mb-10 sm:mb-12",children:e.jsxs("p",{className:"ds-caption-1 text-muted-foreground
1/60",children:["Código de error:"," ",e.jsx("code",{className:"font-mono text-muted-foreground",children:o})]})}),e.jsx(t,{className:"p-6 bg-primary/5 border-primary/20 max-w-md mx-auto",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-primary/10 shrink-0",children:e.jsx(v,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{className:"text-left",children:[e.jsx("p",{className:"ds-paragraph-m font-medium text-foreground mb-1",children:"Estamos al tanto"}),e.jsx("p",{className:"ds-caption-1 text-muted-foreground",children:"Nuestro equipo ya fue notificado y está trabajando para resolver este problema lo antes posible. Gracias por tu paciencia."})]})]})}),e.jsx("div",{className:"mt-10 sm:mt-12",children:e.jsx(r,{asChild:!0,variant:"ghost",size:"lg",className:"text-muted-foreground hover:text-foreground",children:e.jsxs(a,{to:"/",children:[e.jsx(w,{className:"mr-2 h-4 w-4"}),"Volver al inicio"]})})})]})}),e.jsx("footer",{className:"py-6 text-center",children:e.jsxs("p",{className:"ds-caption-1 text-muted-foreground",children:["© ",new Date().getFullYear()," Amipet. Todos los derechos reservados."]})})]})};export{O 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.