/*! For license information please see error-boundary.js.LICENSE.txt */
!function(){var e={92703:function(e,r,t){"use strict";var n=t(50414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,r,t,o,a,i){if(i!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function r(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:a,resetWarningCache:o};return t.PropTypes=t,t}},45697:function(e,r,t){e.exports=t(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},93967:function(e,r){var t;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",r=0;r<arguments.length;r++){var t=arguments[r];t&&(e=i(e,a(t)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var t in e)n.call(e,t)&&e[t]&&(r=i(r,t));return r}function i(e,r){return r?e?e+" "+r:e+r:e}e.exports?(o.default=o,e.exports=o):void 0===(t=function(){return o}.apply(r,[]))||(e.exports=t)}()}},r={};function t(n){var o=r[n];if(void 0!==o)return o.exports;var a=r[n]={exports:{}};return e[n](a,a.exports,t),a.exports}t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,{a:r}),r},t.d=function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};!function(){"use strict";t.r(n),t.d(n,{ErrorBoundary:function(){return b}});var e,r,o,a=window.vendor.React,i=t.n(a),c=t(93967),s=t.n(c),u=t(45697),l=t.n(u),p=window.top.wp.i18n,d=window.divi.window;class b extends a.Component{constructor(e){super(e),this.state={error:null,hasError:!1,stack:null}}componentDidCatch(e,r){console.error("ErrorBoundary caught error:",e,r),this.setState({hasError:!0,stack:r.componentStack,error:e})}render(){const{children:e,componentName:r}=this.props,{error:t,hasError:n,stack:o}=this.state;if(n){const e=()=>!0,n=()=>({componentName:r}),a=["et-vb-component-error"];e()||a.push("et-vb-component-error__single-action");const c=e()?(0,p.__)("This content could not be displayed. Please report this error to our team so that we can fix it and then save and reload the builder.","et_builder_5"):(0,p.__)("This content could not be displayed. Click the button below to save and reload the builder","et_builder_5"),u=()=>{console.log("Sending the following error"),console.log(t),console.log(o),console.log(n())},l=()=>{console.log("Reloading...")},b=e()&&i().createElement("button",{type:"button",name:"error-boundaries-report-button",className:"et-vb-button et-vb-component-error__button",onClick:d.handleOnClickFallback,onMouseDown:u},(0,p.__)("Report This Error","et_builder_5")),f=i().createElement("button",{type:"button",name:"error-boundaries-reload-button",className:"et-vb-button et-vb-component-error__button",onClick:d.handleOnClickFallback,onMouseDown:l},(0,p.__)("Save and Reload","et_builder_5"));return i().createElement("div",{className:s()(a)},i().createElement("h4",{className:"et-vb-component-error__heading"},(0,p.__)("Oops! An Error Has Occurred","et_builder_5")),i().createElement("div",{className:"et-vb-error-container"},c),!1,i().createElement("div",{className:"et-vb-component-error__button-wrapper"},b,f))}return e}}e=b,r="propTypes",o={children:l().element.isRequired,componentName:l().string.isRequired},r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o}(),(window.divi=window.divi||{}).errorBoundary=n}();