/*! This file is auto-generated */ this.wp=this.wp||{},this.wp.serverSideRender=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=391)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},12:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},25:function(e,t){!function(){e.exports=this.wp.url}()},3:function(e,t){!function(){e.exports=this.wp.components}()},32:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},33:function(e,t){!function(){e.exports=this.wp.deprecated}()},38:function(e,t){!function(){e.exports=this.wp.apiFetch}()},391:function(e,t,n){"use strict";n.r(t);var r=n(12),o=n(6),c=n(20),u=n(0),i=n(4),s=n(33),a=n.n(s),l=n(14),f=n(13),p=n(15),b=n(16),d=n(17),h=n(2),O=n(1),y=n(38),j=n.n(y),m=n(25),v=n(3);var w=function(e){function t(e){var n;return Object(l.a)(this,t),(n=Object(p.a)(this,Object(b.a)(t).call(this,e))).state={response:null},n}return Object(d.a)(t,e),Object(f.a)(t,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.fetch(this.props),this.fetch=Object(h.debounce)(this.fetch,500)}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"componentDidUpdate",value:function(e){Object(h.isEqual)(e,this.props)||this.fetch(this.props)}},{key:"fetch",value:function(e){var t=this;if(this.isStillMounted){null!==this.state.response&&this.setState({response:null});var n=e.block,r=e.attributes,c=void 0===r?null:r,u=e.urlQueryArgs,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(m.addQueryArgs)("/wp/v2/block-renderer/".concat(e),Object(o.a)({context:"edit"},null!==t?{attributes:t}:{},n))}(n,c,void 0===u?{}:u),s=this.currentFetchRequest=j()({path:i}).then((function(e){t.isStillMounted&&s===t.currentFetchRequest&&e&&t.setState({response:e.rendered})})).catch((function(e){t.isStillMounted&&s===t.currentFetchRequest&&t.setState({response:{error:!0,errorMsg:e.message}})}));return s}}},{key:"render",value:function(){var e=this.state.response,t=this.props,n=t.className,o=t.EmptyResponsePlaceholder,c=t.ErrorResponsePlaceholder,i=t.LoadingResponsePlaceholder;return""===e?Object(u.createElement)(o,Object(r.a)({response:e},this.props)):e?e.error?Object(u.createElement)(c,Object(r.a)({response:e},this.props)):Object(u.createElement)(u.RawHTML,{key:"html",className:n},e):Object(u.createElement)(i,Object(r.a)({response:e},this.props))}}]),t}(u.Component);w.defaultProps={EmptyResponsePlaceholder:function(e){var t=e.className;return Object(u.createElement)(v.Placeholder,{className:t},Object(O.__)("Block rendered as empty.")+t)},ErrorResponsePlaceholder:function(e){var t=e.response,n=e.className,r=Object(O.sprintf)(Object(O.__)("Error loading block: %s"),t.errorMsg);return Object(u.createElement)(v.Placeholder,{className:n},r)},LoadingResponsePlaceholder:function(e){var t=e.className;return Object(u.createElement)(v.Placeholder,{className:t},Object(u.createElement)(v.Spinner,null))}};var g=w,P={},S=Object(i.withSelect)((function(e){var t=e("core/editor");if(t){var n=t.getCurrentPostId();if(n)return{currentPostId:n}}return P}))((function(e){var t=e.urlQueryArgs,n=void 0===t?P:t,i=e.currentPostId,s=Object(c.a)(e,["urlQueryArgs","currentPostId"]),a=Object(u.useMemo)((function(){return i?Object(o.a)({post_id:i},n):n}),[i,n]);return Object(u.createElement)(g,Object(r.a)({urlQueryArgs:a},s))}));window&&window.wp&&window.wp.components&&(window.wp.components.ServerSideRender=Object(u.forwardRef)((function(e,t){return a()("wp.components.ServerSideRender",{alternative:"wp.serverSideRender"}),Object(u.createElement)(S,Object(r.a)({},e,{ref:t}))})));t.default=S},4:function(e,t){!function(){e.exports=this.wp.data}()},40:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},6:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(9);function o(e){for(var t=1;t