import{bp as a,j as e,r as c,f as d,q as o,d as s,c as h,aJ as p}from"./index-C6OVXshM.js";const l=n=>t=>{const r=a();return e.jsx(n,{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,title:r}=this.props,{error:i}=this.state;return i?e.jsx(d,{...this.props,children:e.jsxs(o,{p:"20px",height:"100%",alignItems:"center",flexDirection:"column",justifyContent:"center",backgroundColor:"white",children:[e.jsxs(s,{children:["Something went wrong while loading ",r||"this card"]}),e.jsx(s,{children:"-"}),e.jsxs(o,{children:[e.jsx(h,{children:"Reload the page or"}),e.jsx(p,{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};
