|
1
|
|
-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.3.26";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}; |
|
1
|
+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}from"./jsx-runtime.js?ver=1.6.5";import{b as o}from"./BlockEditorTranslator.js?ver=1.6.5";const{Component:m}=wp.element;class E extends m{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{E}; |