var n=Object.defineProperty;var a=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var s=(t,e,r)=>a(t,typeof e!="symbol"?e+"":e,r);import{j as i,b as o}from"./BlockEditorTranslator.js?ver=1.5.3";const{Component:l}=wp.element;class m extends l{constructor(){super(...arguments);s(this,"state",{hasError:!1,error:null})}static getDerivedStateFromError(r){return{hasError:!0,error:r}}render(){var r;return this.state.hasError?i.jsx("p",{children:o("Error in component: %s",((r=this.state.error)==null?void 0:r.message)||o("Unknown"))}):this.props.children}}export{m as E};
