import{r as c,a as S,o as I,j as t}from"./index-DxNxE5m4.js";import{F as R}from"./ExternalLinkIcon-CYEru4Yy.js";import{F}from"./RefreshIcon-0gwMKBB1.js";import{l as C}from"./links-CAH9SV_K.js";import{F as E}from"./frootIcon-Dgim63fa.js";import{a as _}from"./FrootImage-CwU30PNw.js";import"./_sentry-release-injection-file-DmrSj-oX.js";import{a as L}from"./use-style-config-V51jHKUD.js";import{F as W}from"./flex-BqdYWhF7.js";import{B as i}from"./box-WX2wpVfe.js";import{T as n}from"./text-CT7B28w3.js";import{S as B}from"./stack-DgkagaDI.js";import{B as d}from"./button-BbBS63xa.js";import{L as T}from"./link-xv5q1dKl.js";import{I as D}from"./icon-DmXU3eqw.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new N().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="441a106c-e43a-4def-ba91-55f7d8a4c050",o._sentryDebugIdIdentifier="sentry-dbid-441a106c-e43a-4def-ba91-55f7d8a4c050")}catch{}})();function O(o,e){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},o),c.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1"}))}const M=c.forwardRef(O);function N({size:o="md",reloadTo:e,title:m,description:u,PrimaryAction:g,withLogoutButton:p=!1,withStatusPageLink:x=!1,onLogout:l,...f}){const h=S(),s=I(),r=L("ErrorBoundary",{size:o});p&&!l&&(l=()=>h("/auth/logout"));const w=s.state==="loading"&&s.location.pathname==="/auth/logout",b=s.state==="loading"&&s.location.pathname!=="/auth/logout",a=o==="sm",j=a?"gray":"black",y=e||"/home",k=m??"Something went wrong...",v=u||(a?"Reloading should solve this issue.":`Sorry, something didn’t work as it should. We're looking into it right away.
Reloading should solve this issue.`);return t.jsxs(W,{__css:r.container,...f,children:[t.jsx(i,{mb:2,children:a?t.jsx(E,{icon:"exclamation",w:8,h:8}):t.jsx(_,{__css:r.visual})}),t.jsx(n,{sx:r.title,children:k}),t.jsx(n,{sx:r.description,whiteSpace:"pre-wrap",children:v}),t.jsxs(B,{mt:3,spacing:1,direction:o!=="lg"?"row":"column",alignItems:"center",children:[g||t.jsx(d,{size:"xs",variant:a?"outline":"solid",colorScheme:j,rightIcon:t.jsx(i,{as:F,w:3,strokeWidth:"2.5px"}),isLoading:b,loadingText:"Reloading...",onClick:()=>h(y),children:"Reload"}),p&&t.jsx(d,{size:"xs",variant:"outline",colorScheme:"gray",rightIcon:t.jsx(i,{as:M,w:3,strokeWidth:"2.5px"}),isLoading:w,loadingText:"Logging out...",onClick:l,children:"Log out"})]}),x&&t.jsxs(i,{p:5,mt:8,maxW:"400px",border:"1px solid",borderColor:"border-app-subtle",borderRadius:"xl",bg:"bg-app-default",children:[t.jsx(n,{textStyle:"sm",fontWeight:"medium",color:"text-default",children:"App Status Update"}),t.jsx(n,{textStyle:"sm",color:"text-subtle",mt:1.5,children:"Curious about the app's current status? Check out our Status page for the latest updates."}),t.jsx(d,{as:T,href:C.help.status,variant:"outline",colorScheme:"gray",size:"xs",mt:3,isExternal:!0,rightIcon:t.jsx(D,{as:R,w:3,strokeWidth:"2.5px"}),children:"Open status page"})]})]})}export{N as E};
//# sourceMappingURL=Error-D11FT1tp.js.map
