Object(external_wp_hooks_["removeAction"])('hookRemoved', namespace);
Object(external_wp_hooks_["removeAction"])('hookAdded', namespace);
value: function render() {
return Object(external_wp_element_["createElement"])(FilteredComponent, this.props);
return FilteredComponentRenderer;
}(external_wp_element_["Component"]);
FilteredComponentRenderer.instances = [];
* Updates the FilteredComponent definition, forcing a render for each
* mounted instance. This occurs a maximum of once per animation frame.
var throttledForceUpdate = Object(external_lodash_["debounce"])(function () {
// Recreate the filtered component, only after delay so that it's
// computed once, even if many filters added.
FilteredComponent = Object(external_wp_hooks_["applyFilters"])(hookName, OriginalComponent); // Force each instance to render.
FilteredComponentRenderer.instances.forEach(function (instance) {
}, ANIMATION_FRAME_PERIOD);
* When a filter is added or removed for the matching hook name, each
* mounted instance should re-render with the new filters having been
* applied to the original component.
* @param {string} updatedHookName Name of the hook that was updated.
function onHooksUpdated(updatedHookName) {
if (updatedHookName === hookName) {
return FilteredComponentRenderer;
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-return/index.js
* Returns true if the given object is component-like. An object is component-
* like if it is an instance of wp.element.Component, or is a function.
* @param {*} object Object to test.
* @return {boolean} Whether object is component-like.
function isComponentLike(object) {
return object instanceof external_wp_element_["Component"] || typeof object === 'function';
* Higher Order Component used to be used to wrap disposable elements like
* sidebars, modals, dropdowns. When mounting the wrapped component, we track a
* reference to the current active element so we know where to restore focus
* when the component is unmounted.
* @param {(WPComponent|Object)} options The component to be enhanced with
* focus return behavior, or an object
* describing the component and the
* focus return characteristics.
* @return {Function} Higher Order Component with the focus restauration behaviour.
/* harmony default export */ var with_focus_return = (Object(external_wp_compose_["createHigherOrderComponent"])(function (options) {
var HoC = function HoC() {
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
onFocusReturn = _ref.onFocusReturn;
return function (WrappedComponent) {
var WithFocusReturn = function WithFocusReturn(props) {
var ref = Object(external_wp_compose_["useFocusReturn"])(onFocusReturn);
return Object(external_wp_element_["createElement"])("div", {
}, Object(external_wp_element_["createElement"])(WrappedComponent, props));
if (isComponentLike(options)) {
var WrappedComponent = options;
return HoC()(WrappedComponent);
var with_focus_return_Provider = function Provider(_ref2) {
var children = _ref2.children;
external_wp_deprecated_default()('wp.components.FocusReturnProvider component', {
hint: 'This provider is not used anymore. You can just remove it from your codebase'
// EXTERNAL MODULE: ./node_modules/uuid/dist/esm-browser/v4.js + 4 modules
var v4 = __webpack_require__("7Cbv");
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-notices/index.js
function with_notices_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function with_notices_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { with_notices_ownKeys(Object(source), true).forEach(function (key) { Object(esm_defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { with_notices_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function with_notices_createSuper(Derived) { var hasNativeReflectConstruct = with_notices_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; }
function with_notices_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
* Override the default edit UI to include notices if supported.
* @param {WPComponent} OriginalComponent Original component.
* @return {WPComponent} Wrapped component.
/* harmony default export */ var with_notices = (Object(external_wp_compose_["createHigherOrderComponent"])(function (OriginalComponent) {
return /*#__PURE__*/function (_Component) {
Object(inherits["a" /* default */])(WrappedBlockEdit, _Component);
var _super = with_notices_createSuper(WrappedBlockEdit);
function WrappedBlockEdit() {
Object(classCallCheck["a" /* default */])(this, WrappedBlockEdit);
_this = _super.apply(this, arguments);
_this.createNotice = _this.createNotice.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.createErrorNotice = _this.createErrorNotice.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.removeNotice = _this.removeNotice.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.removeAllNotices = _this.removeAllNotices.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.noticeOperations = {
createNotice: _this.createNotice,
createErrorNotice: _this.createErrorNotice,
removeAllNotices: _this.removeAllNotices,
removeNotice: _this.removeNotice
* Function passed down as a prop that adds a new notice.
* @param {Object} notice Notice to add.
Object(createClass["a" /* default */])(WrappedBlockEdit, [{
value: function createNotice(notice) {
var noticeToAdd = notice.id ? notice : with_notices_objectSpread(with_notices_objectSpread({}, notice), {}, {
id: Object(v4["a" /* default */])()
this.setState(function (state) {
noticeList: [].concat(Object(toConsumableArray["a" /* default */])(state.noticeList), [noticeToAdd])
* Function passed as a prop that adds a new error notice.
* @param {string} msg Error message of the notice.
key: "createErrorNotice",
value: function createErrorNotice(msg) {
* Removes a notice by id.
* @param {string} id Id of the notice to remove.
value: function removeNotice(id) {
this.setState(function (state) {
noticeList: state.noticeList.filter(function (notice) {
value: function removeAllNotices() {
value: function render() {
return Object(external_wp_element_["createElement"])(OriginalComponent, Object(esm_extends["a" /* default */])({
noticeList: this.state.noticeList,
noticeOperations: this.noticeOperations,
noticeUI: this.state.noticeList.length > 0 && Object(external_wp_element_["createElement"])(list, {
className: "components-with-notices-ui",
notices: this.state.noticeList,
onRemove: this.removeNotice
}(external_wp_element_["Component"]);
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/ui/context/component-system-provider.js
function component_system_provider_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function component_system_provider_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { component_system_provider_ownKeys(Object(source), true).forEach(function (key) { Object(esm_defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { component_system_provider_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
* @param {string[]} [props.__unstableNextInclude]
* @param {import('react').ReactNode} props.children
* @param {any} props.value
function ComponentSystemProvider(_ref) {
var _ref$__unstableNextIn = _ref.__unstableNextInclude,
__unstableNextInclude = _ref$__unstableNextIn === void 0 ? [] : _ref$__unstableNextIn,
children = _ref.children,
value = _ref$value === void 0 ? {} : _ref$value;
if (false) { var contextValue; }
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/index.js
// Higher-Order Components
/***/ (function(module, __webpack_exports__, __webpack_require__) {
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getRegisteredStyles; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return insertStyles; });
var isBrowser = "object" !== 'undefined';
function getRegisteredStyles(registered, registeredStyles, classNames) {
classNames.split(' ').forEach(function (className) {
if (registered[className] !== undefined) {
registeredStyles.push(registered[className]);
rawClassName += className + " ";
var insertStyles = function insertStyles(cache, serialized, isStringTag) {
var className = cache.key + "-" + serialized.name;
if ( // we only need to add the styles to the registered cache if the
// class name could be used further down
// the tree but if it's a string tag, we know it won't
// so we don't have to add it to registered cache.
// this improves memory usage since we can avoid storing the whole style string
(isStringTag === false || // we need to always store it if we're in compat mode and
// in node since emotion-server relies on whether a style is in
// the registered cache to know whether a style is global or not
// also, note that this check will be dead code eliminated in the browser
isBrowser === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
cache.registered[className] = serialized.styles;
if (cache.inserted[serialized.name] === undefined) {
var current = serialized;
var maybeStyles = cache.insert("." + className, current, cache.sheet, true);
} while (current !== undefined);
/***/ (function(module, exports, __webpack_require__) {
var e=__webpack_require__("cDcd"),n={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},t=function(t){var r=t.onResize,u=e.useRef();return function(n,t){var r=function(){return n.current&&n.current.contentDocument&&n.current.contentDocument.defaultView};function u(){t();var e=r();e&&e.addEventListener("resize",t)}e.useEffect((function(){return r()?u():n.current&&n.current.addEventListener&&n.current.addEventListener("load",u),function(){var e=r();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("resize",t)}}),[])}(u,(function(){return r(u)})),e.createElement("iframe",{style:n,src:"about:blank",ref:u,"aria-hidden":!0,tabIndex:-1,frameBorder:0})},r=function(e){return{width:null!=e?e.offsetWidth:null,height:null!=e?e.offsetHeight:null}};module.exports=function(n){void 0===n&&(n=r);var u=e.useState(n(null)),o=u[0],i=u[1],c=e.useCallback((function(e){return i(n(e.current))}),[n]);return[e.useMemo((function(){return e.createElement(t,{onResize:c})}),[c]),o]};
/***/ (function(module, exports) {
function _setPrototypeOf(o, p) {
module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
return _setPrototypeOf(o, p);
module.exports = _setPrototypeOf;
/***/ (function(module, __webpack_exports__, __webpack_require__) {
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return COMPOSITE_KEYS; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return COMPOSITE_GROUP_KEYS; });