(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,878894,e=>{"use strict";var s=e.i(582458);e.s(["AlertTriangle",()=>s.default])},790092,e=>{"use strict";let s=(0,e.i(475254).default)("refresh-ccw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]);e.s(["RefreshCcw",0,s],790092)},580166,e=>{"use strict";var s=e.i(843476),t=e.i(271645),r=e.i(878894),a=e.i(790092),c=e.i(167881);e.s(["default",0,function({error:e,reset:i}){return t.useEffect(()=>{console.error("[loom] dashboard segment crashed:",e)},[e]),(0,s.jsx)("div",{className:"flex h-full w-full items-center justify-center p-6 bg-background",children:(0,s.jsxs)("div",{className:"max-w-md w-full space-y-4 rounded-lg border border-destructive/30 bg-destructive/5 p-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(r.AlertTriangle,{className:"h-5 w-5 text-destructive shrink-0"}),(0,s.jsx)("h2",{className:"text-base font-semibold text-foreground",children:"Something went wrong"})]}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground break-words",children:e.message||"An unexpected error occurred."}),e.digest&&(0,s.jsxs)("p",{className:"text-[11px] text-muted-foreground/70 font-mono",children:["digest: ",e.digest]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,s.jsxs)(c.Button,{onClick:i,size:"sm",className:"gap-1.5",children:[(0,s.jsx)(a.RefreshCcw,{className:"h-3.5 w-3.5"}),"Try again"]}),(0,s.jsx)(c.Button,{variant:"outline",size:"sm",onClick:()=>{window.location.href="/"},children:"Back to dashboard"})]})]})})}])}]);