(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18509,e=>{"use strict";let t=(0,e.i(24929).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["AlertTriangle",()=>t],18509)},67307,e=>{"use strict";let t=(0,e.i(24929).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",()=>t],67307)},74792,e=>{"use strict";var t=e.i(27493),r=e.i(4),s=e.i(18509),a=e.i(67307);function c({error:e,reset:c}){return(0,r.useEffect)(()=>{console.error("[Dashboard Error]",e)},[e]),(0,t.jsx)("div",{className:"flex h-full items-center justify-center p-8",children:(0,t.jsxs)("div",{className:"glass-card max-w-lg p-8 text-center",children:[(0,t.jsx)("div",{className:"mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-[var(--sc-coral)]/10",children:(0,t.jsx)(s.AlertTriangle,{size:24,className:"text-[var(--sc-coral)]"})}),(0,t.jsx)("h2",{className:"text-xl font-bold text-[var(--sc-text-primary)]",children:"Something went wrong"}),(0,t.jsx)("p",{className:"mt-2 text-sm text-[var(--sc-text-secondary)]",children:e.message||"An unexpected error occurred in the dashboard."}),e.digest&&(0,t.jsxs)("p",{className:"mt-1 font-mono text-xs text-[var(--sc-text-muted)]",children:["Error ID: ",e.digest]}),(0,t.jsxs)("div",{className:"mt-6 flex justify-center gap-3",children:[(0,t.jsxs)("button",{onClick:c,className:"inline-flex items-center gap-2 rounded-xl bg-[var(--sc-coral)] px-4 py-2 text-sm font-semibold text-white transition-all hover:-translate-y-0.5 hover:shadow-[0_8px_30px_var(--sc-glow-coral-mid)]",children:[(0,t.jsx)(a.RefreshCw,{size:14}),"Try again"]}),(0,t.jsx)("a",{href:"/overview",className:"inline-flex items-center gap-2 rounded-xl border border-[var(--sc-border)] px-4 py-2 text-sm font-medium text-[var(--sc-text-secondary)] transition-colors hover:bg-[var(--sc-surface-interactive)]",children:"Go to Overview"})]})]})})}e.s(["default",()=>c])}]);