import{aY as a,j as e,r as c,Q as p,d as n,p as o,y as h,b6 as d}from"./index-CK33qGU_.js";const l=s=>t=>{const r=a();return e.jsx(s,{location:r,...t})};class x extends c.Component{constructor(t){super(t),this.state={}}static getDerivedStateFromError(t){return{error:t}}componentDidUpdate(t){const{location:r}=this.props;r.pathname!==t.location.pathname&&this.setState({error:void 0})}componentDidCatch(t){this.setState({error:t})}render(){const{children:t}=this.props,{error:r}=this.state,{title:i}=this.props;return r?e.jsx(p,{...this.props,children:e.jsxs(n,{p:"20px",height:"100%",alignItems:"center",flexDirection:"column",justifyContent:"center",backgroundColor:"white",children:[e.jsxs(o,{children:["Something went wrong while loading ",i||"this card"]}),e.jsx(o,{children:"-"}),e.jsxs(n,{children:[e.jsx(h,{children:"Reload the page or"}),e.jsx(d,{pl:"3px",mt:"-8px",intent:"inline",width:"fit-content",href:"https://docs.google.com/forms/d/e/1FAIpQLSfXLE7nxd1tstmMzzFy3D4RPcYT76q6o3eHQ6YPu6255pj3sw/viewform",target:"_blank",external:!0,children:"contact support"})]})]})}):t}}const u=l(x);export{u as C};
