wp/wp-includes/js/dist/edit-widgets.js
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
     1 this["wp"] = this["wp"] || {}; this["wp"]["editWidgets"] =
     1 /******/ (function() { // webpackBootstrap
     2 /******/ (function(modules) { // webpackBootstrap
     2 /******/ 	var __webpack_modules__ = ({
       
     3 
       
     4 /***/ 4403:
       
     5 /***/ (function(module, exports) {
       
     6 
       
     7 var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
       
     8   Copyright (c) 2018 Jed Watson.
       
     9   Licensed under the MIT License (MIT), see
       
    10   http://jedwatson.github.io/classnames
       
    11 */
       
    12 /* global define */
       
    13 
       
    14 (function () {
       
    15 	'use strict';
       
    16 
       
    17 	var hasOwn = {}.hasOwnProperty;
       
    18 
       
    19 	function classNames() {
       
    20 		var classes = [];
       
    21 
       
    22 		for (var i = 0; i < arguments.length; i++) {
       
    23 			var arg = arguments[i];
       
    24 			if (!arg) continue;
       
    25 
       
    26 			var argType = typeof arg;
       
    27 
       
    28 			if (argType === 'string' || argType === 'number') {
       
    29 				classes.push(arg);
       
    30 			} else if (Array.isArray(arg)) {
       
    31 				if (arg.length) {
       
    32 					var inner = classNames.apply(null, arg);
       
    33 					if (inner) {
       
    34 						classes.push(inner);
       
    35 					}
       
    36 				}
       
    37 			} else if (argType === 'object') {
       
    38 				if (arg.toString === Object.prototype.toString) {
       
    39 					for (var key in arg) {
       
    40 						if (hasOwn.call(arg, key) && arg[key]) {
       
    41 							classes.push(key);
       
    42 						}
       
    43 					}
       
    44 				} else {
       
    45 					classes.push(arg.toString());
       
    46 				}
       
    47 			}
       
    48 		}
       
    49 
       
    50 		return classes.join(' ');
       
    51 	}
       
    52 
       
    53 	if ( true && module.exports) {
       
    54 		classNames.default = classNames;
       
    55 		module.exports = classNames;
       
    56 	} else if (true) {
       
    57 		// register as 'classnames', consistent with npm package name
       
    58 		!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
       
    59 			return classNames;
       
    60 		}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
       
    61 		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
       
    62 	} else {}
       
    63 }());
       
    64 
       
    65 
       
    66 /***/ })
       
    67 
       
    68 /******/ 	});
       
    69 /************************************************************************/
     3 /******/ 	// The module cache
    70 /******/ 	// The module cache
     4 /******/ 	var installedModules = {};
    71 /******/ 	var __webpack_module_cache__ = {};
     5 /******/
    72 /******/ 	
     6 /******/ 	// The require function
    73 /******/ 	// The require function
     7 /******/ 	function __webpack_require__(moduleId) {
    74 /******/ 	function __webpack_require__(moduleId) {
     8 /******/
       
     9 /******/ 		// Check if module is in cache
    75 /******/ 		// Check if module is in cache
    10 /******/ 		if(installedModules[moduleId]) {
    76 /******/ 		var cachedModule = __webpack_module_cache__[moduleId];
    11 /******/ 			return installedModules[moduleId].exports;
    77 /******/ 		if (cachedModule !== undefined) {
       
    78 /******/ 			return cachedModule.exports;
    12 /******/ 		}
    79 /******/ 		}
    13 /******/ 		// Create a new module (and put it into the cache)
    80 /******/ 		// Create a new module (and put it into the cache)
    14 /******/ 		var module = installedModules[moduleId] = {
    81 /******/ 		var module = __webpack_module_cache__[moduleId] = {
    15 /******/ 			i: moduleId,
    82 /******/ 			// no module.id needed
    16 /******/ 			l: false,
    83 /******/ 			// no module.loaded needed
    17 /******/ 			exports: {}
    84 /******/ 			exports: {}
    18 /******/ 		};
    85 /******/ 		};
    19 /******/
    86 /******/ 	
    20 /******/ 		// Execute the module function
    87 /******/ 		// Execute the module function
    21 /******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
    88 /******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
    22 /******/
    89 /******/ 	
    23 /******/ 		// Flag the module as loaded
       
    24 /******/ 		module.l = true;
       
    25 /******/
       
    26 /******/ 		// Return the exports of the module
    90 /******/ 		// Return the exports of the module
    27 /******/ 		return module.exports;
    91 /******/ 		return module.exports;
    28 /******/ 	}
    92 /******/ 	}
    29 /******/
    93 /******/ 	
    30 /******/
       
    31 /******/ 	// expose the modules object (__webpack_modules__)
       
    32 /******/ 	__webpack_require__.m = modules;
       
    33 /******/
       
    34 /******/ 	// expose the module cache
       
    35 /******/ 	__webpack_require__.c = installedModules;
       
    36 /******/
       
    37 /******/ 	// define getter function for harmony exports
       
    38 /******/ 	__webpack_require__.d = function(exports, name, getter) {
       
    39 /******/ 		if(!__webpack_require__.o(exports, name)) {
       
    40 /******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
       
    41 /******/ 		}
       
    42 /******/ 	};
       
    43 /******/
       
    44 /******/ 	// define __esModule on exports
       
    45 /******/ 	__webpack_require__.r = function(exports) {
       
    46 /******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
       
    47 /******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
       
    48 /******/ 		}
       
    49 /******/ 		Object.defineProperty(exports, '__esModule', { value: true });
       
    50 /******/ 	};
       
    51 /******/
       
    52 /******/ 	// create a fake namespace object
       
    53 /******/ 	// mode & 1: value is a module id, require it
       
    54 /******/ 	// mode & 2: merge all properties of value into the ns
       
    55 /******/ 	// mode & 4: return value when already ns object
       
    56 /******/ 	// mode & 8|1: behave like require
       
    57 /******/ 	__webpack_require__.t = function(value, mode) {
       
    58 /******/ 		if(mode & 1) value = __webpack_require__(value);
       
    59 /******/ 		if(mode & 8) return value;
       
    60 /******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
       
    61 /******/ 		var ns = Object.create(null);
       
    62 /******/ 		__webpack_require__.r(ns);
       
    63 /******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
       
    64 /******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
       
    65 /******/ 		return ns;
       
    66 /******/ 	};
       
    67 /******/
       
    68 /******/ 	// getDefaultExport function for compatibility with non-harmony modules
       
    69 /******/ 	__webpack_require__.n = function(module) {
       
    70 /******/ 		var getter = module && module.__esModule ?
       
    71 /******/ 			function getDefault() { return module['default']; } :
       
    72 /******/ 			function getModuleExports() { return module; };
       
    73 /******/ 		__webpack_require__.d(getter, 'a', getter);
       
    74 /******/ 		return getter;
       
    75 /******/ 	};
       
    76 /******/
       
    77 /******/ 	// Object.prototype.hasOwnProperty.call
       
    78 /******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
       
    79 /******/
       
    80 /******/ 	// __webpack_public_path__
       
    81 /******/ 	__webpack_require__.p = "";
       
    82 /******/
       
    83 /******/
       
    84 /******/ 	// Load entry module and return exports
       
    85 /******/ 	return __webpack_require__(__webpack_require__.s = "F35A");
       
    86 /******/ })
       
    87 /************************************************************************/
    94 /************************************************************************/
    88 /******/ ({
    95 /******/ 	/* webpack/runtime/compat get default export */
    89 
    96 /******/ 	!function() {
    90 /***/ "//Lo":
    97 /******/ 		// getDefaultExport function for compatibility with non-harmony modules
    91 /***/ (function(module, __webpack_exports__, __webpack_require__) {
    98 /******/ 		__webpack_require__.n = function(module) {
    92 
    99 /******/ 			var getter = module && module.__esModule ?
    93 "use strict";
   100 /******/ 				function() { return module['default']; } :
    94 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
   101 /******/ 				function() { return module; };
    95 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
   102 /******/ 			__webpack_require__.d(getter, { a: getter });
    96 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
   103 /******/ 			return getter;
    97 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
   104 /******/ 		};
    98 
   105 /******/ 	}();
    99 
   106 /******/ 	
   100 /**
   107 /******/ 	/* webpack/runtime/define property getters */
   101  * WordPress dependencies
   108 /******/ 	!function() {
   102  */
   109 /******/ 		// define getter functions for harmony exports
   103 
   110 /******/ 		__webpack_require__.d = function(exports, definition) {
   104 const blockDefault = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
   111 /******/ 			for(var key in definition) {
   105   xmlns: "http://www.w3.org/2000/svg",
   112 /******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
   106   viewBox: "0 0 24 24"
   113 /******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
   107 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
   114 /******/ 				}
   108   d: "M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"
   115 /******/ 			}
   109 }));
   116 /******/ 		};
   110 /* harmony default export */ __webpack_exports__["a"] = (blockDefault);
   117 /******/ 	}();
   111 
   118 /******/ 	
   112 
   119 /******/ 	/* webpack/runtime/hasOwnProperty shorthand */
   113 /***/ }),
   120 /******/ 	!function() {
   114 
   121 /******/ 		__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
   115 /***/ "1CF3":
   122 /******/ 	}();
   116 /***/ (function(module, exports) {
   123 /******/ 	
   117 
   124 /******/ 	/* webpack/runtime/make namespace object */
   118 (function() { module.exports = window["wp"]["dom"]; }());
   125 /******/ 	!function() {
   119 
   126 /******/ 		// define __esModule on exports
   120 /***/ }),
   127 /******/ 		__webpack_require__.r = function(exports) {
   121 
   128 /******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
   122 /***/ "1ZqX":
   129 /******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
   123 /***/ (function(module, exports) {
   130 /******/ 			}
   124 
   131 /******/ 			Object.defineProperty(exports, '__esModule', { value: true });
   125 (function() { module.exports = window["wp"]["data"]; }());
   132 /******/ 		};
   126 
   133 /******/ 	}();
   127 /***/ }),
   134 /******/ 	
   128 
   135 /************************************************************************/
   129 /***/ "6aBm":
   136 var __webpack_exports__ = {};
   130 /***/ (function(module, exports) {
   137 // This entry need to be wrapped in an IIFE because it need to be in strict mode.
   131 
   138 !function() {
   132 (function() { module.exports = window["wp"]["mediaUtils"]; }());
       
   133 
       
   134 /***/ }),
       
   135 
       
   136 /***/ "Cg8A":
       
   137 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
   138 
       
   139 "use strict";
       
   140 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
       
   141 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
       
   142 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
       
   143 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
       
   144 
       
   145 
       
   146 /**
       
   147  * WordPress dependencies
       
   148  */
       
   149 
       
   150 const cog = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
       
   151   xmlns: "http://www.w3.org/2000/svg",
       
   152   viewBox: "0 0 24 24"
       
   153 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
       
   154   fillRule: "evenodd",
       
   155   d: "M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",
       
   156   clipRule: "evenodd"
       
   157 }));
       
   158 /* harmony default export */ __webpack_exports__["a"] = (cog);
       
   159 
       
   160 
       
   161 /***/ }),
       
   162 
       
   163 /***/ "F35A":
       
   164 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
   165 
       
   166 "use strict";
   139 "use strict";
   167 // ESM COMPAT FLAG
   140 // ESM COMPAT FLAG
   168 __webpack_require__.r(__webpack_exports__);
   141 __webpack_require__.r(__webpack_exports__);
   169 
   142 
   170 // EXPORTS
   143 // EXPORTS
   171 __webpack_require__.d(__webpack_exports__, "reinitializeEditor", function() { return /* binding */ reinitializeEditor; });
   144 __webpack_require__.d(__webpack_exports__, {
   172 __webpack_require__.d(__webpack_exports__, "initialize", function() { return /* binding */ initialize; });
   145   "initialize": function() { return /* binding */ initialize; },
   173 
   146   "reinitializeEditor": function() { return /* binding */ reinitializeEditor; }
   174 // NAMESPACE OBJECT: ./node_modules/@wordpress/edit-widgets/build-module/store/actions.js
   147 });
       
   148 
       
   149 // NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/store/actions.js
   175 var actions_namespaceObject = {};
   150 var actions_namespaceObject = {};
   176 __webpack_require__.r(actions_namespaceObject);
   151 __webpack_require__.r(actions_namespaceObject);
   177 __webpack_require__.d(actions_namespaceObject, "persistStubPost", function() { return persistStubPost; });
   152 __webpack_require__.d(actions_namespaceObject, {
   178 __webpack_require__.d(actions_namespaceObject, "saveEditedWidgetAreas", function() { return actions_saveEditedWidgetAreas; });
   153   "disableComplementaryArea": function() { return disableComplementaryArea; },
   179 __webpack_require__.d(actions_namespaceObject, "saveWidgetAreas", function() { return saveWidgetAreas; });
   154   "enableComplementaryArea": function() { return enableComplementaryArea; },
   180 __webpack_require__.d(actions_namespaceObject, "saveWidgetArea", function() { return saveWidgetArea; });
   155   "pinItem": function() { return pinItem; },
   181 __webpack_require__.d(actions_namespaceObject, "setWidgetIdForClientId", function() { return setWidgetIdForClientId; });
   156   "setFeatureDefaults": function() { return setFeatureDefaults; },
   182 __webpack_require__.d(actions_namespaceObject, "setWidgetAreasOpenState", function() { return setWidgetAreasOpenState; });
   157   "setFeatureValue": function() { return setFeatureValue; },
   183 __webpack_require__.d(actions_namespaceObject, "setIsWidgetAreaOpen", function() { return actions_setIsWidgetAreaOpen; });
   158   "toggleFeature": function() { return toggleFeature; },
   184 __webpack_require__.d(actions_namespaceObject, "setIsInserterOpened", function() { return actions_setIsInserterOpened; });
   159   "unpinItem": function() { return unpinItem; }
   185 __webpack_require__.d(actions_namespaceObject, "closeGeneralSidebar", function() { return actions_closeGeneralSidebar; });
   160 });
   186 __webpack_require__.d(actions_namespaceObject, "moveBlockToWidgetArea", function() { return actions_moveBlockToWidgetArea; });
   161 
   187 __webpack_require__.d(actions_namespaceObject, "__unstableToggleFeature", function() { return __unstableToggleFeature; });
   162 // NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/store/selectors.js
       
   163 var selectors_namespaceObject = {};
       
   164 __webpack_require__.r(selectors_namespaceObject);
       
   165 __webpack_require__.d(selectors_namespaceObject, {
       
   166   "getActiveComplementaryArea": function() { return getActiveComplementaryArea; },
       
   167   "isFeatureActive": function() { return isFeatureActive; },
       
   168   "isItemPinned": function() { return isItemPinned; }
       
   169 });
       
   170 
       
   171 // NAMESPACE OBJECT: ./node_modules/@wordpress/edit-widgets/build-module/store/actions.js
       
   172 var store_actions_namespaceObject = {};
       
   173 __webpack_require__.r(store_actions_namespaceObject);
       
   174 __webpack_require__.d(store_actions_namespaceObject, {
       
   175   "closeGeneralSidebar": function() { return closeGeneralSidebar; },
       
   176   "moveBlockToWidgetArea": function() { return moveBlockToWidgetArea; },
       
   177   "persistStubPost": function() { return persistStubPost; },
       
   178   "saveEditedWidgetAreas": function() { return saveEditedWidgetAreas; },
       
   179   "saveWidgetArea": function() { return saveWidgetArea; },
       
   180   "saveWidgetAreas": function() { return saveWidgetAreas; },
       
   181   "setIsInserterOpened": function() { return setIsInserterOpened; },
       
   182   "setIsListViewOpened": function() { return setIsListViewOpened; },
       
   183   "setIsWidgetAreaOpen": function() { return setIsWidgetAreaOpen; },
       
   184   "setWidgetAreasOpenState": function() { return setWidgetAreasOpenState; },
       
   185   "setWidgetIdForClientId": function() { return setWidgetIdForClientId; }
       
   186 });
   188 
   187 
   189 // NAMESPACE OBJECT: ./node_modules/@wordpress/edit-widgets/build-module/store/resolvers.js
   188 // NAMESPACE OBJECT: ./node_modules/@wordpress/edit-widgets/build-module/store/resolvers.js
   190 var resolvers_namespaceObject = {};
   189 var resolvers_namespaceObject = {};
   191 __webpack_require__.r(resolvers_namespaceObject);
   190 __webpack_require__.r(resolvers_namespaceObject);
   192 __webpack_require__.d(resolvers_namespaceObject, "getWidgetAreas", function() { return getWidgetAreas; });
   191 __webpack_require__.d(resolvers_namespaceObject, {
   193 __webpack_require__.d(resolvers_namespaceObject, "getWidgets", function() { return getWidgets; });
   192   "getWidgetAreas": function() { return getWidgetAreas; },
       
   193   "getWidgets": function() { return getWidgets; }
       
   194 });
   194 
   195 
   195 // NAMESPACE OBJECT: ./node_modules/@wordpress/edit-widgets/build-module/store/selectors.js
   196 // NAMESPACE OBJECT: ./node_modules/@wordpress/edit-widgets/build-module/store/selectors.js
   196 var selectors_namespaceObject = {};
   197 var store_selectors_namespaceObject = {};
   197 __webpack_require__.r(selectors_namespaceObject);
   198 __webpack_require__.r(store_selectors_namespaceObject);
   198 __webpack_require__.d(selectors_namespaceObject, "getWidgets", function() { return selectors_getWidgets; });
   199 __webpack_require__.d(store_selectors_namespaceObject, {
   199 __webpack_require__.d(selectors_namespaceObject, "getWidget", function() { return getWidget; });
   200   "__experimentalGetInsertionPoint": function() { return __experimentalGetInsertionPoint; },
   200 __webpack_require__.d(selectors_namespaceObject, "getWidgetAreas", function() { return selectors_getWidgetAreas; });
   201   "canInsertBlockInWidgetArea": function() { return canInsertBlockInWidgetArea; },
   201 __webpack_require__.d(selectors_namespaceObject, "getWidgetAreaForWidgetId", function() { return getWidgetAreaForWidgetId; });
   202   "getEditedWidgetAreas": function() { return getEditedWidgetAreas; },
   202 __webpack_require__.d(selectors_namespaceObject, "getParentWidgetAreaBlock", function() { return selectors_getParentWidgetAreaBlock; });
   203   "getIsWidgetAreaOpen": function() { return getIsWidgetAreaOpen; },
   203 __webpack_require__.d(selectors_namespaceObject, "getEditedWidgetAreas", function() { return selectors_getEditedWidgetAreas; });
   204   "getParentWidgetAreaBlock": function() { return getParentWidgetAreaBlock; },
   204 __webpack_require__.d(selectors_namespaceObject, "getReferenceWidgetBlocks", function() { return getReferenceWidgetBlocks; });
   205   "getReferenceWidgetBlocks": function() { return getReferenceWidgetBlocks; },
   205 __webpack_require__.d(selectors_namespaceObject, "isSavingWidgetAreas", function() { return selectors_isSavingWidgetAreas; });
   206   "getWidget": function() { return getWidget; },
   206 __webpack_require__.d(selectors_namespaceObject, "getIsWidgetAreaOpen", function() { return getIsWidgetAreaOpen; });
   207   "getWidgetAreaForWidgetId": function() { return getWidgetAreaForWidgetId; },
   207 __webpack_require__.d(selectors_namespaceObject, "isInserterOpened", function() { return selectors_isInserterOpened; });
   208   "getWidgetAreas": function() { return selectors_getWidgetAreas; },
   208 __webpack_require__.d(selectors_namespaceObject, "__experimentalGetInsertionPoint", function() { return __experimentalGetInsertionPoint; });
   209   "getWidgets": function() { return selectors_getWidgets; },
   209 __webpack_require__.d(selectors_namespaceObject, "canInsertBlockInWidgetArea", function() { return selectors_canInsertBlockInWidgetArea; });
   210   "isInserterOpened": function() { return isInserterOpened; },
   210 __webpack_require__.d(selectors_namespaceObject, "__unstableIsFeatureActive", function() { return __unstableIsFeatureActive; });
   211   "isListViewOpened": function() { return isListViewOpened; },
       
   212   "isSavingWidgetAreas": function() { return isSavingWidgetAreas; }
       
   213 });
   211 
   214 
   212 // NAMESPACE OBJECT: ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/index.js
   215 // NAMESPACE OBJECT: ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/index.js
   213 var widget_area_namespaceObject = {};
   216 var widget_area_namespaceObject = {};
   214 __webpack_require__.r(widget_area_namespaceObject);
   217 __webpack_require__.r(widget_area_namespaceObject);
   215 __webpack_require__.d(widget_area_namespaceObject, "metadata", function() { return widget_area_metadata; });
   218 __webpack_require__.d(widget_area_namespaceObject, {
   216 __webpack_require__.d(widget_area_namespaceObject, "name", function() { return widget_area_name; });
   219   "metadata": function() { return metadata; },
   217 __webpack_require__.d(widget_area_namespaceObject, "settings", function() { return widget_area_settings; });
   220   "name": function() { return widget_area_name; },
   218 
   221   "settings": function() { return settings; }
   219 // EXTERNAL MODULE: external ["wp","element"]
   222 });
   220 var external_wp_element_ = __webpack_require__("GRId");
   223 
   221 
   224 ;// CONCATENATED MODULE: external ["wp","element"]
   222 // EXTERNAL MODULE: external ["wp","blocks"]
   225 var external_wp_element_namespaceObject = window["wp"]["element"];
   223 var external_wp_blocks_ = __webpack_require__("HSyU");
   226 ;// CONCATENATED MODULE: external ["wp","blocks"]
   224 
   227 var external_wp_blocks_namespaceObject = window["wp"]["blocks"];
   225 // EXTERNAL MODULE: external ["wp","blockLibrary"]
   228 ;// CONCATENATED MODULE: external ["wp","data"]
   226 var external_wp_blockLibrary_ = __webpack_require__("QyPg");
   229 var external_wp_data_namespaceObject = window["wp"]["data"];
   227 
   230 ;// CONCATENATED MODULE: external ["wp","blockLibrary"]
   228 // EXTERNAL MODULE: external ["wp","coreData"]
   231 var external_wp_blockLibrary_namespaceObject = window["wp"]["blockLibrary"];
   229 var external_wp_coreData_ = __webpack_require__("jZUy");
   232 ;// CONCATENATED MODULE: external ["wp","coreData"]
   230 
   233 var external_wp_coreData_namespaceObject = window["wp"]["coreData"];
   231 // EXTERNAL MODULE: external ["wp","widgets"]
   234 ;// CONCATENATED MODULE: external ["wp","widgets"]
   232 var external_wp_widgets_ = __webpack_require__("GLVC");
   235 var external_wp_widgets_namespaceObject = window["wp"]["widgets"];
   233 
   236 ;// CONCATENATED MODULE: external ["wp","preferences"]
   234 // EXTERNAL MODULE: external ["wp","apiFetch"]
   237 var external_wp_preferences_namespaceObject = window["wp"]["preferences"];
   235 var external_wp_apiFetch_ = __webpack_require__("ywyh");
   238 ;// CONCATENATED MODULE: external ["wp","apiFetch"]
   236 var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_);
   239 var external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"];
   237 
   240 var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
   238 // EXTERNAL MODULE: external ["wp","data"]
   241 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/reducer.js
   239 var external_wp_data_ = __webpack_require__("1ZqX");
   242 /**
   240 
   243  * WordPress dependencies
   241 // EXTERNAL MODULE: external "lodash"
   244  */
   242 var external_lodash_ = __webpack_require__("YLtl");
   245 
   243 
       
   244 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/defaults.js
       
   245 const PREFERENCES_DEFAULTS = {
       
   246   features: {
       
   247     fixedToolbar: false,
       
   248     welcomeGuide: true,
       
   249     showBlockBreadcrumbs: true,
       
   250     themeStyles: true
       
   251   }
       
   252 };
       
   253 
       
   254 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/reducer.js
       
   255 /**
       
   256  * External dependencies
       
   257  */
       
   258 
       
   259 /**
       
   260  * WordPress dependencies
       
   261  */
       
   262 
       
   263 
       
   264 /**
       
   265  * Internal dependencies
       
   266  */
       
   267 
       
   268 
       
   269 /**
       
   270  * Higher-order reducer creator which provides the given initial state for the
       
   271  * original reducer.
       
   272  *
       
   273  * @param {*} initialState Initial state to provide to reducer.
       
   274  *
       
   275  * @return {Function} Higher-order reducer.
       
   276  */
       
   277 
       
   278 const createWithInitialState = initialState => reducer => {
       
   279   return (state = initialState, action) => reducer(state, action);
       
   280 };
       
   281 /**
   246 /**
   282  * Controls the open state of the widget areas.
   247  * Controls the open state of the widget areas.
   283  *
   248  *
   284  * @param {Object} state   Redux state
   249  * @param {Object} state  Redux state.
   285  * @param {Object} action  Redux action
   250  * @param {Object} action Redux action.
   286  * @return {Array}         Updated state
   251  *
   287  */
   252  * @return {Array} Updated state.
   288 
   253  */
   289 
   254 
   290 function reducer_widgetAreasOpenState(state = {}, action) {
   255 function widgetAreasOpenState() {
       
   256   let state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
       
   257   let action = arguments.length > 1 ? arguments[1] : undefined;
   291   const {
   258   const {
   292     type
   259     type
   293   } = action;
   260   } = action;
   294 
   261 
   295   switch (type) {
   262   switch (type) {
   314         return state;
   281         return state;
   315       }
   282       }
   316   }
   283   }
   317 }
   284 }
   318 /**
   285 /**
   319  * Reducer tracking whether the inserter is open.
   286  * Reducer to set the block inserter panel open or closed.
   320  *
   287  *
   321  * @param {boolean|Object} state
   288  * Note: this reducer interacts with the list view panel reducer
   322  * @param {Object}         action
   289  * to make sure that only one of the two panels is open at the same time.
   323  */
   290  *
   324 
   291  * @param {Object} state  Current state.
   325 function blockInserterPanel(state = false, action) {
   292  * @param {Object} action Dispatched action.
       
   293  */
       
   294 
       
   295 function blockInserterPanel() {
       
   296   let state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
       
   297   let action = arguments.length > 1 ? arguments[1] : undefined;
       
   298 
   326   switch (action.type) {
   299   switch (action.type) {
       
   300     case 'SET_IS_LIST_VIEW_OPENED':
       
   301       return action.isOpen ? false : state;
       
   302 
   327     case 'SET_IS_INSERTER_OPENED':
   303     case 'SET_IS_INSERTER_OPENED':
   328       return action.value;
   304       return action.value;
   329   }
   305   }
   330 
   306 
   331   return state;
   307   return state;
   332 }
   308 }
   333 /**
   309 /**
   334  * Reducer returning the user preferences.
   310  * Reducer to set the list view panel open or closed.
   335  *
   311  *
   336  * @param {Object}  state                           Current state.
   312  * Note: this reducer interacts with the inserter panel reducer
   337  * @param {Object}  action                          Dispatched action.
   313  * to make sure that only one of the two panels is open at the same time.
   338  *
   314  *
   339  * @return {Object} Updated state.
   315  * @param {Object} state  Current state.
   340  */
   316  * @param {Object} action Dispatched action.
   341 
   317  */
   342 
   318 
   343 const preferences = Object(external_lodash_["flow"])([external_wp_data_["combineReducers"], createWithInitialState(PREFERENCES_DEFAULTS)])({
   319 function listViewPanel() {
   344   features(state, action) {
   320   let state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
   345     if (action.type === 'TOGGLE_FEATURE') {
   321   let action = arguments.length > 1 ? arguments[1] : undefined;
   346       return { ...state,
   322 
   347         [action.feature]: !state[action.feature]
   323   switch (action.type) {
   348       };
   324     case 'SET_IS_INSERTER_OPENED':
       
   325       return action.value ? false : state;
       
   326 
       
   327     case 'SET_IS_LIST_VIEW_OPENED':
       
   328       return action.isOpen;
       
   329   }
       
   330 
       
   331   return state;
       
   332 }
       
   333 /* harmony default export */ var reducer = ((0,external_wp_data_namespaceObject.combineReducers)({
       
   334   blockInserterPanel,
       
   335   listViewPanel,
       
   336   widgetAreasOpenState
       
   337 }));
       
   338 
       
   339 ;// CONCATENATED MODULE: external ["wp","i18n"]
       
   340 var external_wp_i18n_namespaceObject = window["wp"]["i18n"];
       
   341 ;// CONCATENATED MODULE: external ["wp","notices"]
       
   342 var external_wp_notices_namespaceObject = window["wp"]["notices"];
       
   343 ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
       
   344 function _extends() {
       
   345   _extends = Object.assign ? Object.assign.bind() : function (target) {
       
   346     for (var i = 1; i < arguments.length; i++) {
       
   347       var source = arguments[i];
       
   348 
       
   349       for (var key in source) {
       
   350         if (Object.prototype.hasOwnProperty.call(source, key)) {
       
   351           target[key] = source[key];
       
   352         }
       
   353       }
   349     }
   354     }
   350 
   355 
   351     return state;
   356     return target;
       
   357   };
       
   358   return _extends.apply(this, arguments);
       
   359 }
       
   360 // EXTERNAL MODULE: ./node_modules/classnames/index.js
       
   361 var classnames = __webpack_require__(4403);
       
   362 var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
       
   363 ;// CONCATENATED MODULE: external ["wp","components"]
       
   364 var external_wp_components_namespaceObject = window["wp"]["components"];
       
   365 ;// CONCATENATED MODULE: external ["wp","primitives"]
       
   366 var external_wp_primitives_namespaceObject = window["wp"]["primitives"];
       
   367 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js
       
   368 
       
   369 
       
   370 /**
       
   371  * WordPress dependencies
       
   372  */
       
   373 
       
   374 const check = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
       
   375   xmlns: "http://www.w3.org/2000/svg",
       
   376   viewBox: "0 0 24 24"
       
   377 }, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
       
   378   d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
       
   379 }));
       
   380 /* harmony default export */ var library_check = (check);
       
   381 
       
   382 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js
       
   383 
       
   384 
       
   385 /**
       
   386  * WordPress dependencies
       
   387  */
       
   388 
       
   389 const starFilled = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
       
   390   xmlns: "http://www.w3.org/2000/svg",
       
   391   viewBox: "0 0 24 24"
       
   392 }, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
       
   393   d: "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"
       
   394 }));
       
   395 /* harmony default export */ var star_filled = (starFilled);
       
   396 
       
   397 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/star-empty.js
       
   398 
       
   399 
       
   400 /**
       
   401  * WordPress dependencies
       
   402  */
       
   403 
       
   404 const starEmpty = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
       
   405   xmlns: "http://www.w3.org/2000/svg",
       
   406   viewBox: "0 0 24 24"
       
   407 }, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
       
   408   fillRule: "evenodd",
       
   409   d: "M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",
       
   410   clipRule: "evenodd"
       
   411 }));
       
   412 /* harmony default export */ var star_empty = (starEmpty);
       
   413 
       
   414 ;// CONCATENATED MODULE: external ["wp","viewport"]
       
   415 var external_wp_viewport_namespaceObject = window["wp"]["viewport"];
       
   416 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js
       
   417 
       
   418 
       
   419 /**
       
   420  * WordPress dependencies
       
   421  */
       
   422 
       
   423 const closeSmall = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
       
   424   xmlns: "http://www.w3.org/2000/svg",
       
   425   viewBox: "0 0 24 24"
       
   426 }, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
       
   427   d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
       
   428 }));
       
   429 /* harmony default export */ var close_small = (closeSmall);
       
   430 
       
   431 ;// CONCATENATED MODULE: external "lodash"
       
   432 var external_lodash_namespaceObject = window["lodash"];
       
   433 ;// CONCATENATED MODULE: external ["wp","deprecated"]
       
   434 var external_wp_deprecated_namespaceObject = window["wp"]["deprecated"];
       
   435 var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject);
       
   436 ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/actions.js
       
   437 /**
       
   438  * WordPress dependencies
       
   439  */
       
   440 
       
   441 
       
   442 /**
       
   443  * Enable the complementary area.
       
   444  *
       
   445  * @param {string} scope Complementary area scope.
       
   446  * @param {string} area  Area identifier.
       
   447  */
       
   448 
       
   449 const enableComplementaryArea = (scope, area) => _ref => {
       
   450   let {
       
   451     registry
       
   452   } = _ref;
       
   453 
       
   454   // Return early if there's no area.
       
   455   if (!area) {
       
   456     return;
   352   }
   457   }
   353 
   458 
       
   459   registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'complementaryArea', area);
       
   460 };
       
   461 /**
       
   462  * Disable the complementary area.
       
   463  *
       
   464  * @param {string} scope Complementary area scope.
       
   465  */
       
   466 
       
   467 const disableComplementaryArea = scope => _ref2 => {
       
   468   let {
       
   469     registry
       
   470   } = _ref2;
       
   471   registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'complementaryArea', null);
       
   472 };
       
   473 /**
       
   474  * Pins an item.
       
   475  *
       
   476  * @param {string} scope Item scope.
       
   477  * @param {string} item  Item identifier.
       
   478  *
       
   479  * @return {Object} Action object.
       
   480  */
       
   481 
       
   482 const pinItem = (scope, item) => _ref3 => {
       
   483   let {
       
   484     registry
       
   485   } = _ref3;
       
   486 
       
   487   // Return early if there's no item.
       
   488   if (!item) {
       
   489     return;
       
   490   }
       
   491 
       
   492   const pinnedItems = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'pinnedItems'); // The item is already pinned, there's nothing to do.
       
   493 
       
   494   if ((pinnedItems === null || pinnedItems === void 0 ? void 0 : pinnedItems[item]) === true) {
       
   495     return;
       
   496   }
       
   497 
       
   498   registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'pinnedItems', { ...pinnedItems,
       
   499     [item]: true
       
   500   });
       
   501 };
       
   502 /**
       
   503  * Unpins an item.
       
   504  *
       
   505  * @param {string} scope Item scope.
       
   506  * @param {string} item  Item identifier.
       
   507  */
       
   508 
       
   509 const unpinItem = (scope, item) => _ref4 => {
       
   510   let {
       
   511     registry
       
   512   } = _ref4;
       
   513 
       
   514   // Return early if there's no item.
       
   515   if (!item) {
       
   516     return;
       
   517   }
       
   518 
       
   519   const pinnedItems = registry.select(external_wp_preferences_namespaceObject.store).get(scope, 'pinnedItems');
       
   520   registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, 'pinnedItems', { ...pinnedItems,
       
   521     [item]: false
       
   522   });
       
   523 };
       
   524 /**
       
   525  * Returns an action object used in signalling that a feature should be toggled.
       
   526  *
       
   527  * @param {string} scope       The feature scope (e.g. core/edit-post).
       
   528  * @param {string} featureName The feature name.
       
   529  */
       
   530 
       
   531 function toggleFeature(scope, featureName) {
       
   532   return function (_ref5) {
       
   533     let {
       
   534       registry
       
   535     } = _ref5;
       
   536     external_wp_deprecated_default()(`dispatch( 'core/interface' ).toggleFeature`, {
       
   537       since: '6.0',
       
   538       alternative: `dispatch( 'core/preferences' ).toggle`
       
   539     });
       
   540     registry.dispatch(external_wp_preferences_namespaceObject.store).toggle(scope, featureName);
       
   541   };
       
   542 }
       
   543 /**
       
   544  * Returns an action object used in signalling that a feature should be set to
       
   545  * a true or false value
       
   546  *
       
   547  * @param {string}  scope       The feature scope (e.g. core/edit-post).
       
   548  * @param {string}  featureName The feature name.
       
   549  * @param {boolean} value       The value to set.
       
   550  *
       
   551  * @return {Object} Action object.
       
   552  */
       
   553 
       
   554 function setFeatureValue(scope, featureName, value) {
       
   555   return function (_ref6) {
       
   556     let {
       
   557       registry
       
   558     } = _ref6;
       
   559     external_wp_deprecated_default()(`dispatch( 'core/interface' ).setFeatureValue`, {
       
   560       since: '6.0',
       
   561       alternative: `dispatch( 'core/preferences' ).set`
       
   562     });
       
   563     registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, featureName, !!value);
       
   564   };
       
   565 }
       
   566 /**
       
   567  * Returns an action object used in signalling that defaults should be set for features.
       
   568  *
       
   569  * @param {string}                  scope    The feature scope (e.g. core/edit-post).
       
   570  * @param {Object<string, boolean>} defaults A key/value map of feature names to values.
       
   571  *
       
   572  * @return {Object} Action object.
       
   573  */
       
   574 
       
   575 function setFeatureDefaults(scope, defaults) {
       
   576   return function (_ref7) {
       
   577     let {
       
   578       registry
       
   579     } = _ref7;
       
   580     external_wp_deprecated_default()(`dispatch( 'core/interface' ).setFeatureDefaults`, {
       
   581       since: '6.0',
       
   582       alternative: `dispatch( 'core/preferences' ).setDefaults`
       
   583     });
       
   584     registry.dispatch(external_wp_preferences_namespaceObject.store).setDefaults(scope, defaults);
       
   585   };
       
   586 }
       
   587 
       
   588 ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/selectors.js
       
   589 /**
       
   590  * WordPress dependencies
       
   591  */
       
   592 
       
   593 
       
   594 
       
   595 /**
       
   596  * Returns the complementary area that is active in a given scope.
       
   597  *
       
   598  * @param {Object} state Global application state.
       
   599  * @param {string} scope Item scope.
       
   600  *
       
   601  * @return {string} The complementary area that is active in the given scope.
       
   602  */
       
   603 
       
   604 const getActiveComplementaryArea = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope) => {
       
   605   return select(external_wp_preferences_namespaceObject.store).get(scope, 'complementaryArea');
   354 });
   606 });
   355 /* harmony default export */ var reducer = (Object(external_wp_data_["combineReducers"])({
   607 /**
   356   blockInserterPanel,
   608  * Returns a boolean indicating if an item is pinned or not.
   357   widgetAreasOpenState: reducer_widgetAreasOpenState,
   609  *
   358   preferences
   610  * @param {Object} state Global application state.
       
   611  * @param {string} scope Scope.
       
   612  * @param {string} item  Item to check.
       
   613  *
       
   614  * @return {boolean} True if the item is pinned and false otherwise.
       
   615  */
       
   616 
       
   617 const isItemPinned = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope, item) => {
       
   618   var _pinnedItems$item;
       
   619 
       
   620   const pinnedItems = select(external_wp_preferences_namespaceObject.store).get(scope, 'pinnedItems');
       
   621   return (_pinnedItems$item = pinnedItems === null || pinnedItems === void 0 ? void 0 : pinnedItems[item]) !== null && _pinnedItems$item !== void 0 ? _pinnedItems$item : true;
       
   622 });
       
   623 /**
       
   624  * Returns a boolean indicating whether a feature is active for a particular
       
   625  * scope.
       
   626  *
       
   627  * @param {Object} state       The store state.
       
   628  * @param {string} scope       The scope of the feature (e.g. core/edit-post).
       
   629  * @param {string} featureName The name of the feature.
       
   630  *
       
   631  * @return {boolean} Is the feature enabled?
       
   632  */
       
   633 
       
   634 const isFeatureActive = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, scope, featureName) => {
       
   635   external_wp_deprecated_default()(`select( 'core/interface' ).isFeatureActive( scope, featureName )`, {
       
   636     since: '6.0',
       
   637     alternative: `select( 'core/preferences' ).get( scope, featureName )`
       
   638   });
       
   639   return !!select(external_wp_preferences_namespaceObject.store).get(scope, featureName);
       
   640 });
       
   641 
       
   642 ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/constants.js
       
   643 /**
       
   644  * The identifier for the data store.
       
   645  *
       
   646  * @type {string}
       
   647  */
       
   648 const STORE_NAME = 'core/interface';
       
   649 
       
   650 ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/index.js
       
   651 /**
       
   652  * WordPress dependencies
       
   653  */
       
   654 
       
   655 /**
       
   656  * Internal dependencies
       
   657  */
       
   658 
       
   659 
       
   660 
       
   661 
       
   662 /**
       
   663  * Store definition for the interface namespace.
       
   664  *
       
   665  * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
       
   666  *
       
   667  * @type {Object}
       
   668  */
       
   669 
       
   670 const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME, {
       
   671   reducer: () => {},
       
   672   actions: actions_namespaceObject,
       
   673   selectors: selectors_namespaceObject
       
   674 }); // Once we build a more generic persistence plugin that works across types of stores
       
   675 // we'd be able to replace this with a register call.
       
   676 
       
   677 (0,external_wp_data_namespaceObject.register)(store);
       
   678 
       
   679 ;// CONCATENATED MODULE: external ["wp","plugins"]
       
   680 var external_wp_plugins_namespaceObject = window["wp"]["plugins"];
       
   681 ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-context/index.js
       
   682 /**
       
   683  * WordPress dependencies
       
   684  */
       
   685 
       
   686 /* harmony default export */ var complementary_area_context = ((0,external_wp_plugins_namespaceObject.withPluginContext)((context, ownProps) => {
       
   687   return {
       
   688     icon: ownProps.icon || context.icon,
       
   689     identifier: ownProps.identifier || `${context.name}/${ownProps.name}`
       
   690   };
   359 }));
   691 }));
   360 
   692 
   361 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/utils.js
   693 ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-toggle/index.js
       
   694 
       
   695 
       
   696 
       
   697 /**
       
   698  * External dependencies
       
   699  */
       
   700 
       
   701 /**
       
   702  * WordPress dependencies
       
   703  */
       
   704 
       
   705 
       
   706 
       
   707 /**
       
   708  * Internal dependencies
       
   709  */
       
   710 
       
   711 
       
   712 
       
   713 
       
   714 function ComplementaryAreaToggle(_ref) {
       
   715   let {
       
   716     as = external_wp_components_namespaceObject.Button,
       
   717     scope,
       
   718     identifier,
       
   719     icon,
       
   720     selectedIcon,
       
   721     ...props
       
   722   } = _ref;
       
   723   const ComponentToUse = as;
       
   724   const isSelected = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).getActiveComplementaryArea(scope) === identifier, [identifier]);
       
   725   const {
       
   726     enableComplementaryArea,
       
   727     disableComplementaryArea
       
   728   } = (0,external_wp_data_namespaceObject.useDispatch)(store);
       
   729   return (0,external_wp_element_namespaceObject.createElement)(ComponentToUse, _extends({
       
   730     icon: selectedIcon && isSelected ? selectedIcon : icon,
       
   731     onClick: () => {
       
   732       if (isSelected) {
       
   733         disableComplementaryArea(scope);
       
   734       } else {
       
   735         enableComplementaryArea(scope, identifier);
       
   736       }
       
   737     }
       
   738   }, (0,external_lodash_namespaceObject.omit)(props, ['name'])));
       
   739 }
       
   740 
       
   741 /* harmony default export */ var complementary_area_toggle = (complementary_area_context(ComplementaryAreaToggle));
       
   742 
       
   743 ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-header/index.js
       
   744 
       
   745 
       
   746 
       
   747 /**
       
   748  * External dependencies
       
   749  */
       
   750 
       
   751 /**
       
   752  * WordPress dependencies
       
   753  */
       
   754 
       
   755 
       
   756 /**
       
   757  * Internal dependencies
       
   758  */
       
   759 
       
   760 
       
   761 
       
   762 const ComplementaryAreaHeader = _ref => {
       
   763   let {
       
   764     smallScreenTitle,
       
   765     children,
       
   766     className,
       
   767     toggleButtonProps
       
   768   } = _ref;
       
   769   const toggleButton = (0,external_wp_element_namespaceObject.createElement)(complementary_area_toggle, _extends({
       
   770     icon: close_small
       
   771   }, toggleButtonProps));
       
   772   return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)("div", {
       
   773     className: "components-panel__header interface-complementary-area-header__small"
       
   774   }, smallScreenTitle && (0,external_wp_element_namespaceObject.createElement)("span", {
       
   775     className: "interface-complementary-area-header__small-title"
       
   776   }, smallScreenTitle), toggleButton), (0,external_wp_element_namespaceObject.createElement)("div", {
       
   777     className: classnames_default()('components-panel__header', 'interface-complementary-area-header', className),
       
   778     tabIndex: -1
       
   779   }, children, toggleButton));
       
   780 };
       
   781 
       
   782 /* harmony default export */ var complementary_area_header = (ComplementaryAreaHeader);
       
   783 
       
   784 ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/action-item/index.js
       
   785 
       
   786 
       
   787 
       
   788 /**
       
   789  * External dependencies
       
   790  */
       
   791 
       
   792 /**
       
   793  * WordPress dependencies
       
   794  */
       
   795 
       
   796 
       
   797 
       
   798 
       
   799 function ActionItemSlot(_ref) {
       
   800   let {
       
   801     name,
       
   802     as: Component = external_wp_components_namespaceObject.ButtonGroup,
       
   803     fillProps = {},
       
   804     bubblesVirtually,
       
   805     ...props
       
   806   } = _ref;
       
   807   return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Slot, {
       
   808     name: name,
       
   809     bubblesVirtually: bubblesVirtually,
       
   810     fillProps: fillProps
       
   811   }, fills => {
       
   812     if ((0,external_lodash_namespaceObject.isEmpty)(external_wp_element_namespaceObject.Children.toArray(fills))) {
       
   813       return null;
       
   814     } // Special handling exists for backward compatibility.
       
   815     // It ensures that menu items created by plugin authors aren't
       
   816     // duplicated with automatically injected menu items coming
       
   817     // from pinnable plugin sidebars.
       
   818     // @see https://github.com/WordPress/gutenberg/issues/14457
       
   819 
       
   820 
       
   821     const initializedByPlugins = [];
       
   822     external_wp_element_namespaceObject.Children.forEach(fills, _ref2 => {
       
   823       let {
       
   824         props: {
       
   825           __unstableExplicitMenuItem,
       
   826           __unstableTarget
       
   827         }
       
   828       } = _ref2;
       
   829 
       
   830       if (__unstableTarget && __unstableExplicitMenuItem) {
       
   831         initializedByPlugins.push(__unstableTarget);
       
   832       }
       
   833     });
       
   834     const children = external_wp_element_namespaceObject.Children.map(fills, child => {
       
   835       if (!child.props.__unstableExplicitMenuItem && initializedByPlugins.includes(child.props.__unstableTarget)) {
       
   836         return null;
       
   837       }
       
   838 
       
   839       return child;
       
   840     });
       
   841     return (0,external_wp_element_namespaceObject.createElement)(Component, props, children);
       
   842   });
       
   843 }
       
   844 
       
   845 function ActionItem(_ref3) {
       
   846   let {
       
   847     name,
       
   848     as: Component = external_wp_components_namespaceObject.Button,
       
   849     onClick,
       
   850     ...props
       
   851   } = _ref3;
       
   852   return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Fill, {
       
   853     name: name
       
   854   }, _ref4 => {
       
   855     let {
       
   856       onClick: fpOnClick
       
   857     } = _ref4;
       
   858     return (0,external_wp_element_namespaceObject.createElement)(Component, _extends({
       
   859       onClick: onClick || fpOnClick ? function () {
       
   860         (onClick || external_lodash_namespaceObject.noop)(...arguments);
       
   861         (fpOnClick || external_lodash_namespaceObject.noop)(...arguments);
       
   862       } : undefined
       
   863     }, props));
       
   864   });
       
   865 }
       
   866 
       
   867 ActionItem.Slot = ActionItemSlot;
       
   868 /* harmony default export */ var action_item = (ActionItem);
       
   869 
       
   870 ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-more-menu-item/index.js
       
   871 
       
   872 
       
   873 
       
   874 /**
       
   875  * External dependencies
       
   876  */
       
   877 
       
   878 /**
       
   879  * WordPress dependencies
       
   880  */
       
   881 
       
   882 
       
   883 
       
   884 /**
       
   885  * Internal dependencies
       
   886  */
       
   887 
       
   888 
       
   889 
       
   890 
       
   891 const PluginsMenuItem = props => // Menu item is marked with unstable prop for backward compatibility.
       
   892 // They are removed so they don't leak to DOM elements.
       
   893 // @see https://github.com/WordPress/gutenberg/issues/14457
       
   894 (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, (0,external_lodash_namespaceObject.omit)(props, ['__unstableExplicitMenuItem', '__unstableTarget']));
       
   895 
       
   896 function ComplementaryAreaMoreMenuItem(_ref) {
       
   897   let {
       
   898     scope,
       
   899     target,
       
   900     __unstableExplicitMenuItem,
       
   901     ...props
       
   902   } = _ref;
       
   903   return (0,external_wp_element_namespaceObject.createElement)(complementary_area_toggle, _extends({
       
   904     as: toggleProps => {
       
   905       return (0,external_wp_element_namespaceObject.createElement)(action_item, _extends({
       
   906         __unstableExplicitMenuItem: __unstableExplicitMenuItem,
       
   907         __unstableTarget: `${scope}/${target}`,
       
   908         as: PluginsMenuItem,
       
   909         name: `${scope}/plugin-more-menu`
       
   910       }, toggleProps));
       
   911     },
       
   912     role: "menuitemcheckbox",
       
   913     selectedIcon: library_check,
       
   914     name: target,
       
   915     scope: scope
       
   916   }, props));
       
   917 }
       
   918 
       
   919 ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/pinned-items/index.js
       
   920 
       
   921 
       
   922 
       
   923 /**
       
   924  * External dependencies
       
   925  */
       
   926 
       
   927 
       
   928 /**
       
   929  * WordPress dependencies
       
   930  */
       
   931 
       
   932 
       
   933 
       
   934 function PinnedItems(_ref) {
       
   935   let {
       
   936     scope,
       
   937     ...props
       
   938   } = _ref;
       
   939   return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Fill, _extends({
       
   940     name: `PinnedItems/${scope}`
       
   941   }, props));
       
   942 }
       
   943 
       
   944 function PinnedItemsSlot(_ref2) {
       
   945   let {
       
   946     scope,
       
   947     className,
       
   948     ...props
       
   949   } = _ref2;
       
   950   return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Slot, _extends({
       
   951     name: `PinnedItems/${scope}`
       
   952   }, props), fills => !(0,external_lodash_namespaceObject.isEmpty)(fills) && (0,external_wp_element_namespaceObject.createElement)("div", {
       
   953     className: classnames_default()(className, 'interface-pinned-items')
       
   954   }, fills));
       
   955 }
       
   956 
       
   957 PinnedItems.Slot = PinnedItemsSlot;
       
   958 /* harmony default export */ var pinned_items = (PinnedItems);
       
   959 
       
   960 ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area/index.js
       
   961 
       
   962 
       
   963 
       
   964 /**
       
   965  * External dependencies
       
   966  */
       
   967 
       
   968 /**
       
   969  * WordPress dependencies
       
   970  */
       
   971 
       
   972 
       
   973 
       
   974 
       
   975 
       
   976 
       
   977 
       
   978 /**
       
   979  * Internal dependencies
       
   980  */
       
   981 
       
   982 
       
   983 
       
   984 
       
   985 
       
   986 
       
   987 
       
   988 
       
   989 function ComplementaryAreaSlot(_ref) {
       
   990   let {
       
   991     scope,
       
   992     ...props
       
   993   } = _ref;
       
   994   return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Slot, _extends({
       
   995     name: `ComplementaryArea/${scope}`
       
   996   }, props));
       
   997 }
       
   998 
       
   999 function ComplementaryAreaFill(_ref2) {
       
  1000   let {
       
  1001     scope,
       
  1002     children,
       
  1003     className
       
  1004   } = _ref2;
       
  1005   return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Fill, {
       
  1006     name: `ComplementaryArea/${scope}`
       
  1007   }, (0,external_wp_element_namespaceObject.createElement)("div", {
       
  1008     className: className
       
  1009   }, children));
       
  1010 }
       
  1011 
       
  1012 function useAdjustComplementaryListener(scope, identifier, activeArea, isActive, isSmall) {
       
  1013   const previousIsSmall = (0,external_wp_element_namespaceObject.useRef)(false);
       
  1014   const shouldOpenWhenNotSmall = (0,external_wp_element_namespaceObject.useRef)(false);
       
  1015   const {
       
  1016     enableComplementaryArea,
       
  1017     disableComplementaryArea
       
  1018   } = (0,external_wp_data_namespaceObject.useDispatch)(store);
       
  1019   (0,external_wp_element_namespaceObject.useEffect)(() => {
       
  1020     // If the complementary area is active and the editor is switching from a big to a small window size.
       
  1021     if (isActive && isSmall && !previousIsSmall.current) {
       
  1022       // Disable the complementary area.
       
  1023       disableComplementaryArea(scope); // Flag the complementary area to be reopened when the window size goes from small to big.
       
  1024 
       
  1025       shouldOpenWhenNotSmall.current = true;
       
  1026     } else if ( // If there is a flag indicating the complementary area should be enabled when we go from small to big window size
       
  1027     // and we are going from a small to big window size.
       
  1028     shouldOpenWhenNotSmall.current && !isSmall && previousIsSmall.current) {
       
  1029       // Remove the flag indicating the complementary area should be enabled.
       
  1030       shouldOpenWhenNotSmall.current = false; // Enable the complementary area.
       
  1031 
       
  1032       enableComplementaryArea(scope, identifier);
       
  1033     } else if ( // If the flag is indicating the current complementary should be reopened but another complementary area becomes active,
       
  1034     // remove the flag.
       
  1035     shouldOpenWhenNotSmall.current && activeArea && activeArea !== identifier) {
       
  1036       shouldOpenWhenNotSmall.current = false;
       
  1037     }
       
  1038 
       
  1039     if (isSmall !== previousIsSmall.current) {
       
  1040       previousIsSmall.current = isSmall;
       
  1041     }
       
  1042   }, [isActive, isSmall, scope, identifier, activeArea]);
       
  1043 }
       
  1044 
       
  1045 function ComplementaryArea(_ref3) {
       
  1046   let {
       
  1047     children,
       
  1048     className,
       
  1049     closeLabel = (0,external_wp_i18n_namespaceObject.__)('Close plugin'),
       
  1050     identifier,
       
  1051     header,
       
  1052     headerClassName,
       
  1053     icon,
       
  1054     isPinnable = true,
       
  1055     panelClassName,
       
  1056     scope,
       
  1057     name,
       
  1058     smallScreenTitle,
       
  1059     title,
       
  1060     toggleShortcut,
       
  1061     isActiveByDefault,
       
  1062     showIconLabels = false
       
  1063   } = _ref3;
       
  1064   const {
       
  1065     isActive,
       
  1066     isPinned,
       
  1067     activeArea,
       
  1068     isSmall,
       
  1069     isLarge
       
  1070   } = (0,external_wp_data_namespaceObject.useSelect)(select => {
       
  1071     const {
       
  1072       getActiveComplementaryArea,
       
  1073       isItemPinned
       
  1074     } = select(store);
       
  1075 
       
  1076     const _activeArea = getActiveComplementaryArea(scope);
       
  1077 
       
  1078     return {
       
  1079       isActive: _activeArea === identifier,
       
  1080       isPinned: isItemPinned(scope, identifier),
       
  1081       activeArea: _activeArea,
       
  1082       isSmall: select(external_wp_viewport_namespaceObject.store).isViewportMatch('< medium'),
       
  1083       isLarge: select(external_wp_viewport_namespaceObject.store).isViewportMatch('large')
       
  1084     };
       
  1085   }, [identifier, scope]);
       
  1086   useAdjustComplementaryListener(scope, identifier, activeArea, isActive, isSmall);
       
  1087   const {
       
  1088     enableComplementaryArea,
       
  1089     disableComplementaryArea,
       
  1090     pinItem,
       
  1091     unpinItem
       
  1092   } = (0,external_wp_data_namespaceObject.useDispatch)(store);
       
  1093   (0,external_wp_element_namespaceObject.useEffect)(() => {
       
  1094     if (isActiveByDefault && activeArea === undefined && !isSmall) {
       
  1095       enableComplementaryArea(scope, identifier);
       
  1096     }
       
  1097   }, [activeArea, isActiveByDefault, scope, identifier, isSmall]);
       
  1098   return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, isPinnable && (0,external_wp_element_namespaceObject.createElement)(pinned_items, {
       
  1099     scope: scope
       
  1100   }, isPinned && (0,external_wp_element_namespaceObject.createElement)(complementary_area_toggle, {
       
  1101     scope: scope,
       
  1102     identifier: identifier,
       
  1103     isPressed: isActive && (!showIconLabels || isLarge),
       
  1104     "aria-expanded": isActive,
       
  1105     label: title,
       
  1106     icon: showIconLabels ? library_check : icon,
       
  1107     showTooltip: !showIconLabels,
       
  1108     variant: showIconLabels ? 'tertiary' : undefined
       
  1109   })), name && isPinnable && (0,external_wp_element_namespaceObject.createElement)(ComplementaryAreaMoreMenuItem, {
       
  1110     target: name,
       
  1111     scope: scope,
       
  1112     icon: icon
       
  1113   }, title), isActive && (0,external_wp_element_namespaceObject.createElement)(ComplementaryAreaFill, {
       
  1114     className: classnames_default()('interface-complementary-area', className),
       
  1115     scope: scope
       
  1116   }, (0,external_wp_element_namespaceObject.createElement)(complementary_area_header, {
       
  1117     className: headerClassName,
       
  1118     closeLabel: closeLabel,
       
  1119     onClose: () => disableComplementaryArea(scope),
       
  1120     smallScreenTitle: smallScreenTitle,
       
  1121     toggleButtonProps: {
       
  1122       label: closeLabel,
       
  1123       shortcut: toggleShortcut,
       
  1124       scope,
       
  1125       identifier
       
  1126     }
       
  1127   }, header || (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)("strong", null, title), isPinnable && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
       
  1128     className: "interface-complementary-area__pin-unpin-item",
       
  1129     icon: isPinned ? star_filled : star_empty,
       
  1130     label: isPinned ? (0,external_wp_i18n_namespaceObject.__)('Unpin from toolbar') : (0,external_wp_i18n_namespaceObject.__)('Pin to toolbar'),
       
  1131     onClick: () => (isPinned ? unpinItem : pinItem)(scope, identifier),
       
  1132     isPressed: isPinned,
       
  1133     "aria-expanded": isPinned
       
  1134   }))), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Panel, {
       
  1135     className: panelClassName
       
  1136   }, children)));
       
  1137 }
       
  1138 
       
  1139 const ComplementaryAreaWrapped = complementary_area_context(ComplementaryArea);
       
  1140 ComplementaryAreaWrapped.Slot = ComplementaryAreaSlot;
       
  1141 /* harmony default export */ var complementary_area = (ComplementaryAreaWrapped);
       
  1142 
       
  1143 ;// CONCATENATED MODULE: external ["wp","compose"]
       
  1144 var external_wp_compose_namespaceObject = window["wp"]["compose"];
       
  1145 ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/interface-skeleton/index.js
       
  1146 
       
  1147 
       
  1148 
       
  1149 /**
       
  1150  * External dependencies
       
  1151  */
       
  1152 
       
  1153 /**
       
  1154  * WordPress dependencies
       
  1155  */
       
  1156 
       
  1157 /**
       
  1158  * WordPress dependencies
       
  1159  */
       
  1160 
       
  1161 
       
  1162 
       
  1163 
       
  1164 
       
  1165 
       
  1166 function useHTMLClass(className) {
       
  1167   (0,external_wp_element_namespaceObject.useEffect)(() => {
       
  1168     const element = document && document.querySelector(`html:not(.${className})`);
       
  1169 
       
  1170     if (!element) {
       
  1171       return;
       
  1172     }
       
  1173 
       
  1174     element.classList.toggle(className);
       
  1175     return () => {
       
  1176       element.classList.toggle(className);
       
  1177     };
       
  1178   }, [className]);
       
  1179 }
       
  1180 
       
  1181 function InterfaceSkeleton(_ref, ref) {
       
  1182   let {
       
  1183     footer,
       
  1184     header,
       
  1185     sidebar,
       
  1186     secondarySidebar,
       
  1187     notices,
       
  1188     content,
       
  1189     drawer,
       
  1190     actions,
       
  1191     labels,
       
  1192     className,
       
  1193     shortcuts
       
  1194   } = _ref;
       
  1195   const navigateRegionsProps = (0,external_wp_components_namespaceObject.__unstableUseNavigateRegions)(shortcuts);
       
  1196   useHTMLClass('interface-interface-skeleton__html-container');
       
  1197   const defaultLabels = {
       
  1198     /* translators: accessibility text for the nav bar landmark region. */
       
  1199     drawer: (0,external_wp_i18n_namespaceObject.__)('Drawer'),
       
  1200 
       
  1201     /* translators: accessibility text for the top bar landmark region. */
       
  1202     header: (0,external_wp_i18n_namespaceObject.__)('Header'),
       
  1203 
       
  1204     /* translators: accessibility text for the content landmark region. */
       
  1205     body: (0,external_wp_i18n_namespaceObject.__)('Content'),
       
  1206 
       
  1207     /* translators: accessibility text for the secondary sidebar landmark region. */
       
  1208     secondarySidebar: (0,external_wp_i18n_namespaceObject.__)('Block Library'),
       
  1209 
       
  1210     /* translators: accessibility text for the settings landmark region. */
       
  1211     sidebar: (0,external_wp_i18n_namespaceObject.__)('Settings'),
       
  1212 
       
  1213     /* translators: accessibility text for the publish landmark region. */
       
  1214     actions: (0,external_wp_i18n_namespaceObject.__)('Publish'),
       
  1215 
       
  1216     /* translators: accessibility text for the footer landmark region. */
       
  1217     footer: (0,external_wp_i18n_namespaceObject.__)('Footer')
       
  1218   };
       
  1219   const mergedLabels = { ...defaultLabels,
       
  1220     ...labels
       
  1221   };
       
  1222   return (0,external_wp_element_namespaceObject.createElement)("div", _extends({}, navigateRegionsProps, {
       
  1223     ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, navigateRegionsProps.ref]),
       
  1224     className: classnames_default()(className, 'interface-interface-skeleton', navigateRegionsProps.className, !!footer && 'has-footer')
       
  1225   }), !!drawer && (0,external_wp_element_namespaceObject.createElement)("div", {
       
  1226     className: "interface-interface-skeleton__drawer",
       
  1227     role: "region",
       
  1228     "aria-label": mergedLabels.drawer,
       
  1229     tabIndex: "-1"
       
  1230   }, drawer), (0,external_wp_element_namespaceObject.createElement)("div", {
       
  1231     className: "interface-interface-skeleton__editor"
       
  1232   }, !!header && (0,external_wp_element_namespaceObject.createElement)("div", {
       
  1233     className: "interface-interface-skeleton__header",
       
  1234     role: "region",
       
  1235     "aria-label": mergedLabels.header,
       
  1236     tabIndex: "-1"
       
  1237   }, header), (0,external_wp_element_namespaceObject.createElement)("div", {
       
  1238     className: "interface-interface-skeleton__body"
       
  1239   }, !!secondarySidebar && (0,external_wp_element_namespaceObject.createElement)("div", {
       
  1240     className: "interface-interface-skeleton__secondary-sidebar",
       
  1241     role: "region",
       
  1242     "aria-label": mergedLabels.secondarySidebar,
       
  1243     tabIndex: "-1"
       
  1244   }, secondarySidebar), !!notices && (0,external_wp_element_namespaceObject.createElement)("div", {
       
  1245     className: "interface-interface-skeleton__notices"
       
  1246   }, notices), (0,external_wp_element_namespaceObject.createElement)("div", {
       
  1247     className: "interface-interface-skeleton__content",
       
  1248     role: "region",
       
  1249     "aria-label": mergedLabels.body,
       
  1250     tabIndex: "-1"
       
  1251   }, content), !!sidebar && (0,external_wp_element_namespaceObject.createElement)("div", {
       
  1252     className: "interface-interface-skeleton__sidebar",
       
  1253     role: "region",
       
  1254     "aria-label": mergedLabels.sidebar,
       
  1255     tabIndex: "-1"
       
  1256   }, sidebar), !!actions && (0,external_wp_element_namespaceObject.createElement)("div", {
       
  1257     className: "interface-interface-skeleton__actions",
       
  1258     role: "region",
       
  1259     "aria-label": mergedLabels.actions,
       
  1260     tabIndex: "-1"
       
  1261   }, actions))), !!footer && (0,external_wp_element_namespaceObject.createElement)("div", {
       
  1262     className: "interface-interface-skeleton__footer",
       
  1263     role: "region",
       
  1264     "aria-label": mergedLabels.footer,
       
  1265     tabIndex: "-1"
       
  1266   }, footer));
       
  1267 }
       
  1268 
       
  1269 /* harmony default export */ var interface_skeleton = ((0,external_wp_element_namespaceObject.forwardRef)(InterfaceSkeleton));
       
  1270 
       
  1271 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js
       
  1272 
       
  1273 
       
  1274 /**
       
  1275  * WordPress dependencies
       
  1276  */
       
  1277 
       
  1278 const moreVertical = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
       
  1279   xmlns: "http://www.w3.org/2000/svg",
       
  1280   viewBox: "0 0 24 24"
       
  1281 }, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
       
  1282   d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
       
  1283 }));
       
  1284 /* harmony default export */ var more_vertical = (moreVertical);
       
  1285 
       
  1286 ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/more-menu-dropdown/index.js
       
  1287 
       
  1288 
       
  1289 /**
       
  1290  * External dependencies
       
  1291  */
       
  1292 
       
  1293 /**
       
  1294  * WordPress dependencies
       
  1295  */
       
  1296 
       
  1297 
       
  1298 
       
  1299 
       
  1300 function MoreMenuDropdown(_ref) {
       
  1301   let {
       
  1302     as: DropdownComponent = external_wp_components_namespaceObject.DropdownMenu,
       
  1303     className,
       
  1304 
       
  1305     /* translators: button label text should, if possible, be under 16 characters. */
       
  1306     label = (0,external_wp_i18n_namespaceObject.__)('Options'),
       
  1307     popoverProps,
       
  1308     toggleProps,
       
  1309     children
       
  1310   } = _ref;
       
  1311   return (0,external_wp_element_namespaceObject.createElement)(DropdownComponent, {
       
  1312     className: classnames_default()('interface-more-menu-dropdown', className),
       
  1313     icon: more_vertical,
       
  1314     label: label,
       
  1315     popoverProps: {
       
  1316       position: 'bottom left',
       
  1317       ...popoverProps,
       
  1318       className: classnames_default()('interface-more-menu-dropdown__content', popoverProps === null || popoverProps === void 0 ? void 0 : popoverProps.className)
       
  1319     },
       
  1320     toggleProps: {
       
  1321       tooltipPosition: 'bottom',
       
  1322       ...toggleProps
       
  1323     }
       
  1324   }, onClose => children(onClose));
       
  1325 }
       
  1326 
       
  1327 ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/index.js
       
  1328 
       
  1329 
       
  1330 
       
  1331 
       
  1332 
       
  1333 
       
  1334 
       
  1335 
       
  1336 
       
  1337 
       
  1338 
       
  1339 
       
  1340 
       
  1341 ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/index.js
       
  1342 
       
  1343 
       
  1344 
       
  1345 ;// CONCATENATED MODULE: external ["wp","blockEditor"]
       
  1346 var external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"];
       
  1347 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/transformers.js
       
  1348 /**
       
  1349  * WordPress dependencies
       
  1350  */
       
  1351 
       
  1352 
       
  1353 /**
       
  1354  * Converts a widget entity record into a block.
       
  1355  *
       
  1356  * @param {Object} widget The widget entity record.
       
  1357  * @return {Object} a block (converted from the entity record).
       
  1358  */
       
  1359 
       
  1360 function transformWidgetToBlock(widget) {
       
  1361   if (widget.id_base === 'block') {
       
  1362     const parsedBlocks = (0,external_wp_blocks_namespaceObject.parse)(widget.instance.raw.content);
       
  1363 
       
  1364     if (!parsedBlocks.length) {
       
  1365       return (0,external_wp_widgets_namespaceObject.addWidgetIdToBlock)((0,external_wp_blocks_namespaceObject.createBlock)('core/paragraph', {}, []), widget.id);
       
  1366     }
       
  1367 
       
  1368     return (0,external_wp_widgets_namespaceObject.addWidgetIdToBlock)(parsedBlocks[0], widget.id);
       
  1369   }
       
  1370 
       
  1371   let attributes;
       
  1372 
       
  1373   if (widget._embedded.about[0].is_multi) {
       
  1374     attributes = {
       
  1375       idBase: widget.id_base,
       
  1376       instance: widget.instance
       
  1377     };
       
  1378   } else {
       
  1379     attributes = {
       
  1380       id: widget.id
       
  1381     };
       
  1382   }
       
  1383 
       
  1384   return (0,external_wp_widgets_namespaceObject.addWidgetIdToBlock)((0,external_wp_blocks_namespaceObject.createBlock)('core/legacy-widget', attributes, []), widget.id);
       
  1385 }
       
  1386 /**
       
  1387  * Converts a block to a widget entity record.
       
  1388  *
       
  1389  * @param {Object}  block         The block.
       
  1390  * @param {Object?} relatedWidget A related widget entity record from the API (optional).
       
  1391  * @return {Object} the widget object (converted from block).
       
  1392  */
       
  1393 
       
  1394 function transformBlockToWidget(block) {
       
  1395   let relatedWidget = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
       
  1396   let widget;
       
  1397   const isValidLegacyWidgetBlock = block.name === 'core/legacy-widget' && (block.attributes.id || block.attributes.instance);
       
  1398 
       
  1399   if (isValidLegacyWidgetBlock) {
       
  1400     var _block$attributes$id, _block$attributes$idB, _block$attributes$ins;
       
  1401 
       
  1402     widget = { ...relatedWidget,
       
  1403       id: (_block$attributes$id = block.attributes.id) !== null && _block$attributes$id !== void 0 ? _block$attributes$id : relatedWidget.id,
       
  1404       id_base: (_block$attributes$idB = block.attributes.idBase) !== null && _block$attributes$idB !== void 0 ? _block$attributes$idB : relatedWidget.id_base,
       
  1405       instance: (_block$attributes$ins = block.attributes.instance) !== null && _block$attributes$ins !== void 0 ? _block$attributes$ins : relatedWidget.instance
       
  1406     };
       
  1407   } else {
       
  1408     widget = { ...relatedWidget,
       
  1409       id_base: 'block',
       
  1410       instance: {
       
  1411         raw: {
       
  1412           content: (0,external_wp_blocks_namespaceObject.serialize)(block)
       
  1413         }
       
  1414       }
       
  1415     };
       
  1416   } // Delete read-only properties.
       
  1417 
       
  1418 
       
  1419   delete widget.rendered;
       
  1420   delete widget.rendered_form;
       
  1421   return widget;
       
  1422 }
       
  1423 
       
  1424 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/utils.js
   362 /**
  1425 /**
   363  * "Kind" of the navigation post.
  1426  * "Kind" of the navigation post.
   364  *
  1427  *
   365  * @type {string}
  1428  * @type {string}
   366  */
  1429  */
   419 }
  1482 }
   420 /**
  1483 /**
   421  * Creates a stub post with given id and set of blocks. Used as a governing entity records
  1484  * Creates a stub post with given id and set of blocks. Used as a governing entity records
   422  * for all widget areas.
  1485  * for all widget areas.
   423  *
  1486  *
   424  * @param {string} id Post ID.
  1487  * @param {string} id     Post ID.
   425  * @param {Array} blocks The list of blocks.
  1488  * @param {Array}  blocks The list of blocks.
   426  * @return {Object} A stub post object formatted in compliance with the data layer.
  1489  * @return {Object} A stub post object formatted in compliance with the data layer.
   427  */
  1490  */
   428 
  1491 
   429 const createStubPost = (id, blocks) => ({
  1492 const createStubPost = (id, blocks) => ({
   430   id,
  1493   id,
   435   meta: {
  1498   meta: {
   436     widgetAreaId: id
  1499     widgetAreaId: id
   437   }
  1500   }
   438 });
  1501 });
   439 
  1502 
   440 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/constants.js
  1503 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/constants.js
   441 /**
  1504 /**
   442  * Module Constants
  1505  * Module Constants
   443  */
  1506  */
   444 const STORE_NAME = 'core/edit-widgets';
  1507 const constants_STORE_NAME = 'core/edit-widgets';
   445 
  1508 
   446 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/controls.js
  1509 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/actions.js
   447 /**
  1510 /**
   448  * WordPress dependencies
  1511  * WordPress dependencies
   449  */
  1512  */
       
  1513 
       
  1514 
       
  1515 
       
  1516 
       
  1517 
   450 
  1518 
   451 /**
  1519 /**
   452  * Internal dependencies
  1520  * Internal dependencies
   453  */
  1521  */
   454 
       
   455 
       
   456 
       
   457 /**
       
   458  * Trigger an API Fetch request.
       
   459  *
       
   460  * @param {Object} request API Fetch Request Object.
       
   461  * @return {Object} control descriptor.
       
   462  */
       
   463 
       
   464 function apiFetch(request) {
       
   465   return {
       
   466     type: 'API_FETCH',
       
   467     request
       
   468   };
       
   469 }
       
   470 /**
       
   471  * Returns a list of pending actions for given post id.
       
   472  *
       
   473  * @param {number} postId Post ID.
       
   474  * @return {Array} List of pending actions.
       
   475  */
       
   476 
       
   477 function getPendingActions(postId) {
       
   478   return {
       
   479     type: 'GET_PENDING_ACTIONS',
       
   480     postId
       
   481   };
       
   482 }
       
   483 /**
       
   484  * Returns boolean indicating whether or not an action processing specified
       
   485  * post is currently running.
       
   486  *
       
   487  * @param {number} postId Post ID.
       
   488  * @return {Object} Action.
       
   489  */
       
   490 
       
   491 function isProcessingPost(postId) {
       
   492   return {
       
   493     type: 'IS_PROCESSING_POST',
       
   494     postId
       
   495   };
       
   496 }
       
   497 /**
       
   498  * Resolves navigation post for given menuId.
       
   499  *
       
   500  * @see selectors.js
       
   501  * @param {number} menuId Menu ID.
       
   502  * @return {Object} Action.
       
   503  */
       
   504 
       
   505 function getNavigationPostForMenu(menuId) {
       
   506   return {
       
   507     type: 'SELECT',
       
   508     registryName: 'core/edit-navigation',
       
   509     selectorName: 'getNavigationPostForMenu',
       
   510     args: [menuId]
       
   511   };
       
   512 }
       
   513 /**
       
   514  * Resolves widget areas.
       
   515  *
       
   516  * @param {Object} query Query.
       
   517  * @return {Object} Action.
       
   518  */
       
   519 
       
   520 function resolveWidgetAreas(query = buildWidgetAreasQuery()) {
       
   521   return {
       
   522     type: 'RESOLVE_WIDGET_AREAS',
       
   523     query
       
   524   };
       
   525 }
       
   526 /**
       
   527  * Resolves widgets.
       
   528  *
       
   529  * @param {Object} query Query.
       
   530  * @return {Object} Action.
       
   531  */
       
   532 
       
   533 function resolveWidgets(query = buildWidgetsQuery()) {
       
   534   return {
       
   535     type: 'RESOLVE_WIDGETS',
       
   536     query
       
   537   };
       
   538 }
       
   539 /**
       
   540  * Calls a selector using chosen registry.
       
   541  *
       
   542  * @param {string} registryName Registry name.
       
   543  * @param {string} selectorName Selector name.
       
   544  * @param {Array} args          Selector arguments.
       
   545  * @return {Object} control descriptor.
       
   546  */
       
   547 
       
   548 function controls_select(registryName, selectorName, ...args) {
       
   549   return {
       
   550     type: 'SELECT',
       
   551     registryName,
       
   552     selectorName,
       
   553     args
       
   554   };
       
   555 }
       
   556 /**
       
   557  * Dispatches an action using chosen registry.
       
   558  *
       
   559  * @param {string} registryName Registry name.
       
   560  * @param {string} actionName   Action name.
       
   561  * @param {Array} args          Selector arguments.
       
   562  * @return {Object} control descriptor.
       
   563  */
       
   564 
       
   565 function dispatch(registryName, actionName, ...args) {
       
   566   return {
       
   567     type: 'DISPATCH',
       
   568     registryName,
       
   569     actionName,
       
   570     args
       
   571   };
       
   572 }
       
   573 const controls = {
       
   574   AWAIT_PROMISE: ({
       
   575     promise
       
   576   }) => promise,
       
   577   SELECT: Object(external_wp_data_["createRegistryControl"])(registry => ({
       
   578     registryName,
       
   579     selectorName,
       
   580     args
       
   581   }) => {
       
   582     return registry.select(registryName)[selectorName](...args);
       
   583   }),
       
   584   GET_PENDING_ACTIONS: Object(external_wp_data_["createRegistryControl"])(registry => ({
       
   585     postId
       
   586   }) => {
       
   587     var _getState$processingQ;
       
   588 
       
   589     return ((_getState$processingQ = getState(registry).processingQueue[postId]) === null || _getState$processingQ === void 0 ? void 0 : _getState$processingQ.pendingActions) || [];
       
   590   }),
       
   591   IS_PROCESSING_POST: Object(external_wp_data_["createRegistryControl"])(registry => ({
       
   592     postId
       
   593   }) => {
       
   594     var _getState$processingQ2;
       
   595 
       
   596     return (_getState$processingQ2 = getState(registry).processingQueue[postId]) === null || _getState$processingQ2 === void 0 ? void 0 : _getState$processingQ2.inProgress;
       
   597   }),
       
   598   DISPATCH: Object(external_wp_data_["createRegistryControl"])(registry => ({
       
   599     registryName,
       
   600     actionName,
       
   601     args
       
   602   }) => {
       
   603     return registry.dispatch(registryName)[actionName](...args);
       
   604   }),
       
   605   RESOLVE_WIDGET_AREAS: Object(external_wp_data_["createRegistryControl"])(registry => ({
       
   606     query
       
   607   }) => {
       
   608     return registry.resolveSelect('core').getEntityRecords(KIND, WIDGET_AREA_ENTITY_TYPE, query);
       
   609   }),
       
   610   RESOLVE_WIDGETS: Object(external_wp_data_["createRegistryControl"])(registry => ({
       
   611     query
       
   612   }) => {
       
   613     return registry.resolveSelect('core').getEntityRecords('root', 'widget', query);
       
   614   })
       
   615 };
       
   616 
       
   617 const getState = registry => registry.stores[STORE_NAME].store.getState();
       
   618 
       
   619 /* harmony default export */ var store_controls = (controls);
       
   620 
       
   621 // EXTERNAL MODULE: external ["wp","i18n"]
       
   622 var external_wp_i18n_ = __webpack_require__("l3Sj");
       
   623 
       
   624 // EXTERNAL MODULE: external ["wp","notices"]
       
   625 var external_wp_notices_ = __webpack_require__("onLe");
       
   626 
       
   627 // EXTERNAL MODULE: ./node_modules/@wordpress/interface/build-module/index.js + 15 modules
       
   628 var build_module = __webpack_require__("U60i");
       
   629 
       
   630 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/transformers.js
       
   631 /**
       
   632  * WordPress dependencies
       
   633  */
       
   634 
       
   635 
       
   636 function transformWidgetToBlock(widget) {
       
   637   if (widget.id_base === 'block') {
       
   638     const parsedBlocks = Object(external_wp_blocks_["parse"])(widget.instance.raw.content);
       
   639 
       
   640     if (!parsedBlocks.length) {
       
   641       return Object(external_wp_widgets_["addWidgetIdToBlock"])(Object(external_wp_blocks_["createBlock"])('core/paragraph', {}, []), widget.id);
       
   642     }
       
   643 
       
   644     return Object(external_wp_widgets_["addWidgetIdToBlock"])(parsedBlocks[0], widget.id);
       
   645   }
       
   646 
       
   647   let attributes;
       
   648 
       
   649   if (widget._embedded.about[0].is_multi) {
       
   650     attributes = {
       
   651       idBase: widget.id_base,
       
   652       instance: widget.instance
       
   653     };
       
   654   } else {
       
   655     attributes = {
       
   656       id: widget.id
       
   657     };
       
   658   }
       
   659 
       
   660   return Object(external_wp_widgets_["addWidgetIdToBlock"])(Object(external_wp_blocks_["createBlock"])('core/legacy-widget', attributes, []), widget.id);
       
   661 }
       
   662 function transformBlockToWidget(block, relatedWidget = {}) {
       
   663   let widget;
       
   664   const isValidLegacyWidgetBlock = block.name === 'core/legacy-widget' && (block.attributes.id || block.attributes.instance);
       
   665 
       
   666   if (isValidLegacyWidgetBlock) {
       
   667     var _block$attributes$id, _block$attributes$idB, _block$attributes$ins;
       
   668 
       
   669     widget = { ...relatedWidget,
       
   670       id: (_block$attributes$id = block.attributes.id) !== null && _block$attributes$id !== void 0 ? _block$attributes$id : relatedWidget.id,
       
   671       id_base: (_block$attributes$idB = block.attributes.idBase) !== null && _block$attributes$idB !== void 0 ? _block$attributes$idB : relatedWidget.id_base,
       
   672       instance: (_block$attributes$ins = block.attributes.instance) !== null && _block$attributes$ins !== void 0 ? _block$attributes$ins : relatedWidget.instance
       
   673     };
       
   674   } else {
       
   675     widget = { ...relatedWidget,
       
   676       id_base: 'block',
       
   677       instance: {
       
   678         raw: {
       
   679           content: Object(external_wp_blocks_["serialize"])(block)
       
   680         }
       
   681       }
       
   682     };
       
   683   } // Delete read-only properties.
       
   684 
       
   685 
       
   686   delete widget.rendered;
       
   687   delete widget.rendered_form;
       
   688   return widget;
       
   689 }
       
   690 
       
   691 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/actions.js
       
   692 /**
       
   693  * WordPress dependencies
       
   694  */
       
   695 
       
   696 
       
   697 
       
   698 
       
   699 /**
       
   700  * Internal dependencies
       
   701  */
       
   702 
       
   703 
  1522 
   704 
  1523 
   705 
  1524 
   706 
  1525 
   707 /**
  1526 /**
   708  * Persists a stub post with given ID to core data store. The post is meant to be in-memory only and
  1527  * Persists a stub post with given ID to core data store. The post is meant to be in-memory only and
   709  * shouldn't be saved via the API.
  1528  * shouldn't be saved via the API.
   710  *
  1529  *
   711  * @param  {string} id Post ID.
  1530  * @param {string} id     Post ID.
   712  * @param  {Array}  blocks Blocks the post should consist of.
  1531  * @param {Array}  blocks Blocks the post should consist of.
   713  * @return {Object} The post object.
  1532  * @return {Object} The post object.
   714  */
  1533  */
   715 
  1534 
   716 const persistStubPost = function* (id, blocks) {
  1535 const persistStubPost = (id, blocks) => _ref => {
       
  1536   let {
       
  1537     registry
       
  1538   } = _ref;
   717   const stubPost = createStubPost(id, blocks);
  1539   const stubPost = createStubPost(id, blocks);
   718   yield dispatch('core', 'receiveEntityRecords', KIND, POST_TYPE, stubPost, {
  1540   registry.dispatch(external_wp_coreData_namespaceObject.store).receiveEntityRecords(KIND, POST_TYPE, stubPost, {
   719     id: stubPost.id
  1541     id: stubPost.id
   720   }, false);
  1542   }, false);
   721   return stubPost;
  1543   return stubPost;
   722 };
  1544 };
   723 function* actions_saveEditedWidgetAreas() {
  1545 /**
   724   const editedWidgetAreas = yield controls_select(STORE_NAME, 'getEditedWidgetAreas');
  1546  * Converts all the blocks from edited widget areas into widgets,
       
  1547  * and submits a batch request to save everything at once.
       
  1548  *
       
  1549  * Creates a snackbar notice on either success or error.
       
  1550  *
       
  1551  * @return {Function} An action creator.
       
  1552  */
       
  1553 
       
  1554 const saveEditedWidgetAreas = () => async _ref2 => {
       
  1555   let {
       
  1556     select,
       
  1557     dispatch,
       
  1558     registry
       
  1559   } = _ref2;
       
  1560   const editedWidgetAreas = select.getEditedWidgetAreas();
   725 
  1561 
   726   if (!(editedWidgetAreas !== null && editedWidgetAreas !== void 0 && editedWidgetAreas.length)) {
  1562   if (!(editedWidgetAreas !== null && editedWidgetAreas !== void 0 && editedWidgetAreas.length)) {
   727     return;
  1563     return;
   728   }
  1564   }
   729 
  1565 
   730   try {
  1566   try {
   731     yield* saveWidgetAreas(editedWidgetAreas);
  1567     await dispatch.saveWidgetAreas(editedWidgetAreas);
   732     yield dispatch(external_wp_notices_["store"], 'createSuccessNotice', Object(external_wp_i18n_["__"])('Widgets saved.'), {
  1568     registry.dispatch(external_wp_notices_namespaceObject.store).createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Widgets saved.'), {
   733       type: 'snackbar'
  1569       type: 'snackbar'
   734     });
  1570     });
   735   } catch (e) {
  1571   } catch (e) {
   736     yield dispatch(external_wp_notices_["store"], 'createErrorNotice',
  1572     registry.dispatch(external_wp_notices_namespaceObject.store).createErrorNotice(
   737     /* translators: %s: The error message. */
  1573     /* translators: %s: The error message. */
   738     Object(external_wp_i18n_["sprintf"])(Object(external_wp_i18n_["__"])('There was an error. %s'), e.message), {
  1574     (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('There was an error. %s'), e.message), {
   739       type: 'snackbar'
  1575       type: 'snackbar'
   740     });
  1576     });
   741   }
  1577   }
   742 }
  1578 };
   743 function* saveWidgetAreas(widgetAreas) {
  1579 /**
       
  1580  * Converts all the blocks from specified widget areas into widgets,
       
  1581  * and submits a batch request to save everything at once.
       
  1582  *
       
  1583  * @param {Object[]} widgetAreas Widget areas to save.
       
  1584  * @return {Function} An action creator.
       
  1585  */
       
  1586 
       
  1587 const saveWidgetAreas = widgetAreas => async _ref3 => {
       
  1588   let {
       
  1589     dispatch,
       
  1590     registry
       
  1591   } = _ref3;
       
  1592 
   744   try {
  1593   try {
   745     for (const widgetArea of widgetAreas) {
  1594     for (const widgetArea of widgetAreas) {
   746       yield* saveWidgetArea(widgetArea.id);
  1595       await dispatch.saveWidgetArea(widgetArea.id);
   747     }
  1596     }
   748   } finally {
  1597   } finally {
   749     // saveEditedEntityRecord resets the resolution status, let's fix it manually
  1598     // saveEditedEntityRecord resets the resolution status, let's fix it manually.
   750     yield dispatch('core', 'finishResolution', 'getEntityRecord', KIND, WIDGET_AREA_ENTITY_TYPE, buildWidgetAreasQuery());
  1599     await registry.dispatch(external_wp_coreData_namespaceObject.store).finishResolution('getEntityRecord', KIND, WIDGET_AREA_ENTITY_TYPE, buildWidgetAreasQuery());
   751   }
  1600   }
   752 }
  1601 };
   753 function* saveWidgetArea(widgetAreaId) {
  1602 /**
   754   const widgets = yield controls_select(STORE_NAME, 'getWidgets');
  1603  * Converts all the blocks from a widget area specified by ID into widgets,
   755   const post = yield controls_select('core', 'getEditedEntityRecord', KIND, POST_TYPE, buildWidgetAreaPostId(widgetAreaId)); // Get all widgets from this area
  1604  * and submits a batch request to save everything at once.
   756 
  1605  *
   757   const areaWidgets = Object.values(widgets).filter(({
  1606  * @param {string} widgetAreaId ID of the widget area to process.
   758     sidebar
  1607  * @return {Function} An action creator.
   759   }) => sidebar === widgetAreaId); // Remove all duplicate reference widget instances for legacy widgets.
  1608  */
       
  1609 
       
  1610 const saveWidgetArea = widgetAreaId => async _ref4 => {
       
  1611   let {
       
  1612     dispatch,
       
  1613     select,
       
  1614     registry
       
  1615   } = _ref4;
       
  1616   const widgets = select.getWidgets();
       
  1617   const post = registry.select(external_wp_coreData_namespaceObject.store).getEditedEntityRecord(KIND, POST_TYPE, buildWidgetAreaPostId(widgetAreaId)); // Get all widgets from this area
       
  1618 
       
  1619   const areaWidgets = Object.values(widgets).filter(_ref5 => {
       
  1620     let {
       
  1621       sidebar
       
  1622     } = _ref5;
       
  1623     return sidebar === widgetAreaId;
       
  1624   }); // Remove all duplicate reference widget instances for legacy widgets.
   760   // Why? We filter out the widgets with duplicate IDs to prevent adding more than one instance of a widget
  1625   // Why? We filter out the widgets with duplicate IDs to prevent adding more than one instance of a widget
   761   // implemented using a function. WordPress doesn't support having more than one instance of these, if you try to
  1626   // implemented using a function. WordPress doesn't support having more than one instance of these, if you try to
   762   // save multiple instances of these in different sidebars you will run into undefined behaviors.
  1627   // save multiple instances of these in different sidebars you will run into undefined behaviors.
   763 
  1628 
   764   const usedReferenceWidgets = [];
  1629   const usedReferenceWidgets = [];
   781   // getWidgetAreaForWidgetId() finds something.
  1646   // getWidgetAreaForWidgetId() finds something.
   782 
  1647 
   783   const deletedWidgets = [];
  1648   const deletedWidgets = [];
   784 
  1649 
   785   for (const widget of areaWidgets) {
  1650   for (const widget of areaWidgets) {
   786     const widgetsNewArea = yield controls_select(STORE_NAME, 'getWidgetAreaForWidgetId', widget.id);
  1651     const widgetsNewArea = select.getWidgetAreaForWidgetId(widget.id);
   787 
  1652 
   788     if (!widgetsNewArea) {
  1653     if (!widgetsNewArea) {
   789       deletedWidgets.push(widget);
  1654       deletedWidgets.push(widget);
   790     }
  1655     }
   791   }
  1656   }
   794   const batchTasks = [];
  1659   const batchTasks = [];
   795   const sidebarWidgetsIds = [];
  1660   const sidebarWidgetsIds = [];
   796 
  1661 
   797   for (let i = 0; i < widgetsBlocks.length; i++) {
  1662   for (let i = 0; i < widgetsBlocks.length; i++) {
   798     const block = widgetsBlocks[i];
  1663     const block = widgetsBlocks[i];
   799     const widgetId = Object(external_wp_widgets_["getWidgetIdFromBlock"])(block);
  1664     const widgetId = (0,external_wp_widgets_namespaceObject.getWidgetIdFromBlock)(block);
   800     const oldWidget = widgets[widgetId];
  1665     const oldWidget = widgets[widgetId];
   801     const widget = transformBlockToWidget(block, oldWidget); // We'll replace the null widgetId after save, but we track it here
  1666     const widget = transformBlockToWidget(block, oldWidget); // We'll replace the null widgetId after save, but we track it here
   802     // since order is important.
  1667     // since order is important.
   803 
  1668 
   804     sidebarWidgetsIds.push(widgetId); // Check oldWidget as widgetId might refer to an ID which has been
  1669     sidebarWidgetsIds.push(widgetId); // Check oldWidget as widgetId might refer to an ID which has been
   805     // deleted, e.g. if a deleted block is restored via undo after saving.
  1670     // deleted, e.g. if a deleted block is restored via undo after saving.
   806 
  1671 
   807     if (oldWidget) {
  1672     if (oldWidget) {
   808       // Update an existing widget.
  1673       // Update an existing widget.
   809       yield dispatch('core', 'editEntityRecord', 'root', 'widget', widgetId, { ...widget,
  1674       registry.dispatch(external_wp_coreData_namespaceObject.store).editEntityRecord('root', 'widget', widgetId, { ...widget,
   810         sidebar: widgetAreaId
  1675         sidebar: widgetAreaId
   811       }, {
  1676       }, {
   812         undoIgnore: true
  1677         undoIgnore: true
   813       });
  1678       });
   814       const hasEdits = yield controls_select('core', 'hasEditsForEntityRecord', 'root', 'widget', widgetId);
  1679       const hasEdits = registry.select(external_wp_coreData_namespaceObject.store).hasEditsForEntityRecord('root', 'widget', widgetId);
   815 
  1680 
   816       if (!hasEdits) {
  1681       if (!hasEdits) {
   817         continue;
  1682         continue;
   818       }
  1683       }
   819 
  1684 
   820       batchTasks.push(({
  1685       batchTasks.push(_ref6 => {
   821         saveEditedEntityRecord
  1686         let {
   822       }) => saveEditedEntityRecord('root', 'widget', widgetId));
  1687           saveEditedEntityRecord
       
  1688         } = _ref6;
       
  1689         return saveEditedEntityRecord('root', 'widget', widgetId);
       
  1690       });
   823     } else {
  1691     } else {
   824       // Create a new widget.
  1692       // Create a new widget.
   825       batchTasks.push(({
  1693       batchTasks.push(_ref7 => {
   826         saveEntityRecord
  1694         let {
   827       }) => saveEntityRecord('root', 'widget', { ...widget,
  1695           saveEntityRecord
   828         sidebar: widgetAreaId
  1696         } = _ref7;
   829       }));
  1697         return saveEntityRecord('root', 'widget', { ...widget,
       
  1698           sidebar: widgetAreaId
       
  1699         });
       
  1700       });
   830     }
  1701     }
   831 
  1702 
   832     batchMeta.push({
  1703     batchMeta.push({
   833       block,
  1704       block,
   834       position: i,
  1705       position: i,
   835       clientId: block.clientId
  1706       clientId: block.clientId
   836     });
  1707     });
   837   }
  1708   }
   838 
  1709 
   839   for (const widget of deletedWidgets) {
  1710   for (const widget of deletedWidgets) {
   840     batchTasks.push(({
  1711     batchTasks.push(_ref8 => {
   841       deleteEntityRecord
  1712       let {
   842     }) => deleteEntityRecord('root', 'widget', widget.id, {
  1713         deleteEntityRecord
   843       force: true
  1714       } = _ref8;
   844     }));
  1715       return deleteEntityRecord('root', 'widget', widget.id, {
       
  1716         force: true
       
  1717       });
       
  1718     });
   845   }
  1719   }
   846 
  1720 
   847   const records = yield dispatch('core', '__experimentalBatch', batchTasks);
  1721   const records = await registry.dispatch(external_wp_coreData_namespaceObject.store).__experimentalBatch(batchTasks);
   848   const preservedRecords = records.filter(record => !record.hasOwnProperty('deleted'));
  1722   const preservedRecords = records.filter(record => !record.hasOwnProperty('deleted'));
   849   const failedWidgetNames = [];
  1723   const failedWidgetNames = [];
   850 
  1724 
   851   for (let i = 0; i < preservedRecords.length; i++) {
  1725   for (let i = 0; i < preservedRecords.length; i++) {
   852     const widget = preservedRecords[i];
  1726     const widget = preservedRecords[i];
   855       position
  1729       position
   856     } = batchMeta[i]; // Set __internalWidgetId on the block. This will be persisted to the
  1730     } = batchMeta[i]; // Set __internalWidgetId on the block. This will be persisted to the
   857     // store when we dispatch receiveEntityRecords( post ) below.
  1731     // store when we dispatch receiveEntityRecords( post ) below.
   858 
  1732 
   859     post.blocks[position].attributes.__internalWidgetId = widget.id;
  1733     post.blocks[position].attributes.__internalWidgetId = widget.id;
   860     const error = yield controls_select('core', 'getLastEntitySaveError', 'root', 'widget', widget.id);
  1734     const error = registry.select(external_wp_coreData_namespaceObject.store).getLastEntitySaveError('root', 'widget', widget.id);
   861 
  1735 
   862     if (error) {
  1736     if (error) {
   863       var _block$attributes;
  1737       var _block$attributes;
   864 
  1738 
   865       failedWidgetNames.push(((_block$attributes = block.attributes) === null || _block$attributes === void 0 ? void 0 : _block$attributes.name) || (block === null || block === void 0 ? void 0 : block.name));
  1739       failedWidgetNames.push(((_block$attributes = block.attributes) === null || _block$attributes === void 0 ? void 0 : _block$attributes.name) || (block === null || block === void 0 ? void 0 : block.name));
   869       sidebarWidgetsIds[position] = widget.id;
  1743       sidebarWidgetsIds[position] = widget.id;
   870     }
  1744     }
   871   }
  1745   }
   872 
  1746 
   873   if (failedWidgetNames.length) {
  1747   if (failedWidgetNames.length) {
   874     throw new Error(Object(external_wp_i18n_["sprintf"])(
  1748     throw new Error((0,external_wp_i18n_namespaceObject.sprintf)(
   875     /* translators: %s: List of widget names */
  1749     /* translators: %s: List of widget names */
   876     Object(external_wp_i18n_["__"])('Could not save the following widgets: %s.'), failedWidgetNames.join(', ')));
  1750     (0,external_wp_i18n_namespaceObject.__)('Could not save the following widgets: %s.'), failedWidgetNames.join(', ')));
   877   }
  1751   }
   878 
  1752 
   879   yield dispatch('core', 'editEntityRecord', KIND, WIDGET_AREA_ENTITY_TYPE, widgetAreaId, {
  1753   registry.dispatch(external_wp_coreData_namespaceObject.store).editEntityRecord(KIND, WIDGET_AREA_ENTITY_TYPE, widgetAreaId, {
   880     widgets: sidebarWidgetsIds
  1754     widgets: sidebarWidgetsIds
   881   }, {
  1755   }, {
   882     undoIgnore: true
  1756     undoIgnore: true
   883   });
  1757   });
   884   yield* trySaveWidgetArea(widgetAreaId);
  1758   dispatch(trySaveWidgetArea(widgetAreaId));
   885   yield dispatch('core', 'receiveEntityRecords', KIND, POST_TYPE, post, undefined);
  1759   registry.dispatch(external_wp_coreData_namespaceObject.store).receiveEntityRecords(KIND, POST_TYPE, post, undefined);
   886 }
  1760 };
   887 
  1761 
   888 function* trySaveWidgetArea(widgetAreaId) {
  1762 const trySaveWidgetArea = widgetAreaId => _ref9 => {
   889   const saveErrorBefore = yield controls_select('core', 'getLastEntitySaveError', KIND, WIDGET_AREA_ENTITY_TYPE, widgetAreaId);
  1763   let {
   890   yield dispatch('core', 'saveEditedEntityRecord', KIND, WIDGET_AREA_ENTITY_TYPE, widgetAreaId);
  1764     registry
   891   const saveErrorAfter = yield controls_select('core', 'getLastEntitySaveError', KIND, WIDGET_AREA_ENTITY_TYPE, widgetAreaId);
  1765   } = _ref9;
   892 
  1766   registry.dispatch(external_wp_coreData_namespaceObject.store).saveEditedEntityRecord(KIND, WIDGET_AREA_ENTITY_TYPE, widgetAreaId, {
   893   if (saveErrorAfter && saveErrorBefore !== saveErrorAfter) {
  1767     throwOnError: true
   894     throw new Error(saveErrorAfter);
  1768   });
   895   }
  1769 };
   896 }
       
   897 /**
  1770 /**
   898  * Sets the clientId stored for a particular widgetId.
  1771  * Sets the clientId stored for a particular widgetId.
   899  *
  1772  *
   900  * @param  {number} clientId  Client id.
  1773  * @param {number} clientId Client id.
   901  * @param  {number} widgetId  Widget id.
  1774  * @param {number} widgetId Widget id.
   902  * @return {Object}           Action.
  1775  *
       
  1776  * @return {Object} Action.
   903  */
  1777  */
   904 
  1778 
   905 
  1779 
   906 function setWidgetIdForClientId(clientId, widgetId) {
  1780 function setWidgetIdForClientId(clientId, widgetId) {
   907   return {
  1781   return {
   911   };
  1785   };
   912 }
  1786 }
   913 /**
  1787 /**
   914  * Sets the open state of all the widget areas.
  1788  * Sets the open state of all the widget areas.
   915  *
  1789  *
   916  * @param  {Object} widgetAreasOpenState The open states of all the widget areas.
  1790  * @param {Object} widgetAreasOpenState The open states of all the widget areas.
   917  * @return {Object}                      Action.
  1791  *
       
  1792  * @return {Object} Action.
   918  */
  1793  */
   919 
  1794 
   920 function setWidgetAreasOpenState(widgetAreasOpenState) {
  1795 function setWidgetAreasOpenState(widgetAreasOpenState) {
   921   return {
  1796   return {
   922     type: 'SET_WIDGET_AREAS_OPEN_STATE',
  1797     type: 'SET_WIDGET_AREAS_OPEN_STATE',
   924   };
  1799   };
   925 }
  1800 }
   926 /**
  1801 /**
   927  * Sets the open state of the widget area.
  1802  * Sets the open state of the widget area.
   928  *
  1803  *
   929  * @param  {string}  clientId   The clientId of the widget area.
  1804  * @param {string}  clientId The clientId of the widget area.
   930  * @param  {boolean} isOpen     Whether the widget area should be opened.
  1805  * @param {boolean} isOpen   Whether the widget area should be opened.
   931  * @return {Object}             Action.
  1806  *
   932  */
  1807  * @return {Object} Action.
   933 
  1808  */
   934 function actions_setIsWidgetAreaOpen(clientId, isOpen) {
  1809 
       
  1810 function setIsWidgetAreaOpen(clientId, isOpen) {
   935   return {
  1811   return {
   936     type: 'SET_IS_WIDGET_AREA_OPEN',
  1812     type: 'SET_IS_WIDGET_AREA_OPEN',
   937     clientId,
  1813     clientId,
   938     isOpen
  1814     isOpen
   939   };
  1815   };
   949  * @param {number}         value.insertionIndex The index to insert at.
  1825  * @param {number}         value.insertionIndex The index to insert at.
   950  *
  1826  *
   951  * @return {Object} Action object.
  1827  * @return {Object} Action object.
   952  */
  1828  */
   953 
  1829 
   954 function actions_setIsInserterOpened(value) {
  1830 function setIsInserterOpened(value) {
   955   return {
  1831   return {
   956     type: 'SET_IS_INSERTER_OPENED',
  1832     type: 'SET_IS_INSERTER_OPENED',
   957     value
  1833     value
   958   };
  1834   };
   959 }
  1835 }
   960 /**
  1836 /**
       
  1837  * Returns an action object used to open/close the list view.
       
  1838  *
       
  1839  * @param {boolean} isOpen A boolean representing whether the list view should be opened or closed.
       
  1840  * @return {Object} Action object.
       
  1841  */
       
  1842 
       
  1843 function setIsListViewOpened(isOpen) {
       
  1844   return {
       
  1845     type: 'SET_IS_LIST_VIEW_OPENED',
       
  1846     isOpen
       
  1847   };
       
  1848 }
       
  1849 /**
   961  * Returns an action object signalling that the user closed the sidebar.
  1850  * Returns an action object signalling that the user closed the sidebar.
   962  *
  1851  *
   963  * @yield {Object} Action object.
  1852  * @return {Object} Action creator.
   964  */
  1853  */
   965 
  1854 
   966 function* actions_closeGeneralSidebar() {
  1855 const closeGeneralSidebar = () => _ref10 => {
   967   yield dispatch(build_module["g" /* store */].name, 'disableComplementaryArea', STORE_NAME);
  1856   let {
   968 }
  1857     registry
       
  1858   } = _ref10;
       
  1859   registry.dispatch(store).disableComplementaryArea(constants_STORE_NAME);
       
  1860 };
   969 /**
  1861 /**
   970  * Action that handles moving a block between widget areas
  1862  * Action that handles moving a block between widget areas
   971  *
  1863  *
   972  * @param {string} clientId     The clientId of the block to move.
  1864  * @param {string} clientId     The clientId of the block to move.
   973  * @param {string} widgetAreaId The id of the widget area to move the block to.
  1865  * @param {string} widgetAreaId The id of the widget area to move the block to.
   974  */
  1866  */
   975 
  1867 
   976 function* actions_moveBlockToWidgetArea(clientId, widgetAreaId) {
  1868 const moveBlockToWidgetArea = (clientId, widgetAreaId) => async _ref11 => {
   977   const sourceRootClientId = yield controls_select('core/block-editor', 'getBlockRootClientId', [clientId]); // Search the top level blocks (widget areas) for the one with the matching
  1869   let {
       
  1870     dispatch,
       
  1871     select,
       
  1872     registry
       
  1873   } = _ref11;
       
  1874   const sourceRootClientId = registry.select(external_wp_blockEditor_namespaceObject.store).getBlockRootClientId([clientId]); // Search the top level blocks (widget areas) for the one with the matching
   978   // id attribute. Makes the assumption that all top-level blocks are widget
  1875   // id attribute. Makes the assumption that all top-level blocks are widget
   979   // areas.
  1876   // areas.
   980 
  1877 
   981   const widgetAreas = yield controls_select('core/block-editor', 'getBlocks');
  1878   const widgetAreas = registry.select(external_wp_blockEditor_namespaceObject.store).getBlocks();
   982   const destinationWidgetAreaBlock = widgetAreas.find(({
  1879   const destinationWidgetAreaBlock = widgetAreas.find(_ref12 => {
   983     attributes
  1880     let {
   984   }) => attributes.id === widgetAreaId);
  1881       attributes
       
  1882     } = _ref12;
       
  1883     return attributes.id === widgetAreaId;
       
  1884   });
   985   const destinationRootClientId = destinationWidgetAreaBlock.clientId; // Get the index for moving to the end of the the destination widget area.
  1885   const destinationRootClientId = destinationWidgetAreaBlock.clientId; // Get the index for moving to the end of the the destination widget area.
   986 
  1886 
   987   const destinationInnerBlocksClientIds = yield controls_select('core/block-editor', 'getBlockOrder', destinationRootClientId);
  1887   const destinationInnerBlocksClientIds = registry.select(external_wp_blockEditor_namespaceObject.store).getBlockOrder(destinationRootClientId);
   988   const destinationIndex = destinationInnerBlocksClientIds.length; // Reveal the widget area, if it's not open.
  1888   const destinationIndex = destinationInnerBlocksClientIds.length; // Reveal the widget area, if it's not open.
   989 
  1889 
   990   const isDestinationWidgetAreaOpen = yield controls_select(STORE_NAME, 'getIsWidgetAreaOpen', destinationRootClientId);
  1890   const isDestinationWidgetAreaOpen = select.getIsWidgetAreaOpen(destinationRootClientId);
   991 
  1891 
   992   if (!isDestinationWidgetAreaOpen) {
  1892   if (!isDestinationWidgetAreaOpen) {
   993     yield dispatch(STORE_NAME, 'setIsWidgetAreaOpen', destinationRootClientId, true);
  1893     dispatch.setIsWidgetAreaOpen(destinationRootClientId, true);
   994   } // Move the block.
  1894   } // Move the block.
   995 
  1895 
   996 
  1896 
   997   yield dispatch('core/block-editor', 'moveBlocksToPosition', [clientId], sourceRootClientId, destinationRootClientId, destinationIndex);
  1897   registry.dispatch(external_wp_blockEditor_namespaceObject.store).moveBlocksToPosition([clientId], sourceRootClientId, destinationRootClientId, destinationIndex);
   998 }
  1898 };
   999 /**
  1899 
  1000  * Returns an action object used to toggle a feature flag.
  1900 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/resolvers.js
  1001  *
  1901 /**
  1002  * This function is unstable, as it is mostly copied from the edit-post
  1902  * WordPress dependencies
  1003  * package. Editor features and preferences have a lot of scope for
  1903  */
  1004  * being generalized and refactored.
  1904 
  1005  *
       
  1006  * @param {string} feature Feature name.
       
  1007  *
       
  1008  * @return {Object} Action object.
       
  1009  */
       
  1010 
       
  1011 function __unstableToggleFeature(feature) {
       
  1012   return {
       
  1013     type: 'TOGGLE_FEATURE',
       
  1014     feature
       
  1015   };
       
  1016 }
       
  1017 
       
  1018 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/resolvers.js
       
  1019 /**
       
  1020  * WordPress dependencies
       
  1021  */
       
  1022 
  1905 
  1023 /**
  1906 /**
  1024  * Internal dependencies
  1907  * Internal dependencies
  1025  */
  1908  */
  1026 
  1909 
  1027 
  1910 
  1028 
  1911 
  1029 
  1912 
  1030 
  1913 /**
  1031 function* getWidgetAreas() {
  1914  * Creates a "stub" widgets post reflecting all available widget areas. The
       
  1915  * post is meant as a convenient to only exists in runtime and should never be saved. It
       
  1916  * enables a convenient way of editing the widgets by using a regular post editor.
       
  1917  *
       
  1918  * Fetches all widgets from all widgets aras, converts them into blocks, and hydrates a new post with them.
       
  1919  *
       
  1920  * @return {Function} An action creator.
       
  1921  */
       
  1922 
       
  1923 const getWidgetAreas = () => async _ref => {
       
  1924   let {
       
  1925     dispatch,
       
  1926     registry
       
  1927   } = _ref;
  1032   const query = buildWidgetAreasQuery();
  1928   const query = buildWidgetAreasQuery();
  1033   yield resolveWidgetAreas(query);
  1929   const widgetAreas = await registry.resolveSelect(external_wp_coreData_namespaceObject.store).getEntityRecords(KIND, WIDGET_AREA_ENTITY_TYPE, query);
  1034   const widgetAreas = yield controls_select('core', 'getEntityRecords', KIND, WIDGET_AREA_ENTITY_TYPE, query);
       
  1035   const widgetAreaBlocks = [];
  1930   const widgetAreaBlocks = [];
  1036   const sortedWidgetAreas = widgetAreas.sort((a, b) => {
  1931   const sortedWidgetAreas = widgetAreas.sort((a, b) => {
  1037     if (a.id === 'wp_inactive_widgets') {
  1932     if (a.id === 'wp_inactive_widgets') {
  1038       return 1;
  1933       return 1;
  1039     }
  1934     }
  1044 
  1939 
  1045     return 0;
  1940     return 0;
  1046   });
  1941   });
  1047 
  1942 
  1048   for (const widgetArea of sortedWidgetAreas) {
  1943   for (const widgetArea of sortedWidgetAreas) {
  1049     widgetAreaBlocks.push(Object(external_wp_blocks_["createBlock"])('core/widget-area', {
  1944     widgetAreaBlocks.push((0,external_wp_blocks_namespaceObject.createBlock)('core/widget-area', {
  1050       id: widgetArea.id,
  1945       id: widgetArea.id,
  1051       name: widgetArea.name
  1946       name: widgetArea.name
  1052     }));
  1947     }));
  1053 
  1948 
  1054     if (!widgetArea.widgets.length) {
  1949     if (!widgetArea.widgets.length) {
  1055       // If this widget area has no widgets, it won't get a post setup by
  1950       // If this widget area has no widgets, it won't get a post setup by
  1056       // the getWidgets resolver.
  1951       // the getWidgets resolver.
  1057       yield persistStubPost(buildWidgetAreaPostId(widgetArea.id), []);
  1952       dispatch(persistStubPost(buildWidgetAreaPostId(widgetArea.id), []));
  1058     }
  1953     }
  1059   }
  1954   }
  1060 
  1955 
  1061   const widgetAreasOpenState = {};
  1956   const widgetAreasOpenState = {};
  1062   widgetAreaBlocks.forEach((widgetAreaBlock, index) => {
  1957   widgetAreaBlocks.forEach((widgetAreaBlock, index) => {
  1063     // Defaults to open the first widget area.
  1958     // Defaults to open the first widget area.
  1064     widgetAreasOpenState[widgetAreaBlock.clientId] = index === 0;
  1959     widgetAreasOpenState[widgetAreaBlock.clientId] = index === 0;
  1065   });
  1960   });
  1066   yield setWidgetAreasOpenState(widgetAreasOpenState);
  1961   dispatch(setWidgetAreasOpenState(widgetAreasOpenState));
  1067   yield persistStubPost(buildWidgetAreasPostId(), widgetAreaBlocks);
  1962   dispatch(persistStubPost(buildWidgetAreasPostId(), widgetAreaBlocks));
  1068 }
  1963 };
  1069 function* getWidgets() {
  1964 /**
       
  1965  * Fetches all widgets from all widgets ares, and groups them by widget area Id.
       
  1966  *
       
  1967  * @return {Function} An action creator.
       
  1968  */
       
  1969 
       
  1970 const getWidgets = () => async _ref2 => {
       
  1971   let {
       
  1972     dispatch,
       
  1973     registry
       
  1974   } = _ref2;
  1070   const query = buildWidgetsQuery();
  1975   const query = buildWidgetsQuery();
  1071   yield resolveWidgets(query);
  1976   const widgets = await registry.resolveSelect(external_wp_coreData_namespaceObject.store).getEntityRecords('root', 'widget', query);
  1072   const widgets = yield controls_select('core', 'getEntityRecords', 'root', 'widget', query);
       
  1073   const groupedBySidebar = {};
  1977   const groupedBySidebar = {};
  1074 
  1978 
  1075   for (const widget of widgets) {
  1979   for (const widget of widgets) {
  1076     const block = transformWidgetToBlock(widget);
  1980     const block = transformWidgetToBlock(widget);
  1077     groupedBySidebar[widget.sidebar] = groupedBySidebar[widget.sidebar] || [];
  1981     groupedBySidebar[widget.sidebar] = groupedBySidebar[widget.sidebar] || [];
  1079   }
  1983   }
  1080 
  1984 
  1081   for (const sidebarId in groupedBySidebar) {
  1985   for (const sidebarId in groupedBySidebar) {
  1082     if (groupedBySidebar.hasOwnProperty(sidebarId)) {
  1986     if (groupedBySidebar.hasOwnProperty(sidebarId)) {
  1083       // Persist the actual post containing the widget block
  1987       // Persist the actual post containing the widget block
  1084       yield persistStubPost(buildWidgetAreaPostId(sidebarId), groupedBySidebar[sidebarId]);
  1988       dispatch(persistStubPost(buildWidgetAreaPostId(sidebarId), groupedBySidebar[sidebarId]));
  1085     }
  1989     }
  1086   }
  1990   }
  1087 }
  1991 };
  1088 
  1992 
  1089 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/selectors.js
  1993 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/selectors.js
  1090 /**
  1994 /**
  1091  * External dependencies
  1995  * External dependencies
  1092  */
  1996  */
  1093 
  1997 
  1094 /**
  1998 /**
  1095  * WordPress dependencies
  1999  * WordPress dependencies
  1096  */
  2000  */
  1097 
  2001 
  1098 
  2002 
  1099 
  2003 
       
  2004 
       
  2005 
  1100 /**
  2006 /**
  1101  * Internal dependencies
  2007  * Internal dependencies
  1102  */
  2008  */
  1103 
  2009 
  1104 
  2010 
  1105 
  2011 
  1106 const selectors_getWidgets = Object(external_wp_data_["createRegistrySelector"])(select => () => {
  2012 /**
  1107   const widgets = select('core').getEntityRecords('root', 'widget', buildWidgetsQuery());
  2013  * Returns all API widgets.
  1108   return Object(external_lodash_["keyBy"])(widgets, 'id');
  2014  *
       
  2015  * @return {Object[]} API List of widgets.
       
  2016  */
       
  2017 
       
  2018 const selectors_getWidgets = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => () => {
       
  2019   const widgets = select(external_wp_coreData_namespaceObject.store).getEntityRecords('root', 'widget', buildWidgetsQuery());
       
  2020   return (0,external_lodash_namespaceObject.keyBy)(widgets, 'id');
  1109 });
  2021 });
  1110 /**
  2022 /**
  1111  * Returns API widget data for a particular widget ID.
  2023  * Returns API widget data for a particular widget ID.
  1112  *
  2024  *
  1113  * @param  {number} id  Widget ID
  2025  * @param {number} id Widget ID.
  1114  * @return {Object}     API widget data for a particular widget ID.
  2026  *
  1115  */
  2027  * @return {Object} API widget data for a particular widget ID.
  1116 
  2028  */
  1117 const getWidget = Object(external_wp_data_["createRegistrySelector"])(select => (state, id) => {
  2029 
  1118   const widgets = select(STORE_NAME).getWidgets();
  2030 const getWidget = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, id) => {
       
  2031   const widgets = select(constants_STORE_NAME).getWidgets();
  1119   return widgets[id];
  2032   return widgets[id];
  1120 });
  2033 });
  1121 const selectors_getWidgetAreas = Object(external_wp_data_["createRegistrySelector"])(select => () => {
  2034 /**
       
  2035  * Returns all API widget areas.
       
  2036  *
       
  2037  * @return {Object[]} API List of widget areas.
       
  2038  */
       
  2039 
       
  2040 const selectors_getWidgetAreas = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => () => {
  1122   const query = buildWidgetAreasQuery();
  2041   const query = buildWidgetAreasQuery();
  1123   return select('core').getEntityRecords(KIND, WIDGET_AREA_ENTITY_TYPE, query);
  2042   return select(external_wp_coreData_namespaceObject.store).getEntityRecords(KIND, WIDGET_AREA_ENTITY_TYPE, query);
  1124 });
  2043 });
  1125 /**
  2044 /**
  1126  * Returns widgetArea containing a block identify by given widgetId
  2045  * Returns widgetArea containing a block identify by given widgetId
  1127  *
  2046  *
  1128  * @param {string} widgetId The ID of the widget.
  2047  * @param {string} widgetId The ID of the widget.
  1129  * @return {Object} Containing widget area.
  2048  * @return {Object} Containing widget area.
  1130  */
  2049  */
  1131 
  2050 
  1132 const getWidgetAreaForWidgetId = Object(external_wp_data_["createRegistrySelector"])(select => (state, widgetId) => {
  2051 const getWidgetAreaForWidgetId = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, widgetId) => {
  1133   const widgetAreas = select(STORE_NAME).getWidgetAreas();
  2052   const widgetAreas = select(constants_STORE_NAME).getWidgetAreas();
  1134   return widgetAreas.find(widgetArea => {
  2053   return widgetAreas.find(widgetArea => {
  1135     const post = select('core').getEditedEntityRecord(KIND, POST_TYPE, buildWidgetAreaPostId(widgetArea.id));
  2054     const post = select(external_wp_coreData_namespaceObject.store).getEditedEntityRecord(KIND, POST_TYPE, buildWidgetAreaPostId(widgetArea.id));
  1136     const blockWidgetIds = post.blocks.map(block => Object(external_wp_widgets_["getWidgetIdFromBlock"])(block));
  2055     const blockWidgetIds = post.blocks.map(block => (0,external_wp_widgets_namespaceObject.getWidgetIdFromBlock)(block));
  1137     return blockWidgetIds.includes(widgetId);
  2056     return blockWidgetIds.includes(widgetId);
  1138   });
  2057   });
  1139 });
  2058 });
  1140 /**
  2059 /**
  1141  * Given a child client id, returns the parent widget area block.
  2060  * Given a child client id, returns the parent widget area block.
  1143  * @param {string} clientId The client id of a block in a widget area.
  2062  * @param {string} clientId The client id of a block in a widget area.
  1144  *
  2063  *
  1145  * @return {WPBlock} The widget area block.
  2064  * @return {WPBlock} The widget area block.
  1146  */
  2065  */
  1147 
  2066 
  1148 const selectors_getParentWidgetAreaBlock = Object(external_wp_data_["createRegistrySelector"])(select => (state, clientId) => {
  2067 const getParentWidgetAreaBlock = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, clientId) => {
  1149   const {
  2068   const {
  1150     getBlock,
  2069     getBlock,
  1151     getBlockName,
  2070     getBlockName,
  1152     getBlockParents
  2071     getBlockParents
  1153   } = select('core/block-editor');
  2072   } = select(external_wp_blockEditor_namespaceObject.store);
  1154   const blockParents = getBlockParents(clientId);
  2073   const blockParents = getBlockParents(clientId);
  1155   const widgetAreaClientId = blockParents.find(parentClientId => getBlockName(parentClientId) === 'core/widget-area');
  2074   const widgetAreaClientId = blockParents.find(parentClientId => getBlockName(parentClientId) === 'core/widget-area');
  1156   return getBlock(widgetAreaClientId);
  2075   return getBlock(widgetAreaClientId);
  1157 });
  2076 });
  1158 const selectors_getEditedWidgetAreas = Object(external_wp_data_["createRegistrySelector"])(select => (state, ids) => {
  2077 /**
  1159   let widgetAreas = select(STORE_NAME).getWidgetAreas();
  2078  * Returns all edited widget area entity records.
       
  2079  *
       
  2080  * @return {Object[]} List of edited widget area entity records.
       
  2081  */
       
  2082 
       
  2083 const getEditedWidgetAreas = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, ids) => {
       
  2084   let widgetAreas = select(constants_STORE_NAME).getWidgetAreas();
  1160 
  2085 
  1161   if (!widgetAreas) {
  2086   if (!widgetAreas) {
  1162     return [];
  2087     return [];
  1163   }
  2088   }
  1164 
  2089 
  1165   if (ids) {
  2090   if (ids) {
  1166     widgetAreas = widgetAreas.filter(({
  2091     widgetAreas = widgetAreas.filter(_ref => {
       
  2092       let {
       
  2093         id
       
  2094       } = _ref;
       
  2095       return ids.includes(id);
       
  2096     });
       
  2097   }
       
  2098 
       
  2099   return widgetAreas.filter(_ref2 => {
       
  2100     let {
  1167       id
  2101       id
  1168     }) => ids.includes(id));
  2102     } = _ref2;
  1169   }
  2103     return select(external_wp_coreData_namespaceObject.store).hasEditsForEntityRecord(KIND, POST_TYPE, buildWidgetAreaPostId(id));
  1170 
  2104   }).map(_ref3 => {
  1171   return widgetAreas.filter(({
  2105     let {
  1172     id
  2106       id
  1173   }) => select('core').hasEditsForEntityRecord(KIND, POST_TYPE, buildWidgetAreaPostId(id))).map(({
  2107     } = _ref3;
  1174     id
  2108     return select(external_wp_coreData_namespaceObject.store).getEditedEntityRecord(KIND, WIDGET_AREA_ENTITY_TYPE, id);
  1175   }) => select('core').getEditedEntityRecord(KIND, WIDGET_AREA_ENTITY_TYPE, id));
  2109   });
  1176 });
  2110 });
  1177 /**
  2111 /**
  1178  * Returns all blocks representing reference widgets.
  2112  * Returns all blocks representing reference widgets.
  1179  *
  2113  *
  1180  * @param  {string} referenceWidgetName  Optional. If given, only reference widgets with this name will be returned.
  2114  * @param {string} referenceWidgetName Optional. If given, only reference widgets with this name will be returned.
  1181  * @return {Array}  List of all blocks representing reference widgets
  2115  * @return {Array}  List of all blocks representing reference widgets
  1182  */
  2116  */
  1183 
  2117 
  1184 const getReferenceWidgetBlocks = Object(external_wp_data_["createRegistrySelector"])(select => (state, referenceWidgetName = null) => {
  2118 const getReferenceWidgetBlocks = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => function (state) {
       
  2119   let referenceWidgetName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1185   const results = [];
  2120   const results = [];
  1186   const widgetAreas = select(STORE_NAME).getWidgetAreas();
  2121   const widgetAreas = select(constants_STORE_NAME).getWidgetAreas();
  1187 
  2122 
  1188   for (const _widgetArea of widgetAreas) {
  2123   for (const _widgetArea of widgetAreas) {
  1189     const post = select('core').getEditedEntityRecord(KIND, POST_TYPE, buildWidgetAreaPostId(_widgetArea.id));
  2124     const post = select(external_wp_coreData_namespaceObject.store).getEditedEntityRecord(KIND, POST_TYPE, buildWidgetAreaPostId(_widgetArea.id));
  1190 
  2125 
  1191     for (const block of post.blocks) {
  2126     for (const block of post.blocks) {
  1192       var _block$attributes;
  2127       var _block$attributes;
  1193 
  2128 
  1194       if (block.name === 'core/legacy-widget' && (!referenceWidgetName || ((_block$attributes = block.attributes) === null || _block$attributes === void 0 ? void 0 : _block$attributes.referenceWidgetName) === referenceWidgetName)) {
  2129       if (block.name === 'core/legacy-widget' && (!referenceWidgetName || ((_block$attributes = block.attributes) === null || _block$attributes === void 0 ? void 0 : _block$attributes.referenceWidgetName) === referenceWidgetName)) {
  1197     }
  2132     }
  1198   }
  2133   }
  1199 
  2134 
  1200   return results;
  2135   return results;
  1201 });
  2136 });
  1202 const selectors_isSavingWidgetAreas = Object(external_wp_data_["createRegistrySelector"])(select => () => {
  2137 /**
       
  2138  * Returns true if any widget area is currently being saved.
       
  2139  *
       
  2140  * @return {boolean} True if any widget area is currently being saved. False otherwise.
       
  2141  */
       
  2142 
       
  2143 const isSavingWidgetAreas = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => () => {
  1203   var _select$getWidgetArea;
  2144   var _select$getWidgetArea;
  1204 
  2145 
  1205   const widgetAreasIds = (_select$getWidgetArea = select(STORE_NAME).getWidgetAreas()) === null || _select$getWidgetArea === void 0 ? void 0 : _select$getWidgetArea.map(({
  2146   const widgetAreasIds = (_select$getWidgetArea = select(constants_STORE_NAME).getWidgetAreas()) === null || _select$getWidgetArea === void 0 ? void 0 : _select$getWidgetArea.map(_ref4 => {
  1206     id
  2147     let {
  1207   }) => id);
  2148       id
       
  2149     } = _ref4;
       
  2150     return id;
       
  2151   });
  1208 
  2152 
  1209   if (!widgetAreasIds) {
  2153   if (!widgetAreasIds) {
  1210     return false;
  2154     return false;
  1211   }
  2155   }
  1212 
  2156 
  1213   for (const id of widgetAreasIds) {
  2157   for (const id of widgetAreasIds) {
  1214     const isSaving = select('core').isSavingEntityRecord(KIND, WIDGET_AREA_ENTITY_TYPE, id);
  2158     const isSaving = select(external_wp_coreData_namespaceObject.store).isSavingEntityRecord(KIND, WIDGET_AREA_ENTITY_TYPE, id);
  1215 
  2159 
  1216     if (isSaving) {
  2160     if (isSaving) {
  1217       return true;
  2161       return true;
  1218     }
  2162     }
  1219   }
  2163   }
  1220 
  2164 
  1221   const widgetIds = [...Object.keys(select(STORE_NAME).getWidgets()), undefined // account for new widgets without an ID
  2165   const widgetIds = [...Object.keys(select(constants_STORE_NAME).getWidgets()), undefined // account for new widgets without an ID
  1222   ];
  2166   ];
  1223 
  2167 
  1224   for (const id of widgetIds) {
  2168   for (const id of widgetIds) {
  1225     const isSaving = select('core').isSavingEntityRecord('root', 'widget', id);
  2169     const isSaving = select(external_wp_coreData_namespaceObject.store).isSavingEntityRecord('root', 'widget', id);
  1226 
  2170 
  1227     if (isSaving) {
  2171     if (isSaving) {
  1228       return true;
  2172       return true;
  1229     }
  2173     }
  1230   }
  2174   }
  1234 /**
  2178 /**
  1235  * Gets whether the widget area is opened.
  2179  * Gets whether the widget area is opened.
  1236  *
  2180  *
  1237  * @param {Array}  state    The open state of the widget areas.
  2181  * @param {Array}  state    The open state of the widget areas.
  1238  * @param {string} clientId The clientId of the widget area.
  2182  * @param {string} clientId The clientId of the widget area.
  1239  * @return {boolean}        True if the widget area is open.
  2183  *
       
  2184  * @return {boolean} True if the widget area is open.
  1240  */
  2185  */
  1241 
  2186 
  1242 const getIsWidgetAreaOpen = (state, clientId) => {
  2187 const getIsWidgetAreaOpen = (state, clientId) => {
  1243   const {
  2188   const {
  1244     widgetAreasOpenState
  2189     widgetAreasOpenState
  1246   return !!widgetAreasOpenState[clientId];
  2191   return !!widgetAreasOpenState[clientId];
  1247 };
  2192 };
  1248 /**
  2193 /**
  1249  * Returns true if the inserter is opened.
  2194  * Returns true if the inserter is opened.
  1250  *
  2195  *
  1251  * @param  {Object}  state Global application state.
  2196  * @param {Object} state Global application state.
  1252  *
  2197  *
  1253  * @return {boolean} Whether the inserter is opened.
  2198  * @return {boolean} Whether the inserter is opened.
  1254  */
  2199  */
  1255 
  2200 
  1256 function selectors_isInserterOpened(state) {
  2201 function isInserterOpened(state) {
  1257   return !!state.blockInserterPanel;
  2202   return !!state.blockInserterPanel;
  1258 }
  2203 }
  1259 /**
  2204 /**
  1260  * Get the insertion point for the inserter.
  2205  * Get the insertion point for the inserter.
  1261  *
  2206  *
  1275   };
  2220   };
  1276 }
  2221 }
  1277 /**
  2222 /**
  1278  * Returns true if a block can be inserted into a widget area.
  2223  * Returns true if a block can be inserted into a widget area.
  1279  *
  2224  *
  1280  * @param {Array}  state    The open state of the widget areas.
  2225  * @param {Array}  state     The open state of the widget areas.
  1281  * @param {string} blockName The name of the block being inserted.
  2226  * @param {string} blockName The name of the block being inserted.
  1282  *
  2227  *
  1283  * @return {boolean} True if the block can be inserted in a widget area.
  2228  * @return {boolean} True if the block can be inserted in a widget area.
  1284  */
  2229  */
  1285 
  2230 
  1286 const selectors_canInsertBlockInWidgetArea = Object(external_wp_data_["createRegistrySelector"])(select => (state, blockName) => {
  2231 const canInsertBlockInWidgetArea = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, blockName) => {
  1287   // Widget areas are always top-level blocks, which getBlocks will return.
  2232   // Widget areas are always top-level blocks, which getBlocks will return.
  1288   const widgetAreas = select('core/block-editor').getBlocks(); // Makes an assumption that a block that can be inserted into one
  2233   const widgetAreas = select(external_wp_blockEditor_namespaceObject.store).getBlocks(); // Makes an assumption that a block that can be inserted into one
  1289   // widget area can be inserted into any widget area. Uses the first
  2234   // widget area can be inserted into any widget area. Uses the first
  1290   // widget area for testing whether the block can be inserted.
  2235   // widget area for testing whether the block can be inserted.
  1291 
  2236 
  1292   const [firstWidgetArea] = widgetAreas;
  2237   const [firstWidgetArea] = widgetAreas;
  1293   return select('core/block-editor').canInsertBlockType(blockName, firstWidgetArea.clientId);
  2238   return select(external_wp_blockEditor_namespaceObject.store).canInsertBlockType(blockName, firstWidgetArea.clientId);
  1294 });
  2239 });
  1295 /**
  2240 /**
  1296  * Returns whether the given feature is enabled or not.
  2241  * Returns true if the list view is opened.
  1297  *
  2242  *
  1298  * This function is unstable, as it is mostly copied from the edit-post
  2243  * @param {Object} state Global application state.
  1299  * package. Editor features and preferences have a lot of scope for
  2244  *
  1300  * being generalized and refactored.
  2245  * @return {boolean} Whether the list view is opened.
  1301  *
  2246  */
  1302  * @param {Object} state   Global application state.
  2247 
  1303  * @param {string} feature Feature slug.
  2248 function isListViewOpened(state) {
  1304  *
  2249   return state.listViewPanel;
  1305  * @return {boolean} Is active.
  2250 }
  1306  */
  2251 
  1307 
  2252 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/index.js
  1308 function __unstableIsFeatureActive(state, feature) {
       
  1309   return Object(external_lodash_["get"])(state.preferences.features, [feature], false);
       
  1310 }
       
  1311 
       
  1312 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/store/index.js
       
  1313 /**
  2253 /**
  1314  * WordPress dependencies
  2254  * WordPress dependencies
  1315  */
  2255  */
  1316 
  2256 
  1317 
  2257 
  1322 
  2262 
  1323 
  2263 
  1324 
  2264 
  1325 
  2265 
  1326 
  2266 
  1327 
       
  1328 /**
  2267 /**
  1329  * Block editor data store configuration.
  2268  * Block editor data store configuration.
  1330  *
  2269  *
  1331  * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#registerStore
  2270  * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#register
  1332  *
  2271  *
  1333  * @type {Object}
  2272  * @type {Object}
  1334  */
  2273  */
  1335 
  2274 
  1336 const storeConfig = {
  2275 const storeConfig = {
  1337   reducer: reducer,
  2276   reducer: reducer,
  1338   controls: store_controls,
  2277   selectors: store_selectors_namespaceObject,
  1339   selectors: selectors_namespaceObject,
       
  1340   resolvers: resolvers_namespaceObject,
  2278   resolvers: resolvers_namespaceObject,
  1341   actions: actions_namespaceObject,
  2279   actions: store_actions_namespaceObject
  1342   persist: ['preferences']
       
  1343 };
  2280 };
  1344 /**
  2281 /**
  1345  * Store definition for the edit widgets namespace.
  2282  * Store definition for the edit widgets namespace.
  1346  *
  2283  *
  1347  * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
  2284  * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
  1348  *
  2285  *
  1349  * @type {Object}
  2286  * @type {Object}
  1350  */
  2287  */
  1351 
  2288 
  1352 const store = Object(external_wp_data_["createReduxStore"])(STORE_NAME, storeConfig); // Once we build a more generic persistence plugin that works across types of stores
  2289 const store_store = (0,external_wp_data_namespaceObject.createReduxStore)(constants_STORE_NAME, storeConfig);
  1353 // we'd be able to replace this with a register call.
  2290 (0,external_wp_data_namespaceObject.register)(store_store); // This package uses a few in-memory post types as wrappers for convenience.
  1354 
       
  1355 Object(external_wp_data_["registerStore"])(STORE_NAME, storeConfig); // This package uses a few in-memory post types as wrappers for convenience.
       
  1356 // This middleware prevents any network requests related to these types as they are
  2291 // This middleware prevents any network requests related to these types as they are
  1357 // bound to fail anyway.
  2292 // bound to fail anyway.
  1358 
  2293 
  1359 external_wp_apiFetch_default.a.use(function (options, next) {
  2294 external_wp_apiFetch_default().use(function (options, next) {
  1360   var _options$path;
  2295   var _options$path;
  1361 
  2296 
  1362   if (((_options$path = options.path) === null || _options$path === void 0 ? void 0 : _options$path.indexOf('/wp/v2/types/widget-area')) === 0) {
  2297   if (((_options$path = options.path) === null || _options$path === void 0 ? void 0 : _options$path.indexOf('/wp/v2/types/widget-area')) === 0) {
  1363     return Promise.resolve({});
  2298     return Promise.resolve({});
  1364   }
  2299   }
  1365 
  2300 
  1366   return next(options);
  2301   return next(options);
  1367 });
  2302 });
  1368 
  2303 
  1369 // EXTERNAL MODULE: external ["wp","blockEditor"]
  2304 ;// CONCATENATED MODULE: external ["wp","hooks"]
  1370 var external_wp_blockEditor_ = __webpack_require__("axFQ");
  2305 var external_wp_hooks_namespaceObject = window["wp"]["hooks"];
  1371 
  2306 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/filters/move-to-widget-area.js
  1372 // EXTERNAL MODULE: external ["wp","compose"]
       
  1373 var external_wp_compose_ = __webpack_require__("K9lf");
       
  1374 
       
  1375 // EXTERNAL MODULE: external ["wp","hooks"]
       
  1376 var external_wp_hooks_ = __webpack_require__("g56x");
       
  1377 
       
  1378 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/filters/move-to-widget-area.js
       
  1379 
  2307 
  1380 
  2308 
  1381 /**
  2309 /**
  1382  * WordPress dependencies
  2310  * WordPress dependencies
  1383  */
  2311  */
  1389 /**
  2317 /**
  1390  * Internal dependencies
  2318  * Internal dependencies
  1391  */
  2319  */
  1392 
  2320 
  1393 
  2321 
  1394 const withMoveToWidgetAreaToolbarItem = Object(external_wp_compose_["createHigherOrderComponent"])(BlockEdit => props => {
  2322 const withMoveToWidgetAreaToolbarItem = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(BlockEdit => props => {
  1395   const {
  2323   const {
  1396     clientId,
  2324     clientId,
  1397     name: blockName
  2325     name: blockName
  1398   } = props;
  2326   } = props;
  1399   const {
  2327   const {
  1400     widgetAreas,
  2328     widgetAreas,
  1401     currentWidgetAreaId,
  2329     currentWidgetAreaId,
  1402     canInsertBlockInWidgetArea
  2330     canInsertBlockInWidgetArea
  1403   } = Object(external_wp_data_["useSelect"])(select => {
  2331   } = (0,external_wp_data_namespaceObject.useSelect)(select => {
  1404     var _widgetAreaBlock$attr;
  2332     var _widgetAreaBlock$attr;
  1405 
  2333 
  1406     // Component won't display for a widget area, so don't run selectors.
  2334     // Component won't display for a widget area, so don't run selectors.
  1407     if (blockName === 'core/widget-area') {
  2335     if (blockName === 'core/widget-area') {
  1408       return {};
  2336       return {};
  1409     }
  2337     }
  1410 
  2338 
  1411     const selectors = select(store);
  2339     const selectors = select(store_store);
  1412     const widgetAreaBlock = selectors.getParentWidgetAreaBlock(clientId);
  2340     const widgetAreaBlock = selectors.getParentWidgetAreaBlock(clientId);
  1413     return {
  2341     return {
  1414       widgetAreas: selectors.getWidgetAreas(),
  2342       widgetAreas: selectors.getWidgetAreas(),
  1415       currentWidgetAreaId: widgetAreaBlock === null || widgetAreaBlock === void 0 ? void 0 : (_widgetAreaBlock$attr = widgetAreaBlock.attributes) === null || _widgetAreaBlock$attr === void 0 ? void 0 : _widgetAreaBlock$attr.id,
  2343       currentWidgetAreaId: widgetAreaBlock === null || widgetAreaBlock === void 0 ? void 0 : (_widgetAreaBlock$attr = widgetAreaBlock.attributes) === null || _widgetAreaBlock$attr === void 0 ? void 0 : _widgetAreaBlock$attr.id,
  1416       canInsertBlockInWidgetArea: selectors.canInsertBlockInWidgetArea(blockName)
  2344       canInsertBlockInWidgetArea: selectors.canInsertBlockInWidgetArea(blockName)
  1417     };
  2345     };
  1418   }, [clientId, blockName]);
  2346   }, [clientId, blockName]);
  1419   const {
  2347   const {
  1420     moveBlockToWidgetArea
  2348     moveBlockToWidgetArea
  1421   } = Object(external_wp_data_["useDispatch"])(store);
  2349   } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
  1422   const hasMultipleWidgetAreas = (widgetAreas === null || widgetAreas === void 0 ? void 0 : widgetAreas.length) > 1;
  2350   const hasMultipleWidgetAreas = (widgetAreas === null || widgetAreas === void 0 ? void 0 : widgetAreas.length) > 1;
  1423   const isMoveToWidgetAreaVisible = blockName !== 'core/widget-area' && hasMultipleWidgetAreas && canInsertBlockInWidgetArea;
  2351   const isMoveToWidgetAreaVisible = blockName !== 'core/widget-area' && hasMultipleWidgetAreas && canInsertBlockInWidgetArea;
  1424   return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(BlockEdit, props), isMoveToWidgetAreaVisible && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], null, Object(external_wp_element_["createElement"])(external_wp_widgets_["MoveToWidgetArea"], {
  2352   return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(BlockEdit, props), isMoveToWidgetAreaVisible && (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_widgets_namespaceObject.MoveToWidgetArea, {
  1425     widgetAreas: widgetAreas,
  2353     widgetAreas: widgetAreas,
  1426     currentWidgetAreaId: currentWidgetAreaId,
  2354     currentWidgetAreaId: currentWidgetAreaId,
  1427     onSelect: widgetAreaId => {
  2355     onSelect: widgetAreaId => {
  1428       moveBlockToWidgetArea(props.clientId, widgetAreaId);
  2356       moveBlockToWidgetArea(props.clientId, widgetAreaId);
  1429     }
  2357     }
  1430   })));
  2358   })));
  1431 }, 'withMoveToWidgetAreaToolbarItem');
  2359 }, 'withMoveToWidgetAreaToolbarItem');
  1432 Object(external_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/edit-widgets/block-edit', withMoveToWidgetAreaToolbarItem);
  2360 (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/edit-widgets/block-edit', withMoveToWidgetAreaToolbarItem);
  1433 
  2361 
  1434 // EXTERNAL MODULE: external ["wp","mediaUtils"]
  2362 ;// CONCATENATED MODULE: external ["wp","mediaUtils"]
  1435 var external_wp_mediaUtils_ = __webpack_require__("6aBm");
  2363 var external_wp_mediaUtils_namespaceObject = window["wp"]["mediaUtils"];
  1436 
  2364 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/filters/replace-media-upload.js
  1437 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/filters/replace-media-upload.js
  2365 /**
  1438 /**
  2366  * WordPress dependencies
  1439  * WordPress dependencies
  2367  */
  1440  */
  2368 
  1441 
  2369 
  1442 
  2370 
  1443 
  2371 const replaceMediaUpload = () => external_wp_mediaUtils_namespaceObject.MediaUpload;
  1444 const replaceMediaUpload = () => external_wp_mediaUtils_["MediaUpload"];
  2372 
  1445 
  2373 (0,external_wp_hooks_namespaceObject.addFilter)('editor.MediaUpload', 'core/edit-widgets/replace-media-upload', replaceMediaUpload);
  1446 Object(external_wp_hooks_["addFilter"])('editor.MediaUpload', 'core/edit-widgets/replace-media-upload', replaceMediaUpload);
  2374 
  1447 
  2375 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/filters/index.js
  1448 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/filters/index.js
       
  1449 /**
  2376 /**
  1450  * Internal dependencies
  2377  * Internal dependencies
  1451  */
  2378  */
  1452 
  2379 
  1453 
  2380 
  1454 
  2381 
  1455 // EXTERNAL MODULE: external ["wp","components"]
  2382 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/edit/use-is-dragging-within.js
  1456 var external_wp_components_ = __webpack_require__("tI+e");
       
  1457 
       
  1458 // EXTERNAL MODULE: ./node_modules/classnames/index.js
       
  1459 var classnames = __webpack_require__("TSYQ");
       
  1460 var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
       
  1461 
       
  1462 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/edit/use-is-dragging-within.js
       
  1463 /**
  2383 /**
  1464  * WordPress dependencies
  2384  * WordPress dependencies
  1465  */
  2385  */
  1466 
  2386 
  1467 /** @typedef {import('@wordpress/element').RefObject} RefObject */
  2387 /** @typedef {import('@wordpress/element').RefObject} RefObject */
  1473  *
  2393  *
  1474  * @return {boolean} Is dragging within the target element.
  2394  * @return {boolean} Is dragging within the target element.
  1475  */
  2395  */
  1476 
  2396 
  1477 const useIsDraggingWithin = elementRef => {
  2397 const useIsDraggingWithin = elementRef => {
  1478   const [isDraggingWithin, setIsDraggingWithin] = Object(external_wp_element_["useState"])(false);
  2398   const [isDraggingWithin, setIsDraggingWithin] = (0,external_wp_element_namespaceObject.useState)(false);
  1479   Object(external_wp_element_["useEffect"])(() => {
  2399   (0,external_wp_element_namespaceObject.useEffect)(() => {
  1480     const {
  2400     const {
  1481       ownerDocument
  2401       ownerDocument
  1482     } = elementRef.current;
  2402     } = elementRef.current;
  1483 
  2403 
  1484     function handleDragStart(event) {
  2404     function handleDragStart(event) {
  1514   return isDraggingWithin;
  2434   return isDraggingWithin;
  1515 };
  2435 };
  1516 
  2436 
  1517 /* harmony default export */ var use_is_dragging_within = (useIsDraggingWithin);
  2437 /* harmony default export */ var use_is_dragging_within = (useIsDraggingWithin);
  1518 
  2438 
  1519 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/edit/inner-blocks.js
  2439 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/edit/inner-blocks.js
  1520 
  2440 
  1521 
  2441 
  1522 /**
  2442 /**
  1523  * External dependencies
  2443  * External dependencies
  1524  */
  2444  */
  1533 /**
  2453 /**
  1534  * Internal dependencies
  2454  * Internal dependencies
  1535  */
  2455  */
  1536 
  2456 
  1537 
  2457 
  1538 function WidgetAreaInnerBlocks({
  2458 function WidgetAreaInnerBlocks(_ref) {
  1539   id
  2459   let {
  1540 }) {
  2460     id
  1541   const [blocks, onInput, onChange] = Object(external_wp_coreData_["useEntityBlockEditor"])('root', 'postType');
  2461   } = _ref;
  1542   const innerBlocksRef = Object(external_wp_element_["useRef"])();
  2462   const [blocks, onInput, onChange] = (0,external_wp_coreData_namespaceObject.useEntityBlockEditor)('root', 'postType');
       
  2463   const innerBlocksRef = (0,external_wp_element_namespaceObject.useRef)();
  1543   const isDraggingWithinInnerBlocks = use_is_dragging_within(innerBlocksRef);
  2464   const isDraggingWithinInnerBlocks = use_is_dragging_within(innerBlocksRef);
  1544   const shouldHighlightDropZone = isDraggingWithinInnerBlocks; // Using the experimental hook so that we can control the className of the element.
  2465   const shouldHighlightDropZone = isDraggingWithinInnerBlocks; // Using the experimental hook so that we can control the className of the element.
  1545 
  2466 
  1546   const innerBlocksProps = Object(external_wp_blockEditor_["__experimentalUseInnerBlocksProps"])({
  2467   const innerBlocksProps = (0,external_wp_blockEditor_namespaceObject.useInnerBlocksProps)({
  1547     ref: innerBlocksRef
  2468     ref: innerBlocksRef
  1548   }, {
  2469   }, {
  1549     value: blocks,
  2470     value: blocks,
  1550     onInput,
  2471     onInput,
  1551     onChange,
  2472     onChange,
  1552     templateLock: false,
  2473     templateLock: false,
  1553     renderAppender: external_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender
  2474     renderAppender: external_wp_blockEditor_namespaceObject.InnerBlocks.ButtonBlockAppender
  1554   });
  2475   });
  1555 
  2476   return (0,external_wp_element_namespaceObject.createElement)("div", {
  1556   return Object(external_wp_element_["createElement"])("div", {
       
  1557     "data-widget-area-id": id,
  2477     "data-widget-area-id": id,
  1558     className: classnames_default()('wp-block-widget-area__inner-blocks block-editor-inner-blocks editor-styles-wrapper', {
  2478     className: classnames_default()('wp-block-widget-area__inner-blocks block-editor-inner-blocks editor-styles-wrapper', {
  1559       'wp-block-widget-area__highlight-drop-zone': shouldHighlightDropZone
  2479       'wp-block-widget-area__highlight-drop-zone': shouldHighlightDropZone
  1560     })
  2480     })
  1561   }, Object(external_wp_element_["createElement"])("div", innerBlocksProps));
  2481   }, (0,external_wp_element_namespaceObject.createElement)("div", innerBlocksProps));
  1562 }
  2482 }
  1563 
  2483 
  1564 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/edit/index.js
  2484 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/edit/index.js
  1565 
  2485 
  1566 
  2486 
  1567 /**
  2487 /**
  1568  * WordPress dependencies
  2488  * WordPress dependencies
  1569  */
  2489  */
  1578 
  2498 
  1579 
  2499 
  1580 
  2500 
  1581 /** @typedef {import('@wordpress/element').RefObject} RefObject */
  2501 /** @typedef {import('@wordpress/element').RefObject} RefObject */
  1582 
  2502 
  1583 function WidgetAreaEdit({
  2503 function WidgetAreaEdit(_ref) {
  1584   clientId,
  2504   let {
  1585   className,
  2505     clientId,
  1586   attributes: {
  2506     className,
  1587     id,
  2507     attributes: {
  1588     name
  2508       id,
  1589   }
  2509       name
  1590 }) {
  2510     }
  1591   const isOpen = Object(external_wp_data_["useSelect"])(select => select(store).getIsWidgetAreaOpen(clientId), [clientId]);
  2511   } = _ref;
       
  2512   const isOpen = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getIsWidgetAreaOpen(clientId), [clientId]);
  1592   const {
  2513   const {
  1593     setIsWidgetAreaOpen
  2514     setIsWidgetAreaOpen
  1594   } = Object(external_wp_data_["useDispatch"])(store);
  2515   } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
  1595   const wrapper = Object(external_wp_element_["useRef"])();
  2516   const wrapper = (0,external_wp_element_namespaceObject.useRef)();
  1596   const setOpen = Object(external_wp_element_["useCallback"])(openState => setIsWidgetAreaOpen(clientId, openState), [clientId]);
  2517   const setOpen = (0,external_wp_element_namespaceObject.useCallback)(openState => setIsWidgetAreaOpen(clientId, openState), [clientId]);
  1597   const isDragging = useIsDragging(wrapper);
  2518   const isDragging = useIsDragging(wrapper);
  1598   const isDraggingWithin = use_is_dragging_within(wrapper);
  2519   const isDraggingWithin = use_is_dragging_within(wrapper);
  1599   const [openedWhileDragging, setOpenedWhileDragging] = Object(external_wp_element_["useState"])(false);
  2520   const [openedWhileDragging, setOpenedWhileDragging] = (0,external_wp_element_namespaceObject.useState)(false);
  1600   Object(external_wp_element_["useEffect"])(() => {
  2521   (0,external_wp_element_namespaceObject.useEffect)(() => {
  1601     if (!isDragging) {
  2522     if (!isDragging) {
  1602       setOpenedWhileDragging(false);
  2523       setOpenedWhileDragging(false);
  1603       return;
  2524       return;
  1604     }
  2525     }
  1605 
  2526 
  1608       setOpenedWhileDragging(true);
  2529       setOpenedWhileDragging(true);
  1609     } else if (!isDraggingWithin && isOpen && openedWhileDragging) {
  2530     } else if (!isDraggingWithin && isOpen && openedWhileDragging) {
  1610       setOpen(false);
  2531       setOpen(false);
  1611     }
  2532     }
  1612   }, [isOpen, isDragging, isDraggingWithin, openedWhileDragging]);
  2533   }, [isOpen, isDragging, isDraggingWithin, openedWhileDragging]);
  1613   return Object(external_wp_element_["createElement"])(external_wp_components_["Panel"], {
  2534   return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Panel, {
  1614     className: className,
  2535     className: className,
  1615     ref: wrapper
  2536     ref: wrapper
  1616   }, Object(external_wp_element_["createElement"])(external_wp_components_["PanelBody"], {
  2537   }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
  1617     title: name,
  2538     title: name,
  1618     opened: isOpen,
  2539     opened: isOpen,
  1619     onToggle: () => {
  2540     onToggle: () => {
  1620       setIsWidgetAreaOpen(clientId, !isOpen);
  2541       setIsWidgetAreaOpen(clientId, !isOpen);
  1621     },
  2542     },
  1622     scrollAfterOpen: !isDragging
  2543     scrollAfterOpen: !isDragging
  1623   }, ({
  2544   }, _ref2 => {
  1624     opened
  2545     let {
  1625   }) => // This is required to ensure LegacyWidget blocks are not
  2546       opened
  1626   // unmounted when the panel is collapsed. Unmounting legacy
  2547     } = _ref2;
  1627   // widgets may have unintended consequences (e.g.  TinyMCE
  2548     return (// This is required to ensure LegacyWidget blocks are not
  1628   // not being properly reinitialized)
  2549       // unmounted when the panel is collapsed. Unmounting legacy
  1629   Object(external_wp_element_["createElement"])(external_wp_components_["__unstableDisclosureContent"], {
  2550       // widgets may have unintended consequences (e.g.  TinyMCE
  1630     className: "wp-block-widget-area__panel-body-content",
  2551       // not being properly reinitialized)
  1631     visible: opened
  2552       (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__unstableDisclosureContent, {
  1632   }, Object(external_wp_element_["createElement"])(external_wp_coreData_["EntityProvider"], {
  2553         className: "wp-block-widget-area__panel-body-content",
  1633     kind: "root",
  2554         visible: opened
  1634     type: "postType",
  2555       }, (0,external_wp_element_namespaceObject.createElement)(external_wp_coreData_namespaceObject.EntityProvider, {
  1635     id: `widget-area-${id}`
  2556         kind: "root",
  1636   }, Object(external_wp_element_["createElement"])(WidgetAreaInnerBlocks, {
  2557         type: "postType",
  1637     id: id
  2558         id: `widget-area-${id}`
  1638   })))));
  2559       }, (0,external_wp_element_namespaceObject.createElement)(WidgetAreaInnerBlocks, {
       
  2560         id: id
       
  2561       })))
       
  2562     );
       
  2563   }));
  1639 }
  2564 }
  1640 /**
  2565 /**
  1641  * A React hook to determine if dragging is active.
  2566  * A React hook to determine if dragging is active.
  1642  *
  2567  *
  1643  * @param {RefObject<HTMLElement>} elementRef The target elementRef object.
  2568  * @param {RefObject<HTMLElement>} elementRef The target elementRef object.
  1644  *
  2569  *
  1645  * @return {boolean} Is dragging within the entire document.
  2570  * @return {boolean} Is dragging within the entire document.
  1646  */
  2571  */
  1647 
  2572 
  1648 const useIsDragging = elementRef => {
  2573 const useIsDragging = elementRef => {
  1649   const [isDragging, setIsDragging] = Object(external_wp_element_["useState"])(false);
  2574   const [isDragging, setIsDragging] = (0,external_wp_element_namespaceObject.useState)(false);
  1650   Object(external_wp_element_["useEffect"])(() => {
  2575   (0,external_wp_element_namespaceObject.useEffect)(() => {
  1651     const {
  2576     const {
  1652       ownerDocument
  2577       ownerDocument
  1653     } = elementRef.current;
  2578     } = elementRef.current;
  1654 
  2579 
  1655     function handleDragStart() {
  2580     function handleDragStart() {
  1668     };
  2593     };
  1669   }, []);
  2594   }, []);
  1670   return isDragging;
  2595   return isDragging;
  1671 };
  2596 };
  1672 
  2597 
  1673 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/index.js
  2598 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/index.js
  1674 /**
  2599 /**
  1675  * WordPress dependencies
  2600  * WordPress dependencies
  1676  */
  2601  */
  1677 
  2602 
  1678 /**
  2603 /**
  1679  * Internal dependencies
  2604  * Internal dependencies
  1680  */
  2605  */
  1681 
  2606 
  1682 const widget_area_metadata = {
  2607 const metadata = {
  1683   name: "core/widget-area",
  2608   name: "core/widget-area",
  1684   category: "widgets",
  2609   category: "widgets",
  1685   attributes: {
  2610   attributes: {
  1686     id: {
  2611     id: {
  1687       type: "string"
  2612       type: "string"
  1702   style: "wp-block-widget-area"
  2627   style: "wp-block-widget-area"
  1703 };
  2628 };
  1704 
  2629 
  1705 const {
  2630 const {
  1706   name: widget_area_name
  2631   name: widget_area_name
  1707 } = widget_area_metadata;
  2632 } = metadata;
  1708 
  2633 
  1709 const widget_area_settings = {
  2634 const settings = {
  1710   title: Object(external_wp_i18n_["__"])('Widget Area'),
  2635   title: (0,external_wp_i18n_namespaceObject.__)('Widget Area'),
  1711   description: Object(external_wp_i18n_["__"])('A widget area container.'),
  2636   description: (0,external_wp_i18n_namespaceObject.__)('A widget area container.'),
  1712   __experimentalLabel: ({
  2637   __experimentalLabel: _ref => {
  1713     name: label
  2638     let {
  1714   }) => label,
  2639       name: label
       
  2640     } = _ref;
       
  2641     return label;
       
  2642   },
  1715   edit: WidgetAreaEdit
  2643   edit: WidgetAreaEdit
  1716 };
  2644 };
  1717 
  2645 
  1718 // EXTERNAL MODULE: external ["wp","plugins"]
  2646 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/error-boundary/index.js
  1719 var external_wp_plugins_ = __webpack_require__("TvNi");
  2647 
  1720 
  2648 
  1721 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/error-boundary/index.js
  2649 /**
  1722 
  2650  * WordPress dependencies
  1723 
  2651  */
  1724 /**
  2652 
  1725  * WordPress dependencies
  2653 
  1726  */
  2654 
  1727 
  2655 
  1728 
  2656 
  1729 
  2657 
  1730 
  2658 function CopyButton(_ref) {
  1731 
  2659   let {
  1732 
  2660     text,
  1733 function CopyButton({
  2661     children
  1734   text,
  2662   } = _ref;
  1735   children
  2663   const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(text);
  1736 }) {
  2664   return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
  1737   const ref = Object(external_wp_compose_["useCopyToClipboard"])(text);
       
  1738   return Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
       
  1739     variant: "secondary",
  2665     variant: "secondary",
  1740     ref: ref
  2666     ref: ref
  1741   }, children);
  2667   }, children);
  1742 }
  2668 }
  1743 
  2669 
  1744 class error_boundary_ErrorBoundary extends external_wp_element_["Component"] {
  2670 class ErrorBoundary extends external_wp_element_namespaceObject.Component {
  1745   constructor() {
  2671   constructor() {
  1746     super(...arguments);
  2672     super(...arguments);
  1747     this.reboot = this.reboot.bind(this);
  2673     this.reboot = this.reboot.bind(this);
  1748     this.state = {
  2674     this.state = {
  1749       error: null
  2675       error: null
  1767 
  2693 
  1768     if (!error) {
  2694     if (!error) {
  1769       return this.props.children;
  2695       return this.props.children;
  1770     }
  2696     }
  1771 
  2697 
  1772     return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["Warning"], {
  2698     return (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, {
  1773       className: "edit-widgets-error-boundary",
  2699       className: "edit-widgets-error-boundary",
  1774       actions: [Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
  2700       actions: [(0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
  1775         key: "recovery",
  2701         key: "recovery",
  1776         onClick: this.reboot,
  2702         onClick: this.reboot,
  1777         variant: "secondary"
  2703         variant: "secondary"
  1778       }, Object(external_wp_i18n_["__"])('Attempt Recovery')), Object(external_wp_element_["createElement"])(CopyButton, {
  2704       }, (0,external_wp_i18n_namespaceObject.__)('Attempt Recovery')), (0,external_wp_element_namespaceObject.createElement)(CopyButton, {
  1779         key: "copy-error",
  2705         key: "copy-error",
  1780         text: error.stack
  2706         text: error.stack
  1781       }, Object(external_wp_i18n_["__"])('Copy Error'))]
  2707       }, (0,external_wp_i18n_namespaceObject.__)('Copy Error'))]
  1782     }, Object(external_wp_i18n_["__"])('The editor has encountered an unexpected error.'));
  2708     }, (0,external_wp_i18n_namespaceObject.__)('The editor has encountered an unexpected error.'));
  1783   }
  2709   }
  1784 
  2710 
  1785 }
  2711 }
  1786 
  2712 
  1787 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
  2713 ;// CONCATENATED MODULE: external ["wp","reusableBlocks"]
  1788 var esm_extends = __webpack_require__("wx14");
  2714 var external_wp_reusableBlocks_namespaceObject = window["wp"]["reusableBlocks"];
  1789 
  2715 ;// CONCATENATED MODULE: external ["wp","keyboardShortcuts"]
  1790 // EXTERNAL MODULE: external ["wp","reusableBlocks"]
  2716 var external_wp_keyboardShortcuts_namespaceObject = window["wp"]["keyboardShortcuts"];
  1791 var external_wp_reusableBlocks_ = __webpack_require__("diJD");
  2717 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/keyboard-shortcuts/index.js
  1792 
  2718 /**
  1793 // EXTERNAL MODULE: external ["wp","keyboardShortcuts"]
  2719  * WordPress dependencies
  1794 var external_wp_keyboardShortcuts_ = __webpack_require__("hF7m");
  2720  */
  1795 
  2721 
  1796 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/keyboard-shortcuts/index.js
       
  1797 /**
       
  1798  * WordPress dependencies
       
  1799  */
       
  1800 
  2722 
  1801 
  2723 
  1802 
  2724 
  1803 
  2725 
  1804 /**
  2726 /**
  1809 
  2731 
  1810 function KeyboardShortcuts() {
  2732 function KeyboardShortcuts() {
  1811   const {
  2733   const {
  1812     redo,
  2734     redo,
  1813     undo
  2735     undo
  1814   } = Object(external_wp_data_["useDispatch"])('core');
  2736   } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
  1815   const {
  2737   const {
  1816     saveEditedWidgetAreas
  2738     saveEditedWidgetAreas
  1817   } = Object(external_wp_data_["useDispatch"])(store);
  2739   } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
  1818   Object(external_wp_keyboardShortcuts_["useShortcut"])('core/edit-widgets/undo', event => {
  2740   (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-widgets/undo', event => {
  1819     undo();
  2741     undo();
  1820     event.preventDefault();
  2742     event.preventDefault();
  1821   }, {
       
  1822     bindGlobal: true
       
  1823   });
  2743   });
  1824   Object(external_wp_keyboardShortcuts_["useShortcut"])('core/edit-widgets/redo', event => {
  2744   (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-widgets/redo', event => {
  1825     redo();
  2745     redo();
  1826     event.preventDefault();
  2746     event.preventDefault();
  1827   }, {
       
  1828     bindGlobal: true
       
  1829   });
  2747   });
  1830   Object(external_wp_keyboardShortcuts_["useShortcut"])('core/edit-widgets/save', event => {
  2748   (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-widgets/save', event => {
  1831     event.preventDefault();
  2749     event.preventDefault();
  1832     saveEditedWidgetAreas();
  2750     saveEditedWidgetAreas();
  1833   }, {
       
  1834     bindGlobal: true
       
  1835   });
  2751   });
  1836   return null;
  2752   return null;
  1837 }
  2753 }
  1838 
  2754 
  1839 function KeyboardShortcutsRegister() {
  2755 function KeyboardShortcutsRegister() {
  1840   // Registering the shortcuts
  2756   // Registering the shortcuts.
  1841   const {
  2757   const {
  1842     registerShortcut
  2758     registerShortcut
  1843   } = Object(external_wp_data_["useDispatch"])(external_wp_keyboardShortcuts_["store"]);
  2759   } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_keyboardShortcuts_namespaceObject.store);
  1844   Object(external_wp_element_["useEffect"])(() => {
  2760   (0,external_wp_element_namespaceObject.useEffect)(() => {
  1845     registerShortcut({
  2761     registerShortcut({
  1846       name: 'core/edit-widgets/undo',
  2762       name: 'core/edit-widgets/undo',
  1847       category: 'global',
  2763       category: 'global',
  1848       description: Object(external_wp_i18n_["__"])('Undo your last changes.'),
  2764       description: (0,external_wp_i18n_namespaceObject.__)('Undo your last changes.'),
  1849       keyCombination: {
  2765       keyCombination: {
  1850         modifier: 'primary',
  2766         modifier: 'primary',
  1851         character: 'z'
  2767         character: 'z'
  1852       }
  2768       }
  1853     });
  2769     });
  1854     registerShortcut({
  2770     registerShortcut({
  1855       name: 'core/edit-widgets/redo',
  2771       name: 'core/edit-widgets/redo',
  1856       category: 'global',
  2772       category: 'global',
  1857       description: Object(external_wp_i18n_["__"])('Redo your last undo.'),
  2773       description: (0,external_wp_i18n_namespaceObject.__)('Redo your last undo.'),
  1858       keyCombination: {
  2774       keyCombination: {
  1859         modifier: 'primaryShift',
  2775         modifier: 'primaryShift',
  1860         character: 'z'
  2776         character: 'z'
  1861       }
  2777       }
  1862     });
  2778     });
  1863     registerShortcut({
  2779     registerShortcut({
  1864       name: 'core/edit-widgets/save',
  2780       name: 'core/edit-widgets/save',
  1865       category: 'global',
  2781       category: 'global',
  1866       description: Object(external_wp_i18n_["__"])('Save your changes.'),
  2782       description: (0,external_wp_i18n_namespaceObject.__)('Save your changes.'),
  1867       keyCombination: {
  2783       keyCombination: {
  1868         modifier: 'primary',
  2784         modifier: 'primary',
  1869         character: 's'
  2785         character: 's'
  1870       }
  2786       }
  1871     });
  2787     });
  1872     registerShortcut({
  2788     registerShortcut({
  1873       name: 'core/edit-widgets/keyboard-shortcuts',
  2789       name: 'core/edit-widgets/keyboard-shortcuts',
  1874       category: 'main',
  2790       category: 'main',
  1875       description: Object(external_wp_i18n_["__"])('Display these keyboard shortcuts.'),
  2791       description: (0,external_wp_i18n_namespaceObject.__)('Display these keyboard shortcuts.'),
  1876       keyCombination: {
  2792       keyCombination: {
  1877         modifier: 'access',
  2793         modifier: 'access',
  1878         character: 'h'
  2794         character: 'h'
  1879       }
  2795       }
  1880     });
  2796     });
  1881     registerShortcut({
  2797     registerShortcut({
  1882       name: 'core/edit-widgets/next-region',
  2798       name: 'core/edit-widgets/next-region',
  1883       category: 'global',
  2799       category: 'global',
  1884       description: Object(external_wp_i18n_["__"])('Navigate to the next part of the editor.'),
  2800       description: (0,external_wp_i18n_namespaceObject.__)('Navigate to the next part of the editor.'),
  1885       keyCombination: {
  2801       keyCombination: {
  1886         modifier: 'ctrl',
  2802         modifier: 'ctrl',
  1887         character: '`'
  2803         character: '`'
  1888       },
  2804       },
  1889       aliases: [{
  2805       aliases: [{
  1892       }]
  2808       }]
  1893     });
  2809     });
  1894     registerShortcut({
  2810     registerShortcut({
  1895       name: 'core/edit-widgets/previous-region',
  2811       name: 'core/edit-widgets/previous-region',
  1896       category: 'global',
  2812       category: 'global',
  1897       description: Object(external_wp_i18n_["__"])('Navigate to the previous part of the editor.'),
  2813       description: (0,external_wp_i18n_namespaceObject.__)('Navigate to the previous part of the editor.'),
  1898       keyCombination: {
  2814       keyCombination: {
  1899         modifier: 'ctrlShift',
  2815         modifier: 'ctrlShift',
  1900         character: '`'
  2816         character: '`'
  1901       },
  2817       },
  1902       aliases: [{
  2818       aliases: [{
  1909 }
  2825 }
  1910 
  2826 
  1911 KeyboardShortcuts.Register = KeyboardShortcutsRegister;
  2827 KeyboardShortcuts.Register = KeyboardShortcutsRegister;
  1912 /* harmony default export */ var keyboard_shortcuts = (KeyboardShortcuts);
  2828 /* harmony default export */ var keyboard_shortcuts = (KeyboardShortcuts);
  1913 
  2829 
  1914 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/hooks/use-last-selected-widget-area.js
  2830 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/hooks/use-last-selected-widget-area.js
  1915 /**
  2831 /**
  1916  * WordPress dependencies
  2832  * WordPress dependencies
  1917  */
  2833  */
       
  2834 
       
  2835 
  1918 
  2836 
  1919 /**
  2837 /**
  1920  * Internal dependencies
  2838  * Internal dependencies
  1921  */
  2839  */
  1922 
  2840 
  1927  * been selected, or to have a selected block within it.
  2845  * been selected, or to have a selected block within it.
  1928  *
  2846  *
  1929  * @return {string} clientId of the widget area last selected.
  2847  * @return {string} clientId of the widget area last selected.
  1930  */
  2848  */
  1931 
  2849 
  1932 const useLastSelectedWidgetArea = () => Object(external_wp_data_["useSelect"])(select => {
  2850 const useLastSelectedWidgetArea = () => (0,external_wp_data_namespaceObject.useSelect)(select => {
  1933   var _widgetAreasPost$bloc;
  2851   var _widgetAreasPost$bloc;
  1934 
  2852 
  1935   const {
  2853   const {
  1936     getBlockSelectionEnd,
  2854     getBlockSelectionEnd,
  1937     getBlockName
  2855     getBlockName
  1938   } = select('core/block-editor');
  2856   } = select(external_wp_blockEditor_namespaceObject.store);
  1939   const selectionEndClientId = getBlockSelectionEnd(); // If the selected block is a widget area, return its clientId.
  2857   const selectionEndClientId = getBlockSelectionEnd(); // If the selected block is a widget area, return its clientId.
  1940 
  2858 
  1941   if (getBlockName(selectionEndClientId) === 'core/widget-area') {
  2859   if (getBlockName(selectionEndClientId) === 'core/widget-area') {
  1942     return selectionEndClientId;
  2860     return selectionEndClientId;
  1943   }
  2861   }
  1944 
  2862 
  1945   const {
  2863   const {
  1946     getParentWidgetAreaBlock
  2864     getParentWidgetAreaBlock
  1947   } = select(store);
  2865   } = select(store_store);
  1948   const widgetAreaBlock = getParentWidgetAreaBlock(selectionEndClientId);
  2866   const widgetAreaBlock = getParentWidgetAreaBlock(selectionEndClientId);
  1949   const widgetAreaBlockClientId = widgetAreaBlock === null || widgetAreaBlock === void 0 ? void 0 : widgetAreaBlock.clientId;
  2867   const widgetAreaBlockClientId = widgetAreaBlock === null || widgetAreaBlock === void 0 ? void 0 : widgetAreaBlock.clientId;
  1950 
  2868 
  1951   if (widgetAreaBlockClientId) {
  2869   if (widgetAreaBlockClientId) {
  1952     return widgetAreaBlockClientId;
  2870     return widgetAreaBlockClientId;
  1954   // area.
  2872   // area.
  1955 
  2873 
  1956 
  2874 
  1957   const {
  2875   const {
  1958     getEntityRecord
  2876     getEntityRecord
  1959   } = select('core');
  2877   } = select(external_wp_coreData_namespaceObject.store);
  1960   const widgetAreasPost = getEntityRecord(KIND, POST_TYPE, buildWidgetAreasPostId());
  2878   const widgetAreasPost = getEntityRecord(KIND, POST_TYPE, buildWidgetAreasPostId());
  1961   return widgetAreasPost === null || widgetAreasPost === void 0 ? void 0 : (_widgetAreasPost$bloc = widgetAreasPost.blocks[0]) === null || _widgetAreasPost$bloc === void 0 ? void 0 : _widgetAreasPost$bloc.clientId;
  2879   return widgetAreasPost === null || widgetAreasPost === void 0 ? void 0 : (_widgetAreasPost$bloc = widgetAreasPost.blocks[0]) === null || _widgetAreasPost$bloc === void 0 ? void 0 : _widgetAreasPost$bloc.clientId;
  1962 }, []);
  2880 }, []);
  1963 
  2881 
  1964 /* harmony default export */ var use_last_selected_widget_area = (useLastSelectedWidgetArea);
  2882 /* harmony default export */ var use_last_selected_widget_area = (useLastSelectedWidgetArea);
  1965 
  2883 
  1966 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/constants.js
  2884 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/constants.js
  1967 const ALLOW_REUSABLE_BLOCKS = false;
  2885 const ALLOW_REUSABLE_BLOCKS = false;
  1968 const ENABLE_EXPERIMENTAL_FSE_BLOCKS = false;
  2886 const ENABLE_EXPERIMENTAL_FSE_BLOCKS = false;
  1969 
  2887 
  1970 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/widget-areas-block-editor-provider/index.js
  2888 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/widget-areas-block-editor-provider/index.js
  1971 
  2889 
  1972 
  2890 
  1973 
  2891 
  1974 /**
  2892 /**
  1975  * External dependencies
  2893  * External dependencies
  1983 
  2901 
  1984 
  2902 
  1985 
  2903 
  1986 
  2904 
  1987 
  2905 
       
  2906 
       
  2907 
  1988 /**
  2908 /**
  1989  * Internal dependencies
  2909  * Internal dependencies
  1990  */
  2910  */
  1991 
  2911 
  1992 
  2912 
  1993 
  2913 
  1994 
  2914 
  1995 
  2915 
  1996 
  2916 
  1997 
  2917 
  1998 function WidgetAreasBlockEditorProvider({
  2918 function WidgetAreasBlockEditorProvider(_ref) {
  1999   blockEditorSettings,
  2919   let {
  2000   children,
  2920     blockEditorSettings,
  2001   ...props
  2921     children,
  2002 }) {
  2922     ...props
       
  2923   } = _ref;
  2003   const {
  2924   const {
  2004     hasUploadPermissions,
  2925     hasUploadPermissions,
  2005     reusableBlocks,
  2926     reusableBlocks,
  2006     isFixedToolbarActive,
  2927     isFixedToolbarActive,
  2007     keepCaretInsideBlock
  2928     keepCaretInsideBlock
  2008   } = Object(external_wp_data_["useSelect"])(select => ({
  2929   } = (0,external_wp_data_namespaceObject.useSelect)(select => ({
  2009     hasUploadPermissions: Object(external_lodash_["defaultTo"])(select('core').canUser('create', 'media'), true),
  2930     hasUploadPermissions: (0,external_lodash_namespaceObject.defaultTo)(select(external_wp_coreData_namespaceObject.store).canUser('create', 'media'), true),
  2010     widgetAreas: select(store).getWidgetAreas(),
  2931     widgetAreas: select(store_store).getWidgetAreas(),
  2011     widgets: select(store).getWidgets(),
  2932     widgets: select(store_store).getWidgets(),
  2012     reusableBlocks: ALLOW_REUSABLE_BLOCKS ? select('core').getEntityRecords('postType', 'wp_block') : [],
  2933     reusableBlocks: ALLOW_REUSABLE_BLOCKS ? select(external_wp_coreData_namespaceObject.store).getEntityRecords('postType', 'wp_block') : [],
  2013     isFixedToolbarActive: select(store).__unstableIsFeatureActive('fixedToolbar'),
  2934     isFixedToolbarActive: !!select(external_wp_preferences_namespaceObject.store).get('core/edit-widgets', 'fixedToolbar'),
  2014     keepCaretInsideBlock: select(store).__unstableIsFeatureActive('keepCaretInsideBlock')
  2935     keepCaretInsideBlock: !!select(external_wp_preferences_namespaceObject.store).get('core/edit-widgets', 'keepCaretInsideBlock')
  2015   }), []);
  2936   }), []);
  2016   const {
  2937   const {
  2017     setIsInserterOpened
  2938     setIsInserterOpened
  2018   } = Object(external_wp_data_["useDispatch"])(store);
  2939   } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
  2019   const settings = Object(external_wp_element_["useMemo"])(() => {
  2940   const settings = (0,external_wp_element_namespaceObject.useMemo)(() => {
  2020     let mediaUploadBlockEditor;
  2941     let mediaUploadBlockEditor;
  2021 
  2942 
  2022     if (hasUploadPermissions) {
  2943     if (hasUploadPermissions) {
  2023       mediaUploadBlockEditor = ({
  2944       mediaUploadBlockEditor = _ref2 => {
  2024         onError,
  2945         let {
  2025         ...argumentsObject
  2946           onError,
  2026       }) => {
  2947           ...argumentsObject
  2027         Object(external_wp_mediaUtils_["uploadMedia"])({
  2948         } = _ref2;
       
  2949         (0,external_wp_mediaUtils_namespaceObject.uploadMedia)({
  2028           wpAllowedMimeTypes: blockEditorSettings.allowedMimeTypes,
  2950           wpAllowedMimeTypes: blockEditorSettings.allowedMimeTypes,
  2029           onError: ({
  2951           onError: _ref3 => {
  2030             message
  2952             let {
  2031           }) => onError(message),
  2953               message
       
  2954             } = _ref3;
       
  2955             return onError(message);
       
  2956           },
  2032           ...argumentsObject
  2957           ...argumentsObject
  2033         });
  2958         });
  2034       };
  2959       };
  2035     }
  2960     }
  2036 
  2961 
  2042       templateLock: 'all',
  2967       templateLock: 'all',
  2043       __experimentalSetIsInserterOpened: setIsInserterOpened
  2968       __experimentalSetIsInserterOpened: setIsInserterOpened
  2044     };
  2969     };
  2045   }, [blockEditorSettings, isFixedToolbarActive, keepCaretInsideBlock, hasUploadPermissions, reusableBlocks, setIsInserterOpened]);
  2970   }, [blockEditorSettings, isFixedToolbarActive, keepCaretInsideBlock, hasUploadPermissions, reusableBlocks, setIsInserterOpened]);
  2046   const widgetAreaId = use_last_selected_widget_area();
  2971   const widgetAreaId = use_last_selected_widget_area();
  2047   const [blocks, onInput, onChange] = Object(external_wp_coreData_["useEntityBlockEditor"])(KIND, POST_TYPE, {
  2972   const [blocks, onInput, onChange] = (0,external_wp_coreData_namespaceObject.useEntityBlockEditor)(KIND, POST_TYPE, {
  2048     id: buildWidgetAreasPostId()
  2973     id: buildWidgetAreasPostId()
  2049   });
  2974   });
  2050   return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockEditorKeyboardShortcuts"].Register, null), Object(external_wp_element_["createElement"])(keyboard_shortcuts.Register, null), Object(external_wp_element_["createElement"])(external_wp_components_["SlotFillProvider"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockEditorProvider"], Object(esm_extends["a" /* default */])({
  2975   return (0,external_wp_element_namespaceObject.createElement)(external_wp_keyboardShortcuts_namespaceObject.ShortcutProvider, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockEditorKeyboardShortcuts.Register, null), (0,external_wp_element_namespaceObject.createElement)(keyboard_shortcuts.Register, null), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.SlotFillProvider, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockEditorProvider, _extends({
  2051     value: blocks,
  2976     value: blocks,
  2052     onInput: onInput,
  2977     onInput: onInput,
  2053     onChange: onChange,
  2978     onChange: onChange,
  2054     settings: settings,
  2979     settings: settings,
  2055     useSubRegistry: false
  2980     useSubRegistry: false
  2056   }, props), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["CopyHandler"], null, children), Object(external_wp_element_["createElement"])(external_wp_reusableBlocks_["ReusableBlocksMenuItems"], {
  2981   }, props), (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.CopyHandler, null, children), (0,external_wp_element_namespaceObject.createElement)(external_wp_reusableBlocks_namespaceObject.ReusableBlocksMenuItems, {
  2057     rootClientId: widgetAreaId
  2982     rootClientId: widgetAreaId
  2058   }))));
  2983   }))));
  2059 }
  2984 }
  2060 
  2985 
  2061 // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/cog.js
  2986 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/cog.js
  2062 var cog = __webpack_require__("Cg8A");
  2987 
  2063 
  2988 
  2064 // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js
  2989 /**
  2065 var block_default = __webpack_require__("//Lo");
  2990  * WordPress dependencies
  2066 
  2991  */
  2067 // EXTERNAL MODULE: external ["wp","url"]
  2992 
  2068 var external_wp_url_ = __webpack_require__("Mmq9");
  2993 const cog = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
  2069 
  2994   xmlns: "http://www.w3.org/2000/svg",
  2070 // EXTERNAL MODULE: external ["wp","dom"]
  2995   viewBox: "0 0 24 24"
  2071 var external_wp_dom_ = __webpack_require__("1CF3");
  2996 }, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
  2072 
  2997   fillRule: "evenodd",
  2073 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/sidebar/widget-areas.js
  2998   d: "M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",
       
  2999   clipRule: "evenodd"
       
  3000 }));
       
  3001 /* harmony default export */ var library_cog = (cog);
       
  3002 
       
  3003 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js
       
  3004 
       
  3005 
       
  3006 /**
       
  3007  * WordPress dependencies
       
  3008  */
       
  3009 
       
  3010 const blockDefault = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
       
  3011   xmlns: "http://www.w3.org/2000/svg",
       
  3012   viewBox: "0 0 24 24"
       
  3013 }, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
       
  3014   d: "M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"
       
  3015 }));
       
  3016 /* harmony default export */ var block_default = (blockDefault);
       
  3017 
       
  3018 ;// CONCATENATED MODULE: external ["wp","url"]
       
  3019 var external_wp_url_namespaceObject = window["wp"]["url"];
       
  3020 ;// CONCATENATED MODULE: external ["wp","dom"]
       
  3021 var external_wp_dom_namespaceObject = window["wp"]["dom"];
       
  3022 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/sidebar/widget-areas.js
  2074 
  3023 
  2075 
  3024 
  2076 /**
  3025 /**
  2077  * WordPress dependencies
  3026  * WordPress dependencies
  2078  */
  3027  */
  2087 /**
  3036 /**
  2088  * Internal dependencies
  3037  * Internal dependencies
  2089  */
  3038  */
  2090 
  3039 
  2091 
  3040 
  2092 function WidgetAreas({
  3041 function WidgetAreas(_ref) {
  2093   selectedWidgetAreaId
  3042   let {
  2094 }) {
  3043     selectedWidgetAreaId
  2095   const widgetAreas = Object(external_wp_data_["useSelect"])(select => select(store).getWidgetAreas(), []);
  3044   } = _ref;
  2096   const selectedWidgetArea = Object(external_wp_element_["useMemo"])(() => selectedWidgetAreaId && (widgetAreas === null || widgetAreas === void 0 ? void 0 : widgetAreas.find(widgetArea => widgetArea.id === selectedWidgetAreaId)), [selectedWidgetAreaId, widgetAreas]);
  3045   const widgetAreas = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getWidgetAreas(), []);
       
  3046   const selectedWidgetArea = (0,external_wp_element_namespaceObject.useMemo)(() => selectedWidgetAreaId && (widgetAreas === null || widgetAreas === void 0 ? void 0 : widgetAreas.find(widgetArea => widgetArea.id === selectedWidgetAreaId)), [selectedWidgetAreaId, widgetAreas]);
  2097   let description;
  3047   let description;
  2098 
  3048 
  2099   if (!selectedWidgetArea) {
  3049   if (!selectedWidgetArea) {
  2100     description = Object(external_wp_i18n_["__"])('Widget Areas are global parts in your site’s layout that can accept blocks. These vary by theme, but are typically parts like your Sidebar or Footer.');
  3050     description = (0,external_wp_i18n_namespaceObject.__)('Widget Areas are global parts in your site’s layout that can accept blocks. These vary by theme, but are typically parts like your Sidebar or Footer.');
  2101   } else if (selectedWidgetAreaId === 'wp_inactive_widgets') {
  3051   } else if (selectedWidgetAreaId === 'wp_inactive_widgets') {
  2102     description = Object(external_wp_i18n_["__"])('Blocks in this Widget Area will not be displayed in your site.');
  3052     description = (0,external_wp_i18n_namespaceObject.__)('Blocks in this Widget Area will not be displayed in your site.');
  2103   } else {
  3053   } else {
  2104     description = selectedWidgetArea.description;
  3054     description = selectedWidgetArea.description;
  2105   }
  3055   }
  2106 
  3056 
  2107   return Object(external_wp_element_["createElement"])("div", {
  3057   return (0,external_wp_element_namespaceObject.createElement)("div", {
  2108     className: "edit-widgets-widget-areas"
  3058     className: "edit-widgets-widget-areas"
  2109   }, Object(external_wp_element_["createElement"])("div", {
  3059   }, (0,external_wp_element_namespaceObject.createElement)("div", {
  2110     className: "edit-widgets-widget-areas__top-container"
  3060     className: "edit-widgets-widget-areas__top-container"
  2111   }, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockIcon"], {
  3061   }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, {
  2112     icon: block_default["a" /* default */]
  3062     icon: block_default
  2113   }), Object(external_wp_element_["createElement"])("div", null, Object(external_wp_element_["createElement"])("p", {
  3063   }), (0,external_wp_element_namespaceObject.createElement)("div", null, (0,external_wp_element_namespaceObject.createElement)("p", {
  2114     // Use `dangerouslySetInnerHTML` to keep backwards
  3064     // Use `dangerouslySetInnerHTML` to keep backwards
  2115     // compatibility. Basic markup in the description is an
  3065     // compatibility. Basic markup in the description is an
  2116     // established feature of WordPress.
  3066     // established feature of WordPress.
  2117     // @see https://github.com/WordPress/gutenberg/issues/33106
  3067     // @see https://github.com/WordPress/gutenberg/issues/33106
  2118     dangerouslySetInnerHTML: {
  3068     dangerouslySetInnerHTML: {
  2119       __html: Object(external_wp_dom_["safeHTML"])(description)
  3069       __html: (0,external_wp_dom_namespaceObject.safeHTML)(description)
  2120     }
  3070     }
  2121   }), (widgetAreas === null || widgetAreas === void 0 ? void 0 : widgetAreas.length) === 0 && Object(external_wp_element_["createElement"])("p", null, Object(external_wp_i18n_["__"])('Your theme does not contain any Widget Areas.')), !selectedWidgetArea && Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
  3071   }), (widgetAreas === null || widgetAreas === void 0 ? void 0 : widgetAreas.length) === 0 && (0,external_wp_element_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Your theme does not contain any Widget Areas.')), !selectedWidgetArea && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
  2122     href: Object(external_wp_url_["addQueryArgs"])('customize.php', {
  3072     href: (0,external_wp_url_namespaceObject.addQueryArgs)('customize.php', {
  2123       'autofocus[panel]': 'widgets',
  3073       'autofocus[panel]': 'widgets',
  2124       return: window.location.pathname
  3074       return: window.location.pathname
  2125     }),
  3075     }),
  2126     isTertiary: true
  3076     variant: "tertiary"
  2127   }, Object(external_wp_i18n_["__"])('Manage with live preview')))));
  3077   }, (0,external_wp_i18n_namespaceObject.__)('Manage with live preview')))));
  2128 }
  3078 }
  2129 
  3079 
  2130 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/sidebar/index.js
  3080 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/sidebar/index.js
  2131 
  3081 
  2132 
  3082 
  2133 /**
  3083 /**
  2134  * External dependencies
  3084  * External dependencies
  2135  */
  3085  */
  2143 
  3093 
  2144 
  3094 
  2145 
  3095 
  2146 
  3096 
  2147 
  3097 
  2148 const SIDEBAR_ACTIVE_BY_DEFAULT = external_wp_element_["Platform"].select({
  3098 const SIDEBAR_ACTIVE_BY_DEFAULT = external_wp_element_namespaceObject.Platform.select({
  2149   web: true,
  3099   web: true,
  2150   native: false
  3100   native: false
  2151 });
  3101 });
  2152 const BLOCK_INSPECTOR_IDENTIFIER = 'edit-widgets/block-inspector'; // Widget areas were one called block areas, so use 'edit-widgets/block-areas'
  3102 const BLOCK_INSPECTOR_IDENTIFIER = 'edit-widgets/block-inspector'; // Widget areas were one called block areas, so use 'edit-widgets/block-areas'
  2153 // for backwards compatibility.
  3103 // for backwards compatibility.
  2158  */
  3108  */
  2159 
  3109 
  2160 
  3110 
  2161 
  3111 
  2162 
  3112 
  2163 function ComplementaryAreaTab({
  3113 function ComplementaryAreaTab(_ref) {
  2164   identifier,
  3114   let {
  2165   label,
  3115     identifier,
  2166   isActive
  3116     label,
  2167 }) {
  3117     isActive
       
  3118   } = _ref;
  2168   const {
  3119   const {
  2169     enableComplementaryArea
  3120     enableComplementaryArea
  2170   } = Object(external_wp_data_["useDispatch"])(build_module["g" /* store */]);
  3121   } = (0,external_wp_data_namespaceObject.useDispatch)(store);
  2171   return Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
  3122   return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
  2172     onClick: () => enableComplementaryArea(store.name, identifier),
  3123     onClick: () => enableComplementaryArea(store_store.name, identifier),
  2173     className: classnames_default()('edit-widgets-sidebar__panel-tab', {
  3124     className: classnames_default()('edit-widgets-sidebar__panel-tab', {
  2174       'is-active': isActive
  3125       'is-active': isActive
  2175     }),
  3126     }),
  2176     "aria-label": isActive ? // translators: %s: sidebar label e.g: "Widget Areas".
  3127     "aria-label": isActive ? // translators: %s: sidebar label e.g: "Widget Areas".
  2177     Object(external_wp_i18n_["sprintf"])(Object(external_wp_i18n_["__"])('%s (selected)'), label) : label,
  3128     (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('%s (selected)'), label) : label,
  2178     "data-label": label
  3129     "data-label": label
  2179   }, label);
  3130   }, label);
  2180 }
  3131 }
  2181 
  3132 
  2182 function Sidebar() {
  3133 function Sidebar() {
  2183   const {
  3134   const {
  2184     enableComplementaryArea
  3135     enableComplementaryArea
  2185   } = Object(external_wp_data_["useDispatch"])(build_module["g" /* store */]);
  3136   } = (0,external_wp_data_namespaceObject.useDispatch)(store);
  2186   const {
  3137   const {
  2187     currentArea,
  3138     currentArea,
  2188     hasSelectedNonAreaBlock,
  3139     hasSelectedNonAreaBlock,
  2189     isGeneralSidebarOpen,
  3140     isGeneralSidebarOpen,
  2190     selectedWidgetAreaBlock
  3141     selectedWidgetAreaBlock
  2191   } = Object(external_wp_data_["useSelect"])(select => {
  3142   } = (0,external_wp_data_namespaceObject.useSelect)(select => {
  2192     const {
  3143     const {
  2193       getSelectedBlock,
  3144       getSelectedBlock,
  2194       getBlock,
  3145       getBlock,
  2195       getBlockParentsByBlockName
  3146       getBlockParentsByBlockName
  2196     } = select(external_wp_blockEditor_["store"]);
  3147     } = select(external_wp_blockEditor_namespaceObject.store);
  2197     const {
  3148     const {
  2198       getActiveComplementaryArea
  3149       getActiveComplementaryArea
  2199     } = select(build_module["g" /* store */]);
  3150     } = select(store);
  2200     const selectedBlock = getSelectedBlock();
  3151     const selectedBlock = getSelectedBlock();
  2201     const activeArea = getActiveComplementaryArea(store.name);
  3152     const activeArea = getActiveComplementaryArea(store_store.name);
  2202     let currentSelection = activeArea;
  3153     let currentSelection = activeArea;
  2203 
  3154 
  2204     if (!currentSelection) {
  3155     if (!currentSelection) {
  2205       if (selectedBlock) {
  3156       if (selectedBlock) {
  2206         currentSelection = BLOCK_INSPECTOR_IDENTIFIER;
  3157         currentSelection = BLOCK_INSPECTOR_IDENTIFIER;
  2226       selectedWidgetAreaBlock: widgetAreaBlock
  3177       selectedWidgetAreaBlock: widgetAreaBlock
  2227     };
  3178     };
  2228   }, []); // currentArea, and isGeneralSidebarOpen are intentionally left out from the dependencies,
  3179   }, []); // currentArea, and isGeneralSidebarOpen are intentionally left out from the dependencies,
  2229   // because we want to run the effect when a block is selected/unselected and not when the sidebar state changes.
  3180   // because we want to run the effect when a block is selected/unselected and not when the sidebar state changes.
  2230 
  3181 
  2231   Object(external_wp_element_["useEffect"])(() => {
  3182   (0,external_wp_element_namespaceObject.useEffect)(() => {
  2232     if (hasSelectedNonAreaBlock && currentArea === WIDGET_AREAS_IDENTIFIER && isGeneralSidebarOpen) {
  3183     if (hasSelectedNonAreaBlock && currentArea === WIDGET_AREAS_IDENTIFIER && isGeneralSidebarOpen) {
  2233       enableComplementaryArea('core/edit-widgets', BLOCK_INSPECTOR_IDENTIFIER);
  3184       enableComplementaryArea('core/edit-widgets', BLOCK_INSPECTOR_IDENTIFIER);
  2234     }
  3185     }
  2235 
  3186 
  2236     if (!hasSelectedNonAreaBlock && currentArea === BLOCK_INSPECTOR_IDENTIFIER && isGeneralSidebarOpen) {
  3187     if (!hasSelectedNonAreaBlock && currentArea === BLOCK_INSPECTOR_IDENTIFIER && isGeneralSidebarOpen) {
  2237       enableComplementaryArea('core/edit-widgets', WIDGET_AREAS_IDENTIFIER);
  3188       enableComplementaryArea('core/edit-widgets', WIDGET_AREAS_IDENTIFIER);
  2238     }
  3189     }
  2239   }, [hasSelectedNonAreaBlock, enableComplementaryArea]);
  3190   }, [hasSelectedNonAreaBlock, enableComplementaryArea]);
  2240   return Object(external_wp_element_["createElement"])(build_module["b" /* ComplementaryArea */], {
  3191   return (0,external_wp_element_namespaceObject.createElement)(complementary_area, {
  2241     className: "edit-widgets-sidebar",
  3192     className: "edit-widgets-sidebar",
  2242     header: Object(external_wp_element_["createElement"])("ul", null, Object(external_wp_element_["createElement"])("li", null, Object(external_wp_element_["createElement"])(ComplementaryAreaTab, {
  3193     header: (0,external_wp_element_namespaceObject.createElement)("ul", null, (0,external_wp_element_namespaceObject.createElement)("li", null, (0,external_wp_element_namespaceObject.createElement)(ComplementaryAreaTab, {
  2243       identifier: WIDGET_AREAS_IDENTIFIER,
  3194       identifier: WIDGET_AREAS_IDENTIFIER,
  2244       label: selectedWidgetAreaBlock ? selectedWidgetAreaBlock.attributes.name : Object(external_wp_i18n_["__"])('Widget Areas'),
  3195       label: selectedWidgetAreaBlock ? selectedWidgetAreaBlock.attributes.name : (0,external_wp_i18n_namespaceObject.__)('Widget Areas'),
  2245       isActive: currentArea === WIDGET_AREAS_IDENTIFIER
  3196       isActive: currentArea === WIDGET_AREAS_IDENTIFIER
  2246     })), Object(external_wp_element_["createElement"])("li", null, Object(external_wp_element_["createElement"])(ComplementaryAreaTab, {
  3197     })), (0,external_wp_element_namespaceObject.createElement)("li", null, (0,external_wp_element_namespaceObject.createElement)(ComplementaryAreaTab, {
  2247       identifier: BLOCK_INSPECTOR_IDENTIFIER,
  3198       identifier: BLOCK_INSPECTOR_IDENTIFIER,
  2248       label: Object(external_wp_i18n_["__"])('Block'),
  3199       label: (0,external_wp_i18n_namespaceObject.__)('Block'),
  2249       isActive: currentArea === BLOCK_INSPECTOR_IDENTIFIER
  3200       isActive: currentArea === BLOCK_INSPECTOR_IDENTIFIER
  2250     }))),
  3201     }))),
  2251     headerClassName: "edit-widgets-sidebar__panel-tabs"
  3202     headerClassName: "edit-widgets-sidebar__panel-tabs"
  2252     /* translators: button label text should, if possible, be under 16 characters. */
  3203     /* translators: button label text should, if possible, be under 16 characters. */
  2253     ,
  3204     ,
  2254     title: Object(external_wp_i18n_["__"])('Settings'),
  3205     title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
  2255     closeLabel: Object(external_wp_i18n_["__"])('Close settings'),
  3206     closeLabel: (0,external_wp_i18n_namespaceObject.__)('Close settings'),
  2256     scope: "core/edit-widgets",
  3207     scope: "core/edit-widgets",
  2257     identifier: currentArea,
  3208     identifier: currentArea,
  2258     icon: cog["a" /* default */],
  3209     icon: library_cog,
  2259     isActiveByDefault: SIDEBAR_ACTIVE_BY_DEFAULT
  3210     isActiveByDefault: SIDEBAR_ACTIVE_BY_DEFAULT
  2260   }, currentArea === WIDGET_AREAS_IDENTIFIER && Object(external_wp_element_["createElement"])(WidgetAreas, {
  3211   }, currentArea === WIDGET_AREAS_IDENTIFIER && (0,external_wp_element_namespaceObject.createElement)(WidgetAreas, {
  2261     selectedWidgetAreaId: selectedWidgetAreaBlock === null || selectedWidgetAreaBlock === void 0 ? void 0 : selectedWidgetAreaBlock.attributes.id
  3212     selectedWidgetAreaId: selectedWidgetAreaBlock === null || selectedWidgetAreaBlock === void 0 ? void 0 : selectedWidgetAreaBlock.attributes.id
  2262   }), currentArea === BLOCK_INSPECTOR_IDENTIFIER && (hasSelectedNonAreaBlock ? Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockInspector"], null) : // Pretend that Widget Areas are part of the UI by not
  3213   }), currentArea === BLOCK_INSPECTOR_IDENTIFIER && (hasSelectedNonAreaBlock ? (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockInspector, null) : // Pretend that Widget Areas are part of the UI by not
  2263   // showing the Block Inspector when one is selected.
  3214   // showing the Block Inspector when one is selected.
  2264   Object(external_wp_element_["createElement"])("span", {
  3215   (0,external_wp_element_namespaceObject.createElement)("span", {
  2265     className: "block-editor-block-inspector__no-blocks"
  3216     className: "block-editor-block-inspector__no-blocks"
  2266   }, Object(external_wp_i18n_["__"])('No block selected.'))));
  3217   }, (0,external_wp_i18n_namespaceObject.__)('No block selected.'))));
  2267 }
  3218 }
  2268 
  3219 
  2269 // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js
  3220 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js
  2270 var library_close = __webpack_require__("w95h");
  3221 
  2271 
  3222 
  2272 // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js
  3223 /**
  2273 var plus = __webpack_require__("Q4Sy");
  3224  * WordPress dependencies
  2274 
  3225  */
  2275 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/save-button/index.js
  3226 
       
  3227 const plus = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
       
  3228   xmlns: "http://www.w3.org/2000/svg",
       
  3229   viewBox: "0 0 24 24"
       
  3230 }, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
       
  3231   d: "M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"
       
  3232 }));
       
  3233 /* harmony default export */ var library_plus = (plus);
       
  3234 
       
  3235 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/list-view.js
       
  3236 
       
  3237 
       
  3238 /**
       
  3239  * WordPress dependencies
       
  3240  */
       
  3241 
       
  3242 const listView = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
       
  3243   viewBox: "0 0 24 24",
       
  3244   xmlns: "http://www.w3.org/2000/svg"
       
  3245 }, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
       
  3246   d: "M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"
       
  3247 }));
       
  3248 /* harmony default export */ var list_view = (listView);
       
  3249 
       
  3250 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/save-button/index.js
  2276 
  3251 
  2277 
  3252 
  2278 /**
  3253 /**
  2279  * WordPress dependencies
  3254  * WordPress dependencies
  2280  */
  3255  */
  2289 
  3264 
  2290 function SaveButton() {
  3265 function SaveButton() {
  2291   const {
  3266   const {
  2292     hasEditedWidgetAreaIds,
  3267     hasEditedWidgetAreaIds,
  2293     isSaving
  3268     isSaving
  2294   } = Object(external_wp_data_["useSelect"])(select => {
  3269   } = (0,external_wp_data_namespaceObject.useSelect)(select => {
  2295     var _getEditedWidgetAreas;
  3270     var _getEditedWidgetAreas;
  2296 
  3271 
  2297     const {
  3272     const {
  2298       getEditedWidgetAreas,
  3273       getEditedWidgetAreas,
  2299       isSavingWidgetAreas
  3274       isSavingWidgetAreas
  2300     } = select(store);
  3275     } = select(store_store);
  2301     return {
  3276     return {
  2302       hasEditedWidgetAreaIds: ((_getEditedWidgetAreas = getEditedWidgetAreas()) === null || _getEditedWidgetAreas === void 0 ? void 0 : _getEditedWidgetAreas.length) > 0,
  3277       hasEditedWidgetAreaIds: ((_getEditedWidgetAreas = getEditedWidgetAreas()) === null || _getEditedWidgetAreas === void 0 ? void 0 : _getEditedWidgetAreas.length) > 0,
  2303       isSaving: isSavingWidgetAreas()
  3278       isSaving: isSavingWidgetAreas()
  2304     };
  3279     };
  2305   }, []);
  3280   }, []);
  2306   const {
  3281   const {
  2307     saveEditedWidgetAreas
  3282     saveEditedWidgetAreas
  2308   } = Object(external_wp_data_["useDispatch"])(store);
  3283   } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
  2309   return Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
  3284   return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
  2310     isPrimary: true,
  3285     variant: "primary",
  2311     isBusy: isSaving,
  3286     isBusy: isSaving,
  2312     "aria-disabled": isSaving,
  3287     "aria-disabled": isSaving,
  2313     onClick: isSaving ? undefined : saveEditedWidgetAreas,
  3288     onClick: isSaving ? undefined : saveEditedWidgetAreas,
  2314     disabled: !hasEditedWidgetAreaIds
  3289     disabled: !hasEditedWidgetAreaIds
  2315   }, isSaving ? Object(external_wp_i18n_["__"])('Saving…') : Object(external_wp_i18n_["__"])('Update'));
  3290   }, isSaving ? (0,external_wp_i18n_namespaceObject.__)('Saving…') : (0,external_wp_i18n_namespaceObject.__)('Update'));
  2316 }
  3291 }
  2317 
  3292 
  2318 /* harmony default export */ var save_button = (SaveButton);
  3293 /* harmony default export */ var save_button = (SaveButton);
  2319 
  3294 
  2320 // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/undo.js
  3295 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/undo.js
  2321 var library_undo = __webpack_require__("Ntru");
  3296 
  2322 
  3297 
  2323 // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/redo.js
  3298 /**
  2324 var library_redo = __webpack_require__("K2cm");
  3299  * WordPress dependencies
  2325 
  3300  */
  2326 // EXTERNAL MODULE: external ["wp","keycodes"]
  3301 
  2327 var external_wp_keycodes_ = __webpack_require__("RxS6");
  3302 const undo = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
  2328 
  3303   xmlns: "http://www.w3.org/2000/svg",
  2329 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/header/undo-redo/undo.js
  3304   viewBox: "0 0 24 24"
       
  3305 }, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
       
  3306   d: "M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"
       
  3307 }));
       
  3308 /* harmony default export */ var library_undo = (undo);
       
  3309 
       
  3310 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/redo.js
       
  3311 
       
  3312 
       
  3313 /**
       
  3314  * WordPress dependencies
       
  3315  */
       
  3316 
       
  3317 const redo = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
       
  3318   xmlns: "http://www.w3.org/2000/svg",
       
  3319   viewBox: "0 0 24 24"
       
  3320 }, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
       
  3321   d: "M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"
       
  3322 }));
       
  3323 /* harmony default export */ var library_redo = (redo);
       
  3324 
       
  3325 ;// CONCATENATED MODULE: external ["wp","keycodes"]
       
  3326 var external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
       
  3327 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/header/undo-redo/undo.js
  2330 
  3328 
  2331 
  3329 
  2332 /**
  3330 /**
  2333  * WordPress dependencies
  3331  * WordPress dependencies
  2334  */
  3332  */
  2337 
  3335 
  2338 
  3336 
  2339 
  3337 
  2340 
  3338 
  2341 function UndoButton() {
  3339 function UndoButton() {
  2342   const hasUndo = Object(external_wp_data_["useSelect"])(select => select(external_wp_coreData_["store"]).hasUndo());
  3340   const hasUndo = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).hasUndo(), []);
  2343   const {
  3341   const {
  2344     undo
  3342     undo
  2345   } = Object(external_wp_data_["useDispatch"])(external_wp_coreData_["store"]);
  3343   } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
  2346   return Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarButton"], {
  3344   return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
  2347     icon: !Object(external_wp_i18n_["isRTL"])() ? library_undo["a" /* default */] : library_redo["a" /* default */],
  3345     icon: !(0,external_wp_i18n_namespaceObject.isRTL)() ? library_undo : library_redo,
  2348     label: Object(external_wp_i18n_["__"])('Undo'),
  3346     label: (0,external_wp_i18n_namespaceObject.__)('Undo'),
  2349     shortcut: external_wp_keycodes_["displayShortcut"].primary('z') // If there are no undo levels we don't want to actually disable this
  3347     shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary('z') // If there are no undo levels we don't want to actually disable this
  2350     // button, because it will remove focus for keyboard users.
  3348     // button, because it will remove focus for keyboard users.
  2351     // See: https://github.com/WordPress/gutenberg/issues/3486
  3349     // See: https://github.com/WordPress/gutenberg/issues/3486
  2352     ,
  3350     ,
  2353     "aria-disabled": !hasUndo,
  3351     "aria-disabled": !hasUndo,
  2354     onClick: hasUndo ? undo : undefined
  3352     onClick: hasUndo ? undo : undefined
  2355   });
  3353   });
  2356 }
  3354 }
  2357 
  3355 
  2358 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/header/undo-redo/redo.js
  3356 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/header/undo-redo/redo.js
  2359 
  3357 
  2360 
  3358 
  2361 /**
  3359 /**
  2362  * WordPress dependencies
  3360  * WordPress dependencies
  2363  */
  3361  */
  2366 
  3364 
  2367 
  3365 
  2368 
  3366 
  2369 
  3367 
  2370 function RedoButton() {
  3368 function RedoButton() {
  2371   const hasRedo = Object(external_wp_data_["useSelect"])(select => select(external_wp_coreData_["store"]).hasRedo());
  3369   const hasRedo = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).hasRedo(), []);
  2372   const {
  3370   const {
  2373     redo
  3371     redo
  2374   } = Object(external_wp_data_["useDispatch"])(external_wp_coreData_["store"]);
  3372   } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
  2375   return Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarButton"], {
  3373   return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
  2376     icon: !Object(external_wp_i18n_["isRTL"])() ? library_redo["a" /* default */] : library_undo["a" /* default */],
  3374     icon: !(0,external_wp_i18n_namespaceObject.isRTL)() ? library_redo : library_undo,
  2377     label: Object(external_wp_i18n_["__"])('Redo'),
  3375     label: (0,external_wp_i18n_namespaceObject.__)('Redo'),
  2378     shortcut: external_wp_keycodes_["displayShortcut"].primaryShift('z') // If there are no undo levels we don't want to actually disable this
  3376     shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primaryShift('z') // If there are no undo levels we don't want to actually disable this
  2379     // button, because it will remove focus for keyboard users.
  3377     // button, because it will remove focus for keyboard users.
  2380     // See: https://github.com/WordPress/gutenberg/issues/3486
  3378     // See: https://github.com/WordPress/gutenberg/issues/3486
  2381     ,
  3379     ,
  2382     "aria-disabled": !hasRedo,
  3380     "aria-disabled": !hasRedo,
  2383     onClick: hasRedo ? redo : undefined
  3381     onClick: hasRedo ? redo : undefined
  2384   });
  3382   });
  2385 }
  3383 }
  2386 
  3384 
  2387 // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js
  3385 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js
  2388 var more_vertical = __webpack_require__("VKE3");
  3386 
  2389 
  3387 
  2390 // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js
  3388 /**
  2391 var external = __webpack_require__("K+tz");
  3389  * WordPress dependencies
  2392 
  3390  */
  2393 // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js
  3391 
  2394 var check = __webpack_require__("RMJe");
  3392 const external = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
  2395 
  3393   xmlns: "http://www.w3.org/2000/svg",
  2396 // EXTERNAL MODULE: external ["wp","a11y"]
  3394   viewBox: "0 0 24 24"
  2397 var external_wp_a11y_ = __webpack_require__("gdqT");
  3395 }, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
  2398 
  3396   d: "M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"
  2399 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/more-menu/feature-toggle.js
  3397 }));
  2400 
  3398 /* harmony default export */ var library_external = (external);
  2401 
  3399 
  2402 /**
  3400 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/keyboard-shortcut-help-modal/config.js
  2403  * WordPress dependencies
       
  2404  */
       
  2405 
       
  2406 
       
  2407 
       
  2408 
       
  2409 
       
  2410 /**
       
  2411  * Internal dependencies
       
  2412  */
       
  2413 
       
  2414 
       
  2415 function FeatureToggle({
       
  2416   label,
       
  2417   info,
       
  2418   messageActivated,
       
  2419   messageDeactivated,
       
  2420   shortcut,
       
  2421   feature
       
  2422 }) {
       
  2423   const isActive = Object(external_wp_data_["useSelect"])(select => select(store).__unstableIsFeatureActive(feature), [feature]);
       
  2424   const {
       
  2425     __unstableToggleFeature: toggleFeature
       
  2426   } = Object(external_wp_data_["useDispatch"])(store);
       
  2427 
       
  2428   const speakMessage = () => {
       
  2429     if (isActive) {
       
  2430       Object(external_wp_a11y_["speak"])(messageDeactivated || Object(external_wp_i18n_["__"])('Feature deactivated'));
       
  2431     } else {
       
  2432       Object(external_wp_a11y_["speak"])(messageActivated || Object(external_wp_i18n_["__"])('Feature activated'));
       
  2433     }
       
  2434   };
       
  2435 
       
  2436   return Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
       
  2437     icon: isActive && check["a" /* default */],
       
  2438     isSelected: isActive,
       
  2439     onClick: () => {
       
  2440       toggleFeature(feature);
       
  2441       speakMessage();
       
  2442     },
       
  2443     role: "menuitemcheckbox",
       
  2444     info: info,
       
  2445     shortcut: shortcut
       
  2446   }, label);
       
  2447 }
       
  2448 
       
  2449 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/keyboard-shortcut-help-modal/config.js
       
  2450 /**
  3401 /**
  2451  * WordPress dependencies
  3402  * WordPress dependencies
  2452  */
  3403  */
  2453 
  3404 
  2454 const textFormattingShortcuts = [{
  3405 const textFormattingShortcuts = [{
  2455   keyCombination: {
  3406   keyCombination: {
  2456     modifier: 'primary',
  3407     modifier: 'primary',
  2457     character: 'b'
  3408     character: 'b'
  2458   },
  3409   },
  2459   description: Object(external_wp_i18n_["__"])('Make the selected text bold.')
  3410   description: (0,external_wp_i18n_namespaceObject.__)('Make the selected text bold.')
  2460 }, {
  3411 }, {
  2461   keyCombination: {
  3412   keyCombination: {
  2462     modifier: 'primary',
  3413     modifier: 'primary',
  2463     character: 'i'
  3414     character: 'i'
  2464   },
  3415   },
  2465   description: Object(external_wp_i18n_["__"])('Make the selected text italic.')
  3416   description: (0,external_wp_i18n_namespaceObject.__)('Make the selected text italic.')
  2466 }, {
  3417 }, {
  2467   keyCombination: {
  3418   keyCombination: {
  2468     modifier: 'primary',
  3419     modifier: 'primary',
  2469     character: 'k'
  3420     character: 'k'
  2470   },
  3421   },
  2471   description: Object(external_wp_i18n_["__"])('Convert the selected text into a link.')
  3422   description: (0,external_wp_i18n_namespaceObject.__)('Convert the selected text into a link.')
  2472 }, {
  3423 }, {
  2473   keyCombination: {
  3424   keyCombination: {
  2474     modifier: 'primaryShift',
  3425     modifier: 'primaryShift',
  2475     character: 'k'
  3426     character: 'k'
  2476   },
  3427   },
  2477   description: Object(external_wp_i18n_["__"])('Remove a link.')
  3428   description: (0,external_wp_i18n_namespaceObject.__)('Remove a link.')
  2478 }, {
  3429 }, {
  2479   keyCombination: {
  3430   keyCombination: {
  2480     modifier: 'primary',
  3431     modifier: 'primary',
  2481     character: 'u'
  3432     character: 'u'
  2482   },
  3433   },
  2483   description: Object(external_wp_i18n_["__"])('Underline the selected text.')
  3434   description: (0,external_wp_i18n_namespaceObject.__)('Underline the selected text.')
  2484 }];
  3435 }];
  2485 
  3436 
  2486 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/keyboard-shortcut-help-modal/shortcut.js
  3437 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/keyboard-shortcut-help-modal/shortcut.js
  2487 
  3438 
  2488 
  3439 
  2489 /**
  3440 /**
  2490  * External dependencies
  3441  * External dependencies
  2491  */
  3442  */
  2495  */
  3446  */
  2496 
  3447 
  2497 
  3448 
  2498 
  3449 
  2499 
  3450 
  2500 function KeyCombination({
  3451 function KeyCombination(_ref) {
  2501   keyCombination,
  3452   let {
  2502   forceAriaLabel
  3453     keyCombination,
  2503 }) {
  3454     forceAriaLabel
  2504   const shortcut = keyCombination.modifier ? external_wp_keycodes_["displayShortcutList"][keyCombination.modifier](keyCombination.character) : keyCombination.character;
  3455   } = _ref;
  2505   const ariaLabel = keyCombination.modifier ? external_wp_keycodes_["shortcutAriaLabel"][keyCombination.modifier](keyCombination.character) : keyCombination.character;
  3456   const shortcut = keyCombination.modifier ? external_wp_keycodes_namespaceObject.displayShortcutList[keyCombination.modifier](keyCombination.character) : keyCombination.character;
  2506   return Object(external_wp_element_["createElement"])("kbd", {
  3457   const ariaLabel = keyCombination.modifier ? external_wp_keycodes_namespaceObject.shortcutAriaLabel[keyCombination.modifier](keyCombination.character) : keyCombination.character;
       
  3458   return (0,external_wp_element_namespaceObject.createElement)("kbd", {
  2507     className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination",
  3459     className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination",
  2508     "aria-label": forceAriaLabel || ariaLabel
  3460     "aria-label": forceAriaLabel || ariaLabel
  2509   }, Object(external_lodash_["castArray"])(shortcut).map((character, index) => {
  3461   }, (0,external_lodash_namespaceObject.castArray)(shortcut).map((character, index) => {
  2510     if (character === '+') {
  3462     if (character === '+') {
  2511       return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], {
  3463       return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, {
  2512         key: index
  3464         key: index
  2513       }, character);
  3465       }, character);
  2514     }
  3466     }
  2515 
  3467 
  2516     return Object(external_wp_element_["createElement"])("kbd", {
  3468     return (0,external_wp_element_namespaceObject.createElement)("kbd", {
  2517       key: index,
  3469       key: index,
  2518       className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-key"
  3470       className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-key"
  2519     }, character);
  3471     }, character);
  2520   }));
  3472   }));
  2521 }
  3473 }
  2522 
  3474 
  2523 function Shortcut({
  3475 function Shortcut(_ref2) {
  2524   description,
  3476   let {
  2525   keyCombination,
  3477     description,
  2526   aliases = [],
  3478     keyCombination,
  2527   ariaLabel
  3479     aliases = [],
  2528 }) {
  3480     ariaLabel
  2529   return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("div", {
  3481   } = _ref2;
       
  3482   return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)("div", {
  2530     className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-description"
  3483     className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-description"
  2531   }, description), Object(external_wp_element_["createElement"])("div", {
  3484   }, description), (0,external_wp_element_namespaceObject.createElement)("div", {
  2532     className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-term"
  3485     className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-term"
  2533   }, Object(external_wp_element_["createElement"])(KeyCombination, {
  3486   }, (0,external_wp_element_namespaceObject.createElement)(KeyCombination, {
  2534     keyCombination: keyCombination,
  3487     keyCombination: keyCombination,
  2535     forceAriaLabel: ariaLabel
  3488     forceAriaLabel: ariaLabel
  2536   }), aliases.map((alias, index) => Object(external_wp_element_["createElement"])(KeyCombination, {
  3489   }), aliases.map((alias, index) => (0,external_wp_element_namespaceObject.createElement)(KeyCombination, {
  2537     keyCombination: alias,
  3490     keyCombination: alias,
  2538     forceAriaLabel: ariaLabel,
  3491     forceAriaLabel: ariaLabel,
  2539     key: index
  3492     key: index
  2540   }))));
  3493   }))));
  2541 }
  3494 }
  2542 
  3495 
  2543 /* harmony default export */ var keyboard_shortcut_help_modal_shortcut = (Shortcut);
  3496 /* harmony default export */ var keyboard_shortcut_help_modal_shortcut = (Shortcut);
  2544 
  3497 
  2545 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js
  3498 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js
  2546 
  3499 
  2547 
  3500 
  2548 /**
  3501 /**
  2549  * WordPress dependencies
  3502  * WordPress dependencies
  2550  */
  3503  */
  2554  * Internal dependencies
  3507  * Internal dependencies
  2555  */
  3508  */
  2556 
  3509 
  2557 
  3510 
  2558 
  3511 
  2559 function DynamicShortcut({
  3512 function DynamicShortcut(_ref) {
  2560   name
  3513   let {
  2561 }) {
  3514     name
       
  3515   } = _ref;
  2562   const {
  3516   const {
  2563     keyCombination,
  3517     keyCombination,
  2564     description,
  3518     description,
  2565     aliases
  3519     aliases
  2566   } = Object(external_wp_data_["useSelect"])(select => {
  3520   } = (0,external_wp_data_namespaceObject.useSelect)(select => {
  2567     const {
  3521     const {
  2568       getShortcutKeyCombination,
  3522       getShortcutKeyCombination,
  2569       getShortcutDescription,
  3523       getShortcutDescription,
  2570       getShortcutAliases
  3524       getShortcutAliases
  2571     } = select(external_wp_keyboardShortcuts_["store"]);
  3525     } = select(external_wp_keyboardShortcuts_namespaceObject.store);
  2572     return {
  3526     return {
  2573       keyCombination: getShortcutKeyCombination(name),
  3527       keyCombination: getShortcutKeyCombination(name),
  2574       aliases: getShortcutAliases(name),
  3528       aliases: getShortcutAliases(name),
  2575       description: getShortcutDescription(name)
  3529       description: getShortcutDescription(name)
  2576     };
  3530     };
  2577   });
  3531   }, [name]);
  2578 
  3532 
  2579   if (!keyCombination) {
  3533   if (!keyCombination) {
  2580     return null;
  3534     return null;
  2581   }
  3535   }
  2582 
  3536 
  2583   return Object(external_wp_element_["createElement"])(keyboard_shortcut_help_modal_shortcut, {
  3537   return (0,external_wp_element_namespaceObject.createElement)(keyboard_shortcut_help_modal_shortcut, {
  2584     keyCombination: keyCombination,
  3538     keyCombination: keyCombination,
  2585     description: description,
  3539     description: description,
  2586     aliases: aliases
  3540     aliases: aliases
  2587   });
  3541   });
  2588 }
  3542 }
  2589 
  3543 
  2590 /* harmony default export */ var dynamic_shortcut = (DynamicShortcut);
  3544 /* harmony default export */ var dynamic_shortcut = (DynamicShortcut);
  2591 
  3545 
  2592 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/keyboard-shortcut-help-modal/index.js
  3546 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/keyboard-shortcut-help-modal/index.js
  2593 
  3547 
  2594 
  3548 
  2595 /**
  3549 /**
  2596  * External dependencies
  3550  * External dependencies
  2597  */
  3551  */
  2611 
  3565 
  2612 
  3566 
  2613 
  3567 
  2614 
  3568 
  2615 
  3569 
  2616 const ShortcutList = ({
  3570 const ShortcutList = _ref => {
  2617   shortcuts
  3571   let {
  2618 }) =>
  3572     shortcuts
  2619 /*
  3573   } = _ref;
  2620  * Disable reason: The `list` ARIA role is redundant but
  3574   return (
  2621  * Safari+VoiceOver won't announce the list otherwise.
  3575     /*
  2622  */
  3576      * Disable reason: The `list` ARIA role is redundant but
  2623 
  3577      * Safari+VoiceOver won't announce the list otherwise.
  2624 /* eslint-disable jsx-a11y/no-redundant-roles */
  3578      */
  2625 Object(external_wp_element_["createElement"])("ul", {
  3579 
  2626   className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-list",
  3580     /* eslint-disable jsx-a11y/no-redundant-roles */
  2627   role: "list"
  3581     (0,external_wp_element_namespaceObject.createElement)("ul", {
  2628 }, shortcuts.map((shortcut, index) => Object(external_wp_element_["createElement"])("li", {
  3582       className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-list",
  2629   className: "edit-widgets-keyboard-shortcut-help-modal__shortcut",
  3583       role: "list"
  2630   key: index
  3584     }, shortcuts.map((shortcut, index) => (0,external_wp_element_namespaceObject.createElement)("li", {
  2631 }, Object(external_lodash_["isString"])(shortcut) ? Object(external_wp_element_["createElement"])(dynamic_shortcut, {
  3585       className: "edit-widgets-keyboard-shortcut-help-modal__shortcut",
  2632   name: shortcut
  3586       key: index
  2633 }) : Object(external_wp_element_["createElement"])(keyboard_shortcut_help_modal_shortcut, shortcut))))
  3587     }, (0,external_lodash_namespaceObject.isString)(shortcut) ? (0,external_wp_element_namespaceObject.createElement)(dynamic_shortcut, {
  2634 /* eslint-enable jsx-a11y/no-redundant-roles */
  3588       name: shortcut
  2635 ;
  3589     }) : (0,external_wp_element_namespaceObject.createElement)(keyboard_shortcut_help_modal_shortcut, shortcut))))
  2636 
  3590     /* eslint-enable jsx-a11y/no-redundant-roles */
  2637 const ShortcutSection = ({
  3591 
  2638   title,
  3592   );
  2639   shortcuts,
  3593 };
  2640   className
  3594 
  2641 }) => Object(external_wp_element_["createElement"])("section", {
  3595 const ShortcutSection = _ref2 => {
  2642   className: classnames_default()('edit-widgets-keyboard-shortcut-help-modal__section', className)
  3596   let {
  2643 }, !!title && Object(external_wp_element_["createElement"])("h2", {
  3597     title,
  2644   className: "edit-widgets-keyboard-shortcut-help-modal__section-title"
  3598     shortcuts,
  2645 }, title), Object(external_wp_element_["createElement"])(ShortcutList, {
  3599     className
  2646   shortcuts: shortcuts
  3600   } = _ref2;
  2647 }));
  3601   return (0,external_wp_element_namespaceObject.createElement)("section", {
  2648 
  3602     className: classnames_default()('edit-widgets-keyboard-shortcut-help-modal__section', className)
  2649 const ShortcutCategorySection = ({
  3603   }, !!title && (0,external_wp_element_namespaceObject.createElement)("h2", {
  2650   title,
  3604     className: "edit-widgets-keyboard-shortcut-help-modal__section-title"
  2651   categoryName,
  3605   }, title), (0,external_wp_element_namespaceObject.createElement)(ShortcutList, {
  2652   additionalShortcuts = []
  3606     shortcuts: shortcuts
  2653 }) => {
  3607   }));
  2654   const categoryShortcuts = Object(external_wp_data_["useSelect"])(select => {
  3608 };
  2655     return select(external_wp_keyboardShortcuts_["store"]).getCategoryShortcuts(categoryName);
  3609 
       
  3610 const ShortcutCategorySection = _ref3 => {
       
  3611   let {
       
  3612     title,
       
  3613     categoryName,
       
  3614     additionalShortcuts = []
       
  3615   } = _ref3;
       
  3616   const categoryShortcuts = (0,external_wp_data_namespaceObject.useSelect)(select => {
       
  3617     return select(external_wp_keyboardShortcuts_namespaceObject.store).getCategoryShortcuts(categoryName);
  2656   }, [categoryName]);
  3618   }, [categoryName]);
  2657   return Object(external_wp_element_["createElement"])(ShortcutSection, {
  3619   return (0,external_wp_element_namespaceObject.createElement)(ShortcutSection, {
  2658     title: title,
  3620     title: title,
  2659     shortcuts: categoryShortcuts.concat(additionalShortcuts)
  3621     shortcuts: categoryShortcuts.concat(additionalShortcuts)
  2660   });
  3622   });
  2661 };
  3623 };
  2662 
  3624 
  2663 function KeyboardShortcutHelpModal({
  3625 function KeyboardShortcutHelpModal(_ref4) {
  2664   isModalActive,
  3626   let {
  2665   toggleModal
  3627     isModalActive,
  2666 }) {
  3628     toggleModal
  2667   Object(external_wp_keyboardShortcuts_["useShortcut"])('core/edit-widgets/keyboard-shortcuts', toggleModal, {
  3629   } = _ref4;
       
  3630   (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-widgets/keyboard-shortcuts', toggleModal, {
  2668     bindGlobal: true
  3631     bindGlobal: true
  2669   });
  3632   });
  2670 
  3633 
  2671   if (!isModalActive) {
  3634   if (!isModalActive) {
  2672     return null;
  3635     return null;
  2673   }
  3636   }
  2674 
  3637 
  2675   return Object(external_wp_element_["createElement"])(external_wp_components_["Modal"], {
  3638   return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, {
  2676     className: "edit-widgets-keyboard-shortcut-help-modal",
  3639     className: "edit-widgets-keyboard-shortcut-help-modal",
  2677     title: Object(external_wp_i18n_["__"])('Keyboard shortcuts'),
  3640     title: (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts'),
  2678     closeLabel: Object(external_wp_i18n_["__"])('Close'),
  3641     closeLabel: (0,external_wp_i18n_namespaceObject.__)('Close'),
  2679     onRequestClose: toggleModal
  3642     onRequestClose: toggleModal
  2680   }, Object(external_wp_element_["createElement"])(ShortcutSection, {
  3643   }, (0,external_wp_element_namespaceObject.createElement)(ShortcutSection, {
  2681     className: "edit-widgets-keyboard-shortcut-help-modal__main-shortcuts",
  3644     className: "edit-widgets-keyboard-shortcut-help-modal__main-shortcuts",
  2682     shortcuts: ['core/edit-widgets/keyboard-shortcuts']
  3645     shortcuts: ['core/edit-widgets/keyboard-shortcuts']
  2683   }), Object(external_wp_element_["createElement"])(ShortcutCategorySection, {
  3646   }), (0,external_wp_element_namespaceObject.createElement)(ShortcutCategorySection, {
  2684     title: Object(external_wp_i18n_["__"])('Global shortcuts'),
  3647     title: (0,external_wp_i18n_namespaceObject.__)('Global shortcuts'),
  2685     categoryName: "global"
  3648     categoryName: "global"
  2686   }), Object(external_wp_element_["createElement"])(ShortcutCategorySection, {
  3649   }), (0,external_wp_element_namespaceObject.createElement)(ShortcutCategorySection, {
  2687     title: Object(external_wp_i18n_["__"])('Selection shortcuts'),
  3650     title: (0,external_wp_i18n_namespaceObject.__)('Selection shortcuts'),
  2688     categoryName: "selection"
  3651     categoryName: "selection"
  2689   }), Object(external_wp_element_["createElement"])(ShortcutCategorySection, {
  3652   }), (0,external_wp_element_namespaceObject.createElement)(ShortcutCategorySection, {
  2690     title: Object(external_wp_i18n_["__"])('Block shortcuts'),
  3653     title: (0,external_wp_i18n_namespaceObject.__)('Block shortcuts'),
  2691     categoryName: "block",
  3654     categoryName: "block",
  2692     additionalShortcuts: [{
  3655     additionalShortcuts: [{
  2693       keyCombination: {
  3656       keyCombination: {
  2694         character: '/'
  3657         character: '/'
  2695       },
  3658       },
  2696       description: Object(external_wp_i18n_["__"])('Change the block type after adding a new paragraph.'),
  3659       description: (0,external_wp_i18n_namespaceObject.__)('Change the block type after adding a new paragraph.'),
  2697 
  3660 
  2698       /* translators: The forward-slash character. e.g. '/'. */
  3661       /* translators: The forward-slash character. e.g. '/'. */
  2699       ariaLabel: Object(external_wp_i18n_["__"])('Forward-slash')
  3662       ariaLabel: (0,external_wp_i18n_namespaceObject.__)('Forward-slash')
  2700     }]
  3663     }]
  2701   }), Object(external_wp_element_["createElement"])(ShortcutSection, {
  3664   }), (0,external_wp_element_namespaceObject.createElement)(ShortcutSection, {
  2702     title: Object(external_wp_i18n_["__"])('Text formatting'),
  3665     title: (0,external_wp_i18n_namespaceObject.__)('Text formatting'),
  2703     shortcuts: textFormattingShortcuts
  3666     shortcuts: textFormattingShortcuts
  2704   }));
  3667   }));
  2705 }
  3668 }
  2706 
  3669 
  2707 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/more-menu/index.js
  3670 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/more-menu/tools-more-menu-group.js
  2708 
  3671 
  2709 
  3672 
  2710 /**
  3673 /**
  2711  * WordPress dependencies
  3674  * External dependencies
  2712  */
  3675  */
       
  3676 
       
  3677 /**
       
  3678  * WordPress dependencies
       
  3679  */
       
  3680 
       
  3681 
       
  3682 const {
       
  3683   Fill: ToolsMoreMenuGroup,
       
  3684   Slot
       
  3685 } = (0,external_wp_components_namespaceObject.createSlotFill)('EditWidgetsToolsMoreMenuGroup');
       
  3686 
       
  3687 ToolsMoreMenuGroup.Slot = _ref => {
       
  3688   let {
       
  3689     fillProps
       
  3690   } = _ref;
       
  3691   return (0,external_wp_element_namespaceObject.createElement)(Slot, {
       
  3692     fillProps: fillProps
       
  3693   }, fills => !(0,external_lodash_namespaceObject.isEmpty)(fills) && fills);
       
  3694 };
       
  3695 
       
  3696 /* harmony default export */ var tools_more_menu_group = (ToolsMoreMenuGroup);
       
  3697 
       
  3698 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/more-menu/index.js
       
  3699 
       
  3700 
       
  3701 /**
       
  3702  * WordPress dependencies
       
  3703  */
       
  3704 
       
  3705 
  2713 
  3706 
  2714 
  3707 
  2715 
  3708 
  2716 
  3709 
  2717 
  3710 
  2721  * Internal dependencies
  3714  * Internal dependencies
  2722  */
  3715  */
  2723 
  3716 
  2724 
  3717 
  2725 
  3718 
  2726 const POPOVER_PROPS = {
       
  2727   className: 'edit-widgets-more-menu__content',
       
  2728   position: 'bottom left'
       
  2729 };
       
  2730 const TOGGLE_PROPS = {
       
  2731   tooltipPosition: 'bottom'
       
  2732 };
       
  2733 function MoreMenu() {
  3719 function MoreMenu() {
  2734   const [isKeyboardShortcutsModalActive, setIsKeyboardShortcutsModalVisible] = Object(external_wp_element_["useState"])(false);
  3720   const [isKeyboardShortcutsModalActive, setIsKeyboardShortcutsModalVisible] = (0,external_wp_element_namespaceObject.useState)(false);
  2735 
  3721 
  2736   const toggleKeyboardShortcutsModal = () => setIsKeyboardShortcutsModalVisible(!isKeyboardShortcutsModalActive);
  3722   const toggleKeyboardShortcutsModal = () => setIsKeyboardShortcutsModalVisible(!isKeyboardShortcutsModalActive);
  2737 
  3723 
  2738   Object(external_wp_keyboardShortcuts_["useShortcut"])('core/edit-widgets/keyboard-shortcuts', toggleKeyboardShortcutsModal, {
  3724   (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-widgets/keyboard-shortcuts', toggleKeyboardShortcutsModal);
  2739     bindGlobal: true
  3725   const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
  2740   });
  3726   return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(MoreMenuDropdown, null, onClose => (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, isLargeViewport && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, {
  2741   const isLargeViewport = Object(external_wp_compose_["useViewportMatch"])('medium');
  3727     label: (0,external_wp_i18n_namespaceObject._x)('View', 'noun')
  2742   return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_components_["DropdownMenu"], {
  3728   }, (0,external_wp_element_namespaceObject.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
  2743     className: "edit-widgets-more-menu",
  3729     scope: "core/edit-widgets",
  2744     icon: more_vertical["a" /* default */]
  3730     name: "fixedToolbar",
  2745     /* translators: button label text should, if possible, be under 16 characters. */
  3731     label: (0,external_wp_i18n_namespaceObject.__)('Top toolbar'),
  2746     ,
  3732     info: (0,external_wp_i18n_namespaceObject.__)('Access all block and document tools in a single place'),
  2747     label: Object(external_wp_i18n_["__"])('Options'),
  3733     messageActivated: (0,external_wp_i18n_namespaceObject.__)('Top toolbar activated'),
  2748     popoverProps: POPOVER_PROPS,
  3734     messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Top toolbar deactivated')
  2749     toggleProps: TOGGLE_PROPS
  3735   })), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, {
  2750   }, () => Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, isLargeViewport && Object(external_wp_element_["createElement"])(external_wp_components_["MenuGroup"], {
  3736     label: (0,external_wp_i18n_namespaceObject.__)('Tools')
  2751     label: Object(external_wp_i18n_["_x"])('View', 'noun')
  3737   }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
  2752   }, Object(external_wp_element_["createElement"])(FeatureToggle, {
       
  2753     feature: "fixedToolbar",
       
  2754     label: Object(external_wp_i18n_["__"])('Top toolbar'),
       
  2755     info: Object(external_wp_i18n_["__"])('Access all block and document tools in a single place'),
       
  2756     messageActivated: Object(external_wp_i18n_["__"])('Top toolbar activated'),
       
  2757     messageDeactivated: Object(external_wp_i18n_["__"])('Top toolbar deactivated')
       
  2758   })), Object(external_wp_element_["createElement"])(external_wp_components_["MenuGroup"], {
       
  2759     label: Object(external_wp_i18n_["__"])('Tools')
       
  2760   }, Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
       
  2761     onClick: () => {
  3738     onClick: () => {
  2762       setIsKeyboardShortcutsModalVisible(true);
  3739       setIsKeyboardShortcutsModalVisible(true);
  2763     },
  3740     },
  2764     shortcut: external_wp_keycodes_["displayShortcut"].access('h')
  3741     shortcut: external_wp_keycodes_namespaceObject.displayShortcut.access('h')
  2765   }, Object(external_wp_i18n_["__"])('Keyboard shortcuts')), Object(external_wp_element_["createElement"])(FeatureToggle, {
  3742   }, (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts')), (0,external_wp_element_namespaceObject.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
  2766     feature: "welcomeGuide",
  3743     scope: "core/edit-widgets",
  2767     label: Object(external_wp_i18n_["__"])('Welcome Guide')
  3744     name: "welcomeGuide",
  2768   }), Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
  3745     label: (0,external_wp_i18n_namespaceObject.__)('Welcome Guide')
       
  3746   }), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
  2769     role: "menuitem",
  3747     role: "menuitem",
  2770     icon: external["a" /* default */],
  3748     icon: library_external,
  2771     href: Object(external_wp_i18n_["__"])('https://wordpress.org/support/article/block-based-widgets-editor/'),
  3749     href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/support/article/block-based-widgets-editor/'),
  2772     target: "_blank",
  3750     target: "_blank",
  2773     rel: "noopener noreferrer"
  3751     rel: "noopener noreferrer"
  2774   }, Object(external_wp_i18n_["__"])('Help'), Object(external_wp_element_["createElement"])(external_wp_components_["VisuallyHidden"], {
  3752   }, (0,external_wp_i18n_namespaceObject.__)('Help'), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
  2775     as: "span"
  3753     as: "span"
  2776   },
  3754   },
  2777   /* translators: accessibility text */
  3755   /* translators: accessibility text */
  2778   Object(external_wp_i18n_["__"])('(opens in a new tab)')))), Object(external_wp_element_["createElement"])(external_wp_components_["MenuGroup"], {
  3756   (0,external_wp_i18n_namespaceObject.__)('(opens in a new tab)'))), (0,external_wp_element_namespaceObject.createElement)(tools_more_menu_group.Slot, {
  2779     label: Object(external_wp_i18n_["__"])('Preferences')
  3757     fillProps: {
  2780   }, Object(external_wp_element_["createElement"])(FeatureToggle, {
  3758       onClose
  2781     feature: "keepCaretInsideBlock",
  3759     }
  2782     label: Object(external_wp_i18n_["__"])('Contain text cursor inside block'),
  3760   })), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, {
  2783     info: Object(external_wp_i18n_["__"])('Aids screen readers by stopping text caret from leaving blocks.'),
  3761     label: (0,external_wp_i18n_namespaceObject.__)('Preferences')
  2784     messageActivated: Object(external_wp_i18n_["__"])('Contain text cursor inside block activated'),
  3762   }, (0,external_wp_element_namespaceObject.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
  2785     messageDeactivated: Object(external_wp_i18n_["__"])('Contain text cursor inside block deactivated')
  3763     scope: "core/edit-widgets",
  2786   }), Object(external_wp_element_["createElement"])(FeatureToggle, {
  3764     name: "keepCaretInsideBlock",
  2787     feature: "themeStyles",
  3765     label: (0,external_wp_i18n_namespaceObject.__)('Contain text cursor inside block'),
  2788     info: Object(external_wp_i18n_["__"])('Make the editor look like your theme.'),
  3766     info: (0,external_wp_i18n_namespaceObject.__)('Aids screen readers by stopping text caret from leaving blocks.'),
  2789     label: Object(external_wp_i18n_["__"])('Use theme styles')
  3767     messageActivated: (0,external_wp_i18n_namespaceObject.__)('Contain text cursor inside block activated'),
  2790   }), isLargeViewport && Object(external_wp_element_["createElement"])(FeatureToggle, {
  3768     messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Contain text cursor inside block deactivated')
  2791     feature: "showBlockBreadcrumbs",
  3769   }), (0,external_wp_element_namespaceObject.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
  2792     label: Object(external_wp_i18n_["__"])('Display block breadcrumbs'),
  3770     scope: "core/edit-widgets",
  2793     info: Object(external_wp_i18n_["__"])('Shows block breadcrumbs at the bottom of the editor.'),
  3771     name: "themeStyles",
  2794     messageActivated: Object(external_wp_i18n_["__"])('Display block breadcrumbs activated'),
  3772     info: (0,external_wp_i18n_namespaceObject.__)('Make the editor look like your theme.'),
  2795     messageDeactivated: Object(external_wp_i18n_["__"])('Display block breadcrumbs deactivated')
  3773     label: (0,external_wp_i18n_namespaceObject.__)('Use theme styles')
  2796   })))), Object(external_wp_element_["createElement"])(KeyboardShortcutHelpModal, {
  3774   }), isLargeViewport && (0,external_wp_element_namespaceObject.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
       
  3775     scope: "core/edit-widgets",
       
  3776     name: "showBlockBreadcrumbs",
       
  3777     label: (0,external_wp_i18n_namespaceObject.__)('Display block breadcrumbs'),
       
  3778     info: (0,external_wp_i18n_namespaceObject.__)('Shows block breadcrumbs at the bottom of the editor.'),
       
  3779     messageActivated: (0,external_wp_i18n_namespaceObject.__)('Display block breadcrumbs activated'),
       
  3780     messageDeactivated: (0,external_wp_i18n_namespaceObject.__)('Display block breadcrumbs deactivated')
       
  3781   })))), (0,external_wp_element_namespaceObject.createElement)(KeyboardShortcutHelpModal, {
  2797     isModalActive: isKeyboardShortcutsModalActive,
  3782     isModalActive: isKeyboardShortcutsModalActive,
  2798     toggleModal: toggleKeyboardShortcutsModal
  3783     toggleModal: toggleKeyboardShortcutsModal
  2799   }));
  3784   }));
  2800 }
  3785 }
  2801 
  3786 
  2802 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/header/index.js
  3787 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/header/index.js
  2803 
  3788 
  2804 
  3789 
  2805 /**
  3790 /**
  2806  * WordPress dependencies
  3791  * WordPress dependencies
  2807  */
  3792  */
  2823 
  3808 
  2824 
  3809 
  2825 
  3810 
  2826 
  3811 
  2827 function Header() {
  3812 function Header() {
  2828   const isMediumViewport = Object(external_wp_compose_["useViewportMatch"])('medium');
  3813   const isMediumViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
  2829   const inserterButton = Object(external_wp_element_["useRef"])();
  3814   const inserterButton = (0,external_wp_element_namespaceObject.useRef)();
  2830   const widgetAreaClientId = use_last_selected_widget_area();
  3815   const widgetAreaClientId = use_last_selected_widget_area();
  2831   const isLastSelectedWidgetAreaOpen = Object(external_wp_data_["useSelect"])(select => select(store).getIsWidgetAreaOpen(widgetAreaClientId), [widgetAreaClientId]);
  3816   const isLastSelectedWidgetAreaOpen = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getIsWidgetAreaOpen(widgetAreaClientId), [widgetAreaClientId]);
  2832   const isInserterOpened = Object(external_wp_data_["useSelect"])(select => select(store).isInserterOpened());
  3817   const {
       
  3818     isInserterOpen,
       
  3819     isListViewOpen
       
  3820   } = (0,external_wp_data_namespaceObject.useSelect)(select => {
       
  3821     const {
       
  3822       isInserterOpened,
       
  3823       isListViewOpened
       
  3824     } = select(store_store);
       
  3825     return {
       
  3826       isInserterOpen: isInserterOpened(),
       
  3827       isListViewOpen: isListViewOpened()
       
  3828     };
       
  3829   }, []);
  2833   const {
  3830   const {
  2834     setIsWidgetAreaOpen,
  3831     setIsWidgetAreaOpen,
  2835     setIsInserterOpened
  3832     setIsInserterOpened,
  2836   } = Object(external_wp_data_["useDispatch"])(store);
  3833     setIsListViewOpened
       
  3834   } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
  2837   const {
  3835   const {
  2838     selectBlock
  3836     selectBlock
  2839   } = Object(external_wp_data_["useDispatch"])(external_wp_blockEditor_["store"]);
  3837   } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
  2840 
  3838 
  2841   const handleClick = () => {
  3839   const handleClick = () => {
  2842     if (isInserterOpened) {
  3840     if (isInserterOpen) {
  2843       // Focusing the inserter button closes the inserter popover
  3841       // Focusing the inserter button closes the inserter popover.
  2844       inserterButton.current.focus();
  3842       setIsInserterOpened(false);
  2845     } else {
  3843     } else {
  2846       if (!isLastSelectedWidgetAreaOpen) {
  3844       if (!isLastSelectedWidgetAreaOpen) {
  2847         // Select the last selected block if hasn't already.
  3845         // Select the last selected block if hasn't already.
  2848         selectBlock(widgetAreaClientId); // Open the last selected widget area when opening the inserter.
  3846         selectBlock(widgetAreaClientId); // Open the last selected widget area when opening the inserter.
  2849 
  3847 
  2857 
  3855 
  2858       window.requestAnimationFrame(() => setIsInserterOpened(true));
  3856       window.requestAnimationFrame(() => setIsInserterOpened(true));
  2859     }
  3857     }
  2860   };
  3858   };
  2861 
  3859 
  2862   return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("div", {
  3860   const toggleListView = (0,external_wp_element_namespaceObject.useCallback)(() => setIsListViewOpened(!isListViewOpen), [setIsListViewOpened, isListViewOpen]);
       
  3861   return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)("div", {
  2863     className: "edit-widgets-header"
  3862     className: "edit-widgets-header"
  2864   }, Object(external_wp_element_["createElement"])("div", {
  3863   }, (0,external_wp_element_namespaceObject.createElement)("div", {
  2865     className: "edit-widgets-header__navigable-toolbar-wrapper"
  3864     className: "edit-widgets-header__navigable-toolbar-wrapper"
  2866   }, isMediumViewport && Object(external_wp_element_["createElement"])("h1", {
  3865   }, isMediumViewport && (0,external_wp_element_namespaceObject.createElement)("h1", {
  2867     className: "edit-widgets-header__title"
  3866     className: "edit-widgets-header__title"
  2868   }, Object(external_wp_i18n_["__"])('Widgets')), !isMediumViewport && Object(external_wp_element_["createElement"])(external_wp_components_["VisuallyHidden"], {
  3867   }, (0,external_wp_i18n_namespaceObject.__)('Widgets')), !isMediumViewport && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
  2869     as: "h1",
  3868     as: "h1",
  2870     className: "edit-widgets-header__title"
  3869     className: "edit-widgets-header__title"
  2871   }, Object(external_wp_i18n_["__"])('Widgets')), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["NavigableToolbar"], {
  3870   }, (0,external_wp_i18n_namespaceObject.__)('Widgets')), (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.NavigableToolbar, {
  2872     className: "edit-widgets-header-toolbar",
  3871     className: "edit-widgets-header-toolbar",
  2873     "aria-label": Object(external_wp_i18n_["__"])('Document tools')
  3872     "aria-label": (0,external_wp_i18n_namespaceObject.__)('Document tools')
  2874   }, Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarItem"], {
  3873   }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarItem, {
  2875     ref: inserterButton,
  3874     ref: inserterButton,
  2876     as: external_wp_components_["Button"],
  3875     as: external_wp_components_namespaceObject.Button,
  2877     className: "edit-widgets-header-toolbar__inserter-toggle",
  3876     className: "edit-widgets-header-toolbar__inserter-toggle",
  2878     isPrimary: true,
  3877     variant: "primary",
  2879     isPressed: isInserterOpened,
  3878     isPressed: isInserterOpen,
  2880     onMouseDown: event => {
  3879     onMouseDown: event => {
  2881       event.preventDefault();
  3880       event.preventDefault();
  2882     },
  3881     },
  2883     onClick: handleClick,
  3882     onClick: handleClick,
  2884     icon: plus["a" /* default */]
  3883     icon: library_plus
  2885     /* translators: button label text should, if possible, be under 16
  3884     /* translators: button label text should, if possible, be under 16
  2886     characters. */
  3885     characters. */
  2887     ,
  3886     ,
  2888     label: Object(external_wp_i18n_["_x"])('Add block', 'Generic label for block inserter button')
  3887     label: (0,external_wp_i18n_namespaceObject._x)('Toggle block inserter', 'Generic label for block inserter button')
  2889   }), isMediumViewport && Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(UndoButton, null), Object(external_wp_element_["createElement"])(RedoButton, null), Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarItem"], {
  3888   }), isMediumViewport && (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(UndoButton, null), (0,external_wp_element_namespaceObject.createElement)(RedoButton, null), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarItem, {
  2890     as: external_wp_blockEditor_["BlockNavigationDropdown"]
  3889     as: external_wp_components_namespaceObject.Button,
  2891   })))), Object(external_wp_element_["createElement"])("div", {
  3890     className: "edit-widgets-header-toolbar__list-view-toggle",
       
  3891     icon: list_view,
       
  3892     isPressed: isListViewOpen
       
  3893     /* translators: button label text should, if possible, be under 16 characters. */
       
  3894     ,
       
  3895     label: (0,external_wp_i18n_namespaceObject.__)('List View'),
       
  3896     onClick: toggleListView
       
  3897   })))), (0,external_wp_element_namespaceObject.createElement)("div", {
  2892     className: "edit-widgets-header__actions"
  3898     className: "edit-widgets-header__actions"
  2893   }, Object(external_wp_element_["createElement"])(save_button, null), Object(external_wp_element_["createElement"])(build_module["f" /* PinnedItems */].Slot, {
  3899   }, (0,external_wp_element_namespaceObject.createElement)(save_button, null), (0,external_wp_element_namespaceObject.createElement)(pinned_items.Slot, {
  2894     scope: "core/edit-widgets"
  3900     scope: "core/edit-widgets"
  2895   }), Object(external_wp_element_["createElement"])(MoreMenu, null))));
  3901   }), (0,external_wp_element_namespaceObject.createElement)(MoreMenu, null))));
  2896 }
  3902 }
  2897 
  3903 
  2898 /* harmony default export */ var header = (Header);
  3904 /* harmony default export */ var header = (Header);
  2899 
  3905 
  2900 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/notices/index.js
  3906 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/notices/index.js
  2901 
  3907 
  2902 
  3908 
  2903 /**
  3909 /**
  2904  * External dependencies
  3910  * External dependencies
  2905  */
  3911  */
  2913 
  3919 
  2914 
  3920 
  2915 function Notices() {
  3921 function Notices() {
  2916   const {
  3922   const {
  2917     removeNotice
  3923     removeNotice
  2918   } = Object(external_wp_data_["useDispatch"])(external_wp_notices_["store"]);
  3924   } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
  2919   const {
  3925   const {
  2920     notices
  3926     notices
  2921   } = Object(external_wp_data_["useSelect"])(select => {
  3927   } = (0,external_wp_data_namespaceObject.useSelect)(select => {
  2922     return {
  3928     return {
  2923       notices: select(external_wp_notices_["store"]).getNotices()
  3929       notices: select(external_wp_notices_namespaceObject.store).getNotices()
  2924     };
  3930     };
  2925   }, []);
  3931   }, []);
  2926   const dismissibleNotices = Object(external_lodash_["filter"])(notices, {
  3932   const dismissibleNotices = (0,external_lodash_namespaceObject.filter)(notices, {
  2927     isDismissible: true,
  3933     isDismissible: true,
  2928     type: 'default'
  3934     type: 'default'
  2929   });
  3935   });
  2930   const nonDismissibleNotices = Object(external_lodash_["filter"])(notices, {
  3936   const nonDismissibleNotices = (0,external_lodash_namespaceObject.filter)(notices, {
  2931     isDismissible: false,
  3937     isDismissible: false,
  2932     type: 'default'
  3938     type: 'default'
  2933   });
  3939   });
  2934   const snackbarNotices = Object(external_lodash_["filter"])(notices, {
  3940   const snackbarNotices = (0,external_lodash_namespaceObject.filter)(notices, {
  2935     type: 'snackbar'
  3941     type: 'snackbar'
  2936   });
  3942   });
  2937   return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_components_["NoticeList"], {
  3943   return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.NoticeList, {
  2938     notices: nonDismissibleNotices,
  3944     notices: nonDismissibleNotices,
  2939     className: "edit-widgets-notices__pinned"
  3945     className: "edit-widgets-notices__pinned"
  2940   }), Object(external_wp_element_["createElement"])(external_wp_components_["NoticeList"], {
  3946   }), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.NoticeList, {
  2941     notices: dismissibleNotices,
  3947     notices: dismissibleNotices,
  2942     className: "edit-widgets-notices__dismissible",
  3948     className: "edit-widgets-notices__dismissible",
  2943     onRemove: removeNotice
  3949     onRemove: removeNotice
  2944   }), Object(external_wp_element_["createElement"])(external_wp_components_["SnackbarList"], {
  3950   }), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.SnackbarList, {
  2945     notices: snackbarNotices,
  3951     notices: snackbarNotices,
  2946     className: "edit-widgets-notices__snackbar",
  3952     className: "edit-widgets-notices__snackbar",
  2947     onRemove: removeNotice
  3953     onRemove: removeNotice
  2948   }));
  3954   }));
  2949 }
  3955 }
  2950 
  3956 
  2951 /* harmony default export */ var components_notices = (Notices);
  3957 /* harmony default export */ var notices = (Notices);
  2952 
  3958 
  2953 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/widget-areas-block-editor-content/index.js
  3959 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/widget-areas-block-editor-content/index.js
  2954 
  3960 
  2955 
  3961 
  2956 /**
  3962 /**
  2957  * WordPress dependencies
  3963  * WordPress dependencies
  2958  */
  3964  */
       
  3965 
  2959 
  3966 
  2960 
  3967 
  2961 
  3968 
  2962 /**
  3969 /**
  2963  * Internal dependencies
  3970  * Internal dependencies
  2964  */
  3971  */
  2965 
  3972 
  2966 
  3973 
  2967 
  3974 
  2968 
  3975 function WidgetAreasBlockEditorContent(_ref) {
  2969 function WidgetAreasBlockEditorContent({
  3976   let {
  2970   blockEditorSettings
  3977     blockEditorSettings
  2971 }) {
  3978   } = _ref;
  2972   const {
  3979   const hasThemeStyles = (0,external_wp_data_namespaceObject.useSelect)(select => !!select(external_wp_preferences_namespaceObject.store).get('core/edit-widgets', 'themeStyles'), []);
  2973     hasThemeStyles
  3980   const styles = (0,external_wp_element_namespaceObject.useMemo)(() => {
  2974   } = Object(external_wp_data_["useSelect"])(select => ({
       
  2975     hasThemeStyles: select(store).__unstableIsFeatureActive('themeStyles')
       
  2976   }));
       
  2977   const styles = Object(external_wp_element_["useMemo"])(() => {
       
  2978     return hasThemeStyles ? blockEditorSettings.styles : [];
  3981     return hasThemeStyles ? blockEditorSettings.styles : [];
  2979   }, [blockEditorSettings, hasThemeStyles]);
  3982   }, [blockEditorSettings, hasThemeStyles]);
  2980   return Object(external_wp_element_["createElement"])("div", {
  3983   return (0,external_wp_element_namespaceObject.createElement)("div", {
  2981     className: "edit-widgets-block-editor"
  3984     className: "edit-widgets-block-editor"
  2982   }, Object(external_wp_element_["createElement"])(components_notices, null), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockTools"], null, Object(external_wp_element_["createElement"])(keyboard_shortcuts, null), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockEditorKeyboardShortcuts"], null), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["__unstableEditorStyles"], {
  3985   }, (0,external_wp_element_namespaceObject.createElement)(notices, null), (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockTools, null, (0,external_wp_element_namespaceObject.createElement)(keyboard_shortcuts, null), (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__unstableEditorStyles, {
  2983     styles: styles
  3986     styles: styles
  2984   }), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockSelectionClearer"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["WritingFlow"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["ObserveTyping"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockList"], {
  3987   }), (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockSelectionClearer, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.WritingFlow, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.ObserveTyping, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockList, {
  2985     className: "edit-widgets-main-block-list"
  3988     className: "edit-widgets-main-block-list"
  2986   }))))));
  3989   }))))));
  2987 }
  3990 }
  2988 
  3991 
  2989 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/hooks/use-widget-library-insertion-point.js
  3992 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js
  2990 /**
  3993 
  2991  * WordPress dependencies
  3994 
  2992  */
  3995 /**
       
  3996  * WordPress dependencies
       
  3997  */
       
  3998 
       
  3999 const close_close = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
       
  4000   xmlns: "http://www.w3.org/2000/svg",
       
  4001   viewBox: "0 0 24 24"
       
  4002 }, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
       
  4003   d: "M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"
       
  4004 }));
       
  4005 /* harmony default export */ var library_close = (close_close);
       
  4006 
       
  4007 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/hooks/use-widget-library-insertion-point.js
       
  4008 /**
       
  4009  * WordPress dependencies
       
  4010  */
       
  4011 
  2993 
  4012 
  2994 
  4013 
  2995 /**
  4014 /**
  2996  * Internal dependencies
  4015  * Internal dependencies
  2997  */
  4016  */
  2998 
  4017 
  2999 
  4018 
  3000 
  4019 
  3001 
  4020 
  3002 const useWidgetLibraryInsertionPoint = () => {
  4021 const useWidgetLibraryInsertionPoint = () => {
  3003   const firstRootId = Object(external_wp_data_["useSelect"])(select => {
  4022   const firstRootId = (0,external_wp_data_namespaceObject.useSelect)(select => {
  3004     var _widgetAreasPost$bloc;
  4023     var _widgetAreasPost$bloc;
  3005 
  4024 
  3006     // Default to the first widget area
  4025     // Default to the first widget area
  3007     const {
  4026     const {
  3008       getEntityRecord
  4027       getEntityRecord
  3009     } = select('core');
  4028     } = select(external_wp_coreData_namespaceObject.store);
  3010     const widgetAreasPost = getEntityRecord(KIND, POST_TYPE, buildWidgetAreasPostId());
  4029     const widgetAreasPost = getEntityRecord(KIND, POST_TYPE, buildWidgetAreasPostId());
  3011     return widgetAreasPost === null || widgetAreasPost === void 0 ? void 0 : (_widgetAreasPost$bloc = widgetAreasPost.blocks[0]) === null || _widgetAreasPost$bloc === void 0 ? void 0 : _widgetAreasPost$bloc.clientId;
  4030     return widgetAreasPost === null || widgetAreasPost === void 0 ? void 0 : (_widgetAreasPost$bloc = widgetAreasPost.blocks[0]) === null || _widgetAreasPost$bloc === void 0 ? void 0 : _widgetAreasPost$bloc.clientId;
  3012   }, []);
  4031   }, []);
  3013   return Object(external_wp_data_["useSelect"])(select => {
  4032   return (0,external_wp_data_namespaceObject.useSelect)(select => {
  3014     const {
  4033     const {
  3015       getBlockRootClientId,
  4034       getBlockRootClientId,
  3016       getBlockSelectionEnd,
  4035       getBlockSelectionEnd,
  3017       getBlockOrder,
  4036       getBlockOrder,
  3018       getBlockIndex
  4037       getBlockIndex
  3019     } = select(external_wp_blockEditor_["store"]);
  4038     } = select(external_wp_blockEditor_namespaceObject.store);
  3020 
  4039 
  3021     const insertionPoint = select(store).__experimentalGetInsertionPoint(); // "Browse all" in the quick inserter will set the rootClientId to the current block.
  4040     const insertionPoint = select(store_store).__experimentalGetInsertionPoint(); // "Browse all" in the quick inserter will set the rootClientId to the current block.
  3022     // Otherwise, it will just be undefined, and we'll have to handle it differently below.
  4041     // Otherwise, it will just be undefined, and we'll have to handle it differently below.
  3023 
  4042 
  3024 
  4043 
  3025     if (insertionPoint.rootClientId) {
  4044     if (insertionPoint.rootClientId) {
  3026       return insertionPoint;
  4045       return insertionPoint;
  3038       };
  4057       };
  3039     }
  4058     }
  3040 
  4059 
  3041     return {
  4060     return {
  3042       rootClientId,
  4061       rootClientId,
  3043       insertionIndex: getBlockIndex(clientId, rootClientId) + 1
  4062       insertionIndex: getBlockIndex(clientId) + 1
  3044     };
  4063     };
  3045   }, [firstRootId]);
  4064   }, [firstRootId]);
  3046 };
  4065 };
  3047 
  4066 
  3048 /* harmony default export */ var use_widget_library_insertion_point = (useWidgetLibraryInsertionPoint);
  4067 /* harmony default export */ var use_widget_library_insertion_point = (useWidgetLibraryInsertionPoint);
  3049 
  4068 
  3050 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/layout/interface.js
  4069 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/secondary-sidebar/inserter-sidebar.js
  3051 
  4070 
  3052 
  4071 
  3053 
  4072 
  3054 /**
  4073 /**
  3055  * WordPress dependencies
  4074  * WordPress dependencies
  3056  */
  4075  */
  3057 
       
  3058 
       
  3059 
  4076 
  3060 
  4077 
  3061 
  4078 
  3062 
  4079 
  3063 
  4080 
  3067  * Internal dependencies
  4084  * Internal dependencies
  3068  */
  4085  */
  3069 
  4086 
  3070 
  4087 
  3071 
  4088 
  3072 
  4089 function InserterSidebar() {
  3073 
  4090   const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
  3074 const interfaceLabels = {
       
  3075   /* translators: accessibility text for the widgets screen top bar landmark region. */
       
  3076   header: Object(external_wp_i18n_["__"])('Widgets top bar'),
       
  3077 
       
  3078   /* translators: accessibility text for the widgets screen content landmark region. */
       
  3079   body: Object(external_wp_i18n_["__"])('Widgets and blocks'),
       
  3080 
       
  3081   /* translators: accessibility text for the widgets screen settings landmark region. */
       
  3082   sidebar: Object(external_wp_i18n_["__"])('Widgets settings'),
       
  3083 
       
  3084   /* translators: accessibility text for the widgets screen footer landmark region. */
       
  3085   footer: Object(external_wp_i18n_["__"])('Widgets footer')
       
  3086 };
       
  3087 
       
  3088 function Interface({
       
  3089   blockEditorSettings
       
  3090 }) {
       
  3091   const isMobileViewport = Object(external_wp_compose_["useViewportMatch"])('medium', '<');
       
  3092   const isHugeViewport = Object(external_wp_compose_["useViewportMatch"])('huge', '>=');
       
  3093   const {
       
  3094     setIsInserterOpened,
       
  3095     closeGeneralSidebar
       
  3096   } = Object(external_wp_data_["useDispatch"])(store);
       
  3097   const {
  4091   const {
  3098     rootClientId,
  4092     rootClientId,
  3099     insertionIndex
  4093     insertionIndex
  3100   } = use_widget_library_insertion_point();
  4094   } = use_widget_library_insertion_point();
  3101   const {
  4095   const {
       
  4096     setIsInserterOpened
       
  4097   } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
       
  4098   const closeInserter = (0,external_wp_element_namespaceObject.useCallback)(() => {
       
  4099     return setIsInserterOpened(false);
       
  4100   }, [setIsInserterOpened]);
       
  4101   const TagName = !isMobileViewport ? external_wp_components_namespaceObject.VisuallyHidden : 'div';
       
  4102   const [inserterDialogRef, inserterDialogProps] = (0,external_wp_compose_namespaceObject.__experimentalUseDialog)({
       
  4103     onClose: closeInserter,
       
  4104     focusOnMount: null
       
  4105   });
       
  4106   const libraryRef = (0,external_wp_element_namespaceObject.useRef)();
       
  4107   (0,external_wp_element_namespaceObject.useEffect)(() => {
       
  4108     libraryRef.current.focusSearch();
       
  4109   }, []);
       
  4110   return (0,external_wp_element_namespaceObject.createElement)("div", _extends({
       
  4111     ref: inserterDialogRef
       
  4112   }, inserterDialogProps, {
       
  4113     className: "edit-widgets-layout__inserter-panel"
       
  4114   }), (0,external_wp_element_namespaceObject.createElement)(TagName, {
       
  4115     className: "edit-widgets-layout__inserter-panel-header"
       
  4116   }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
       
  4117     icon: library_close,
       
  4118     onClick: closeInserter,
       
  4119     label: (0,external_wp_i18n_namespaceObject.__)('Close block inserter')
       
  4120   })), (0,external_wp_element_namespaceObject.createElement)("div", {
       
  4121     className: "edit-widgets-layout__inserter-panel-content"
       
  4122   }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalLibrary, {
       
  4123     showInserterHelpPanel: true,
       
  4124     shouldFocusBlock: isMobileViewport,
       
  4125     rootClientId: rootClientId,
       
  4126     __experimentalInsertionIndex: insertionIndex,
       
  4127     ref: libraryRef
       
  4128   })));
       
  4129 }
       
  4130 
       
  4131 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/secondary-sidebar/list-view-sidebar.js
       
  4132 
       
  4133 
       
  4134 /**
       
  4135  * WordPress dependencies
       
  4136  */
       
  4137 
       
  4138 
       
  4139 
       
  4140 
       
  4141 
       
  4142 
       
  4143 
       
  4144 /**
       
  4145  * Internal dependencies
       
  4146  */
       
  4147 
       
  4148 
       
  4149 function ListViewSidebar() {
       
  4150   const {
       
  4151     setIsListViewOpened
       
  4152   } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
       
  4153   const focusOnMountRef = (0,external_wp_compose_namespaceObject.useFocusOnMount)('firstElement');
       
  4154   const headerFocusReturnRef = (0,external_wp_compose_namespaceObject.useFocusReturn)();
       
  4155   const contentFocusReturnRef = (0,external_wp_compose_namespaceObject.useFocusReturn)();
       
  4156 
       
  4157   function closeOnEscape(event) {
       
  4158     if (event.keyCode === external_wp_keycodes_namespaceObject.ESCAPE && !event.defaultPrevented) {
       
  4159       event.preventDefault();
       
  4160       setIsListViewOpened(false);
       
  4161     }
       
  4162   }
       
  4163 
       
  4164   const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(ListViewSidebar);
       
  4165   const labelId = `edit-widgets-editor__list-view-panel-label-${instanceId}`;
       
  4166   return (// eslint-disable-next-line jsx-a11y/no-static-element-interactions
       
  4167     (0,external_wp_element_namespaceObject.createElement)("div", {
       
  4168       "aria-labelledby": labelId,
       
  4169       className: "edit-widgets-editor__list-view-panel",
       
  4170       onKeyDown: closeOnEscape
       
  4171     }, (0,external_wp_element_namespaceObject.createElement)("div", {
       
  4172       className: "edit-widgets-editor__list-view-panel-header",
       
  4173       ref: headerFocusReturnRef
       
  4174     }, (0,external_wp_element_namespaceObject.createElement)("strong", {
       
  4175       id: labelId
       
  4176     }, (0,external_wp_i18n_namespaceObject.__)('List View')), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
       
  4177       icon: close_small,
       
  4178       label: (0,external_wp_i18n_namespaceObject.__)('Close List View Sidebar'),
       
  4179       onClick: () => setIsListViewOpened(false)
       
  4180     })), (0,external_wp_element_namespaceObject.createElement)("div", {
       
  4181       className: "edit-widgets-editor__list-view-panel-content",
       
  4182       ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([contentFocusReturnRef, focusOnMountRef])
       
  4183     }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalListView, {
       
  4184       showNestedBlocks: true,
       
  4185       __experimentalHideContainerBlockActions: true,
       
  4186       __experimentalFeatures: true,
       
  4187       __experimentalPersistentListViewFeatures: true
       
  4188     })))
       
  4189   );
       
  4190 }
       
  4191 
       
  4192 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/secondary-sidebar/index.js
       
  4193 
       
  4194 
       
  4195 /**
       
  4196  * WordPress dependencies
       
  4197  */
       
  4198 
       
  4199 /**
       
  4200  * Internal dependencies
       
  4201  */
       
  4202 
       
  4203 
       
  4204 /**
       
  4205  * Internal dependencies
       
  4206  */
       
  4207 
       
  4208 
       
  4209 
       
  4210 function SecondarySidebar() {
       
  4211   const {
       
  4212     isInserterOpen,
       
  4213     isListViewOpen
       
  4214   } = (0,external_wp_data_namespaceObject.useSelect)(select => {
       
  4215     const {
       
  4216       isInserterOpened,
       
  4217       isListViewOpened
       
  4218     } = select(store_store);
       
  4219     return {
       
  4220       isInserterOpen: isInserterOpened(),
       
  4221       isListViewOpen: isListViewOpened()
       
  4222     };
       
  4223   }, []);
       
  4224 
       
  4225   if (isInserterOpen) {
       
  4226     return (0,external_wp_element_namespaceObject.createElement)(InserterSidebar, null);
       
  4227   }
       
  4228 
       
  4229   if (isListViewOpen) {
       
  4230     return (0,external_wp_element_namespaceObject.createElement)(ListViewSidebar, null);
       
  4231   }
       
  4232 
       
  4233   return null;
       
  4234 }
       
  4235 
       
  4236 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/layout/interface.js
       
  4237 
       
  4238 
       
  4239 /**
       
  4240  * WordPress dependencies
       
  4241  */
       
  4242 
       
  4243 
       
  4244 
       
  4245 
       
  4246 
       
  4247 
       
  4248 
       
  4249 
       
  4250 /**
       
  4251  * Internal dependencies
       
  4252  */
       
  4253 
       
  4254 
       
  4255 
       
  4256 
       
  4257 
       
  4258 const interfaceLabels = {
       
  4259   /* translators: accessibility text for the widgets screen top bar landmark region. */
       
  4260   header: (0,external_wp_i18n_namespaceObject.__)('Widgets top bar'),
       
  4261 
       
  4262   /* translators: accessibility text for the widgets screen content landmark region. */
       
  4263   body: (0,external_wp_i18n_namespaceObject.__)('Widgets and blocks'),
       
  4264 
       
  4265   /* translators: accessibility text for the widgets screen settings landmark region. */
       
  4266   sidebar: (0,external_wp_i18n_namespaceObject.__)('Widgets settings'),
       
  4267 
       
  4268   /* translators: accessibility text for the widgets screen footer landmark region. */
       
  4269   footer: (0,external_wp_i18n_namespaceObject.__)('Widgets footer')
       
  4270 };
       
  4271 
       
  4272 function Interface(_ref) {
       
  4273   let {
       
  4274     blockEditorSettings
       
  4275   } = _ref;
       
  4276   const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
       
  4277   const isHugeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('huge', '>=');
       
  4278   const {
       
  4279     setIsInserterOpened,
       
  4280     setIsListViewOpened,
       
  4281     closeGeneralSidebar
       
  4282   } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
       
  4283   const {
  3102     hasBlockBreadCrumbsEnabled,
  4284     hasBlockBreadCrumbsEnabled,
  3103     hasSidebarEnabled,
  4285     hasSidebarEnabled,
  3104     isInserterOpened,
  4286     isInserterOpened,
       
  4287     isListViewOpened,
  3105     previousShortcut,
  4288     previousShortcut,
  3106     nextShortcut
  4289     nextShortcut
  3107   } = Object(external_wp_data_["useSelect"])(select => ({
  4290   } = (0,external_wp_data_namespaceObject.useSelect)(select => ({
  3108     hasSidebarEnabled: !!select(build_module["g" /* store */]).getActiveComplementaryArea(store.name),
  4291     hasSidebarEnabled: !!select(store).getActiveComplementaryArea(store_store.name),
  3109     isInserterOpened: !!select(store).isInserterOpened(),
  4292     isInserterOpened: !!select(store_store).isInserterOpened(),
  3110     hasBlockBreadCrumbsEnabled: select(store).__unstableIsFeatureActive('showBlockBreadcrumbs'),
  4293     isListViewOpened: !!select(store_store).isListViewOpened(),
  3111     previousShortcut: select(external_wp_keyboardShortcuts_["store"]).getAllShortcutRawKeyCombinations('core/edit-widgets/previous-region'),
  4294     hasBlockBreadCrumbsEnabled: !!select(external_wp_preferences_namespaceObject.store).get('core/edit-widgets', 'showBlockBreadcrumbs'),
  3112     nextShortcut: select(external_wp_keyboardShortcuts_["store"]).getAllShortcutRawKeyCombinations('core/edit-widgets/next-region')
  4295     previousShortcut: select(external_wp_keyboardShortcuts_namespaceObject.store).getAllShortcutKeyCombinations('core/edit-widgets/previous-region'),
       
  4296     nextShortcut: select(external_wp_keyboardShortcuts_namespaceObject.store).getAllShortcutKeyCombinations('core/edit-widgets/next-region')
  3113   }), []); // Inserter and Sidebars are mutually exclusive
  4297   }), []); // Inserter and Sidebars are mutually exclusive
  3114 
  4298 
  3115   Object(external_wp_element_["useEffect"])(() => {
  4299   (0,external_wp_element_namespaceObject.useEffect)(() => {
  3116     if (hasSidebarEnabled && !isHugeViewport) {
  4300     if (hasSidebarEnabled && !isHugeViewport) {
  3117       setIsInserterOpened(false);
  4301       setIsInserterOpened(false);
       
  4302       setIsListViewOpened(false);
  3118     }
  4303     }
  3119   }, [hasSidebarEnabled, isHugeViewport]);
  4304   }, [hasSidebarEnabled, isHugeViewport]);
  3120   Object(external_wp_element_["useEffect"])(() => {
  4305   (0,external_wp_element_namespaceObject.useEffect)(() => {
  3121     if (isInserterOpened && !isHugeViewport) {
  4306     if ((isInserterOpened || isListViewOpened) && !isHugeViewport) {
  3122       closeGeneralSidebar();
  4307       closeGeneralSidebar();
  3123     }
  4308     }
  3124   }, [isInserterOpened, isHugeViewport]);
  4309   }, [isInserterOpened, isListViewOpened, isHugeViewport]);
  3125   const [inserterDialogRef, inserterDialogProps] = Object(external_wp_compose_["__experimentalUseDialog"])({
  4310   const secondarySidebarLabel = isListViewOpened ? (0,external_wp_i18n_namespaceObject.__)('List View') : (0,external_wp_i18n_namespaceObject.__)('Block Library');
  3126     onClose: () => setIsInserterOpened(false)
  4311   const hasSecondarySidebar = isListViewOpened || isInserterOpened;
  3127   });
  4312   return (0,external_wp_element_namespaceObject.createElement)(interface_skeleton, {
  3128   return Object(external_wp_element_["createElement"])(build_module["e" /* InterfaceSkeleton */], {
  4313     labels: { ...interfaceLabels,
  3129     labels: interfaceLabels,
  4314       secondarySidebar: secondarySidebarLabel
  3130     header: Object(external_wp_element_["createElement"])(header, null),
  4315     },
  3131     secondarySidebar: isInserterOpened && Object(external_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({
  4316     header: (0,external_wp_element_namespaceObject.createElement)(header, null),
  3132       ref: inserterDialogRef
  4317     secondarySidebar: hasSecondarySidebar && (0,external_wp_element_namespaceObject.createElement)(SecondarySidebar, null),
  3133     }, inserterDialogProps, {
  4318     sidebar: hasSidebarEnabled && (0,external_wp_element_namespaceObject.createElement)(complementary_area.Slot, {
  3134       className: "edit-widgets-layout__inserter-panel"
       
  3135     }), Object(external_wp_element_["createElement"])("div", {
       
  3136       className: "edit-widgets-layout__inserter-panel-header"
       
  3137     }, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
       
  3138       icon: library_close["a" /* default */],
       
  3139       onClick: () => setIsInserterOpened(false)
       
  3140     })), Object(external_wp_element_["createElement"])("div", {
       
  3141       className: "edit-widgets-layout__inserter-panel-content"
       
  3142     }, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["__experimentalLibrary"], {
       
  3143       showInserterHelpPanel: true,
       
  3144       shouldFocusBlock: isMobileViewport,
       
  3145       rootClientId: rootClientId,
       
  3146       __experimentalInsertionIndex: insertionIndex
       
  3147     }))),
       
  3148     sidebar: hasSidebarEnabled && Object(external_wp_element_["createElement"])(build_module["b" /* ComplementaryArea */].Slot, {
       
  3149       scope: "core/edit-widgets"
  4319       scope: "core/edit-widgets"
  3150     }),
  4320     }),
  3151     content: Object(external_wp_element_["createElement"])(WidgetAreasBlockEditorContent, {
  4321     content: (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(WidgetAreasBlockEditorContent, {
  3152       blockEditorSettings: blockEditorSettings
  4322       blockEditorSettings: blockEditorSettings
  3153     }),
  4323     }), (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockStyles.Slot, {
  3154     footer: hasBlockBreadCrumbsEnabled && !isMobileViewport && Object(external_wp_element_["createElement"])("div", {
  4324       scope: "core/block-inspector"
       
  4325     })),
       
  4326     footer: hasBlockBreadCrumbsEnabled && !isMobileViewport && (0,external_wp_element_namespaceObject.createElement)("div", {
  3155       className: "edit-widgets-layout__footer"
  4327       className: "edit-widgets-layout__footer"
  3156     }, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockBreadcrumb"], {
  4328     }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockBreadcrumb, {
  3157       rootLabelText: Object(external_wp_i18n_["__"])('Widgets')
  4329       rootLabelText: (0,external_wp_i18n_namespaceObject.__)('Widgets')
  3158     })),
  4330     })),
  3159     shortcuts: {
  4331     shortcuts: {
  3160       previous: previousShortcut,
  4332       previous: previousShortcut,
  3161       next: nextShortcut
  4333       next: nextShortcut
  3162     }
  4334     }
  3163   });
  4335   });
  3164 }
  4336 }
  3165 
  4337 
  3166 /* harmony default export */ var layout_interface = (Interface);
  4338 /* harmony default export */ var layout_interface = (Interface);
  3167 
  4339 
  3168 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/layout/unsaved-changes-warning.js
  4340 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/layout/unsaved-changes-warning.js
  3169 /**
  4341 /**
  3170  * WordPress dependencies
  4342  * WordPress dependencies
  3171  */
  4343  */
  3172 
  4344 
  3173 
  4345 
  3185  *
  4357  *
  3186  * @return {WPComponent} The component.
  4358  * @return {WPComponent} The component.
  3187  */
  4359  */
  3188 
  4360 
  3189 function UnsavedChangesWarning() {
  4361 function UnsavedChangesWarning() {
  3190   const isDirty = Object(external_wp_data_["useSelect"])(select => {
  4362   const isDirty = (0,external_wp_data_namespaceObject.useSelect)(select => {
  3191     const {
  4363     const {
  3192       getEditedWidgetAreas
  4364       getEditedWidgetAreas
  3193     } = select(store);
  4365     } = select(store_store);
  3194     const editedWidgetAreas = getEditedWidgetAreas();
  4366     const editedWidgetAreas = getEditedWidgetAreas();
  3195     return (editedWidgetAreas === null || editedWidgetAreas === void 0 ? void 0 : editedWidgetAreas.length) > 0;
  4367     return (editedWidgetAreas === null || editedWidgetAreas === void 0 ? void 0 : editedWidgetAreas.length) > 0;
  3196   }, []);
  4368   }, []);
  3197   Object(external_wp_element_["useEffect"])(() => {
  4369   (0,external_wp_element_namespaceObject.useEffect)(() => {
  3198     /**
  4370     /**
  3199      * Warns the user if there are unsaved changes before leaving the editor.
  4371      * Warns the user if there are unsaved changes before leaving the editor.
  3200      *
  4372      *
  3201      * @param {Event} event `beforeunload` event.
  4373      * @param {Event} event `beforeunload` event.
  3202      *
  4374      *
  3203      * @return {?string} Warning prompt message, if unsaved changes exist.
  4375      * @return {?string} Warning prompt message, if unsaved changes exist.
  3204      */
  4376      */
  3205     const warnIfUnsavedChanges = event => {
  4377     const warnIfUnsavedChanges = event => {
  3206       if (isDirty) {
  4378       if (isDirty) {
  3207         event.returnValue = Object(external_wp_i18n_["__"])('You have unsaved changes. If you proceed, they will be lost.');
  4379         event.returnValue = (0,external_wp_i18n_namespaceObject.__)('You have unsaved changes. If you proceed, they will be lost.');
  3208         return event.returnValue;
  4380         return event.returnValue;
  3209       }
  4381       }
  3210     };
  4382     };
  3211 
  4383 
  3212     window.addEventListener('beforeunload', warnIfUnsavedChanges);
  4384     window.addEventListener('beforeunload', warnIfUnsavedChanges);
  3215     };
  4387     };
  3216   }, [isDirty]);
  4388   }, [isDirty]);
  3217   return null;
  4389   return null;
  3218 }
  4390 }
  3219 
  4391 
  3220 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/welcome-guide/index.js
  4392 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/welcome-guide/index.js
  3221 
  4393 
  3222 
  4394 
  3223 /**
  4395 /**
  3224  * WordPress dependencies
  4396  * WordPress dependencies
  3225  */
  4397  */
       
  4398 
  3226 
  4399 
  3227 
  4400 
  3228 
  4401 
  3229 
  4402 
  3230 /**
  4403 /**
  3233 
  4406 
  3234 
  4407 
  3235 function WelcomeGuide() {
  4408 function WelcomeGuide() {
  3236   var _widgetAreas$filter$l;
  4409   var _widgetAreas$filter$l;
  3237 
  4410 
  3238   const isActive = Object(external_wp_data_["useSelect"])(select => select(store).__unstableIsFeatureActive('welcomeGuide'), []);
  4411   const isActive = (0,external_wp_data_namespaceObject.useSelect)(select => !!select(external_wp_preferences_namespaceObject.store).get('core/edit-widgets', 'welcomeGuide'), []);
  3239   const {
  4412   const {
  3240     __unstableToggleFeature: toggleFeature
  4413     toggle
  3241   } = Object(external_wp_data_["useDispatch"])(store);
  4414   } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
  3242   const widgetAreas = Object(external_wp_data_["useSelect"])(select => select(store).getWidgetAreas({
  4415   const widgetAreas = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getWidgetAreas({
  3243     per_page: -1
  4416     per_page: -1
  3244   }));
  4417   }), []);
  3245 
  4418 
  3246   if (!isActive) {
  4419   if (!isActive) {
  3247     return null;
  4420     return null;
  3248   }
  4421   }
  3249 
  4422 
  3250   const isEntirelyBlockWidgets = widgetAreas === null || widgetAreas === void 0 ? void 0 : widgetAreas.every(widgetArea => widgetArea.id === 'wp_inactive_widgets' || widgetArea.widgets.every(widgetId => widgetId.startsWith('block-')));
  4423   const isEntirelyBlockWidgets = widgetAreas === null || widgetAreas === void 0 ? void 0 : widgetAreas.every(widgetArea => widgetArea.id === 'wp_inactive_widgets' || widgetArea.widgets.every(widgetId => widgetId.startsWith('block-')));
  3251   const numWidgetAreas = (_widgetAreas$filter$l = widgetAreas === null || widgetAreas === void 0 ? void 0 : widgetAreas.filter(widgetArea => widgetArea.id !== 'wp_inactive_widgets').length) !== null && _widgetAreas$filter$l !== void 0 ? _widgetAreas$filter$l : 0;
  4424   const numWidgetAreas = (_widgetAreas$filter$l = widgetAreas === null || widgetAreas === void 0 ? void 0 : widgetAreas.filter(widgetArea => widgetArea.id !== 'wp_inactive_widgets').length) !== null && _widgetAreas$filter$l !== void 0 ? _widgetAreas$filter$l : 0;
  3252   return Object(external_wp_element_["createElement"])(external_wp_components_["Guide"], {
  4425   return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Guide, {
  3253     className: "edit-widgets-welcome-guide",
  4426     className: "edit-widgets-welcome-guide",
  3254     contentLabel: Object(external_wp_i18n_["__"])('Welcome to block Widgets'),
  4427     contentLabel: (0,external_wp_i18n_namespaceObject.__)('Welcome to block Widgets'),
  3255     finishButtonText: Object(external_wp_i18n_["__"])('Get started'),
  4428     finishButtonText: (0,external_wp_i18n_namespaceObject.__)('Get started'),
  3256     onFinish: () => toggleFeature('welcomeGuide'),
  4429     onFinish: () => toggle('core/edit-widgets', 'welcomeGuide'),
  3257     pages: [{
  4430     pages: [{
  3258       image: Object(external_wp_element_["createElement"])(WelcomeGuideImage, {
  4431       image: (0,external_wp_element_namespaceObject.createElement)(WelcomeGuideImage, {
  3259         nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-canvas.svg",
  4432         nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-canvas.svg",
  3260         animatedSrc: "https://s.w.org/images/block-editor/welcome-canvas.gif"
  4433         animatedSrc: "https://s.w.org/images/block-editor/welcome-canvas.gif"
  3261       }),
  4434       }),
  3262       content: Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("h1", {
  4435       content: (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)("h1", {
  3263         className: "edit-widgets-welcome-guide__heading"
  4436         className: "edit-widgets-welcome-guide__heading"
  3264       }, Object(external_wp_i18n_["__"])('Welcome to block Widgets')), isEntirelyBlockWidgets ? Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("p", {
  4437       }, (0,external_wp_i18n_namespaceObject.__)('Welcome to block Widgets')), isEntirelyBlockWidgets ? (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)("p", {
  3265         className: "edit-widgets-welcome-guide__text"
  4438         className: "edit-widgets-welcome-guide__text"
  3266       }, Object(external_wp_i18n_["sprintf"])( // Translators: %s: Number of block areas in the current theme.
  4439       }, (0,external_wp_i18n_namespaceObject.sprintf)( // Translators: %s: Number of block areas in the current theme.
  3267       Object(external_wp_i18n_["_n"])('Your theme provides %s “block” area for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.', 'Your theme provides %s different “block” areas for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.', numWidgetAreas), numWidgetAreas))) : Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("p", {
  4440       (0,external_wp_i18n_namespaceObject._n)('Your theme provides %s “block” area for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.', 'Your theme provides %s different “block” areas for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.', numWidgetAreas), numWidgetAreas))) : (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)("p", {
  3268         className: "edit-widgets-welcome-guide__text"
  4441         className: "edit-widgets-welcome-guide__text"
  3269       }, Object(external_wp_i18n_["__"])('You can now add any block to your site’s widget areas. Don’t worry, all of your favorite widgets still work flawlessly.')), Object(external_wp_element_["createElement"])("p", {
  4442       }, (0,external_wp_i18n_namespaceObject.__)('You can now add any block to your site’s widget areas. Don’t worry, all of your favorite widgets still work flawlessly.')), (0,external_wp_element_namespaceObject.createElement)("p", {
  3270         className: "edit-widgets-welcome-guide__text"
  4443         className: "edit-widgets-welcome-guide__text"
  3271       }, Object(external_wp_element_["createElement"])("strong", null, Object(external_wp_i18n_["__"])('Want to stick with the old widgets?')), ' ', Object(external_wp_element_["createElement"])(external_wp_components_["ExternalLink"], {
  4444       }, (0,external_wp_element_namespaceObject.createElement)("strong", null, (0,external_wp_i18n_namespaceObject.__)('Want to stick with the old widgets?')), ' ', (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
  3272         href: Object(external_wp_i18n_["__"])('https://wordpress.org/plugins/classic-widgets/')
  4445         href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/plugins/classic-widgets/')
  3273       }, Object(external_wp_i18n_["__"])('Get the Classic Widgets plugin.')))))
  4446       }, (0,external_wp_i18n_namespaceObject.__)('Get the Classic Widgets plugin.')))))
  3274     }, {
  4447     }, {
  3275       image: Object(external_wp_element_["createElement"])(WelcomeGuideImage, {
  4448       image: (0,external_wp_element_namespaceObject.createElement)(WelcomeGuideImage, {
  3276         nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-editor.svg",
  4449         nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-editor.svg",
  3277         animatedSrc: "https://s.w.org/images/block-editor/welcome-editor.gif"
  4450         animatedSrc: "https://s.w.org/images/block-editor/welcome-editor.gif"
  3278       }),
  4451       }),
  3279       content: Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("h1", {
  4452       content: (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)("h1", {
  3280         className: "edit-widgets-welcome-guide__heading"
  4453         className: "edit-widgets-welcome-guide__heading"
  3281       }, Object(external_wp_i18n_["__"])('Make each block your own')), Object(external_wp_element_["createElement"])("p", {
  4454       }, (0,external_wp_i18n_namespaceObject.__)('Make each block your own')), (0,external_wp_element_namespaceObject.createElement)("p", {
  3282         className: "edit-widgets-welcome-guide__text"
  4455         className: "edit-widgets-welcome-guide__text"
  3283       }, Object(external_wp_i18n_["__"])('Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.')))
  4456       }, (0,external_wp_i18n_namespaceObject.__)('Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.')))
  3284     }, {
  4457     }, {
  3285       image: Object(external_wp_element_["createElement"])(WelcomeGuideImage, {
  4458       image: (0,external_wp_element_namespaceObject.createElement)(WelcomeGuideImage, {
  3286         nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-library.svg",
  4459         nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-library.svg",
  3287         animatedSrc: "https://s.w.org/images/block-editor/welcome-library.gif"
  4460         animatedSrc: "https://s.w.org/images/block-editor/welcome-library.gif"
  3288       }),
  4461       }),
  3289       content: Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("h1", {
  4462       content: (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)("h1", {
  3290         className: "edit-widgets-welcome-guide__heading"
  4463         className: "edit-widgets-welcome-guide__heading"
  3291       }, Object(external_wp_i18n_["__"])('Get to know the block library')), Object(external_wp_element_["createElement"])("p", {
  4464       }, (0,external_wp_i18n_namespaceObject.__)('Get to know the block library')), (0,external_wp_element_namespaceObject.createElement)("p", {
  3292         className: "edit-widgets-welcome-guide__text"
  4465         className: "edit-widgets-welcome-guide__text"
  3293       }, Object(external_wp_element_["createInterpolateElement"])(Object(external_wp_i18n_["__"])('All of the blocks available to you live in the block library. You’ll find it wherever you see the <InserterIconImage /> icon.'), {
  4466       }, (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('All of the blocks available to you live in the block library. You’ll find it wherever you see the <InserterIconImage /> icon.'), {
  3294         InserterIconImage: Object(external_wp_element_["createElement"])("img", {
  4467         InserterIconImage: (0,external_wp_element_namespaceObject.createElement)("img", {
  3295           className: "edit-widgets-welcome-guide__inserter-icon",
  4468           className: "edit-widgets-welcome-guide__inserter-icon",
  3296           alt: Object(external_wp_i18n_["__"])('inserter'),
  4469           alt: (0,external_wp_i18n_namespaceObject.__)('inserter'),
  3297           src: "data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"
  4470           src: "data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"
  3298         })
  4471         })
  3299       })))
  4472       })))
  3300     }, {
  4473     }, {
  3301       image: Object(external_wp_element_["createElement"])(WelcomeGuideImage, {
  4474       image: (0,external_wp_element_namespaceObject.createElement)(WelcomeGuideImage, {
  3302         nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-documentation.svg",
  4475         nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-documentation.svg",
  3303         animatedSrc: "https://s.w.org/images/block-editor/welcome-documentation.gif"
  4476         animatedSrc: "https://s.w.org/images/block-editor/welcome-documentation.gif"
  3304       }),
  4477       }),
  3305       content: Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("h1", {
  4478       content: (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)("h1", {
  3306         className: "edit-widgets-welcome-guide__heading"
  4479         className: "edit-widgets-welcome-guide__heading"
  3307       }, Object(external_wp_i18n_["__"])('Learn how to use the block editor')), Object(external_wp_element_["createElement"])("p", {
  4480       }, (0,external_wp_i18n_namespaceObject.__)('Learn how to use the block editor')), (0,external_wp_element_namespaceObject.createElement)("p", {
  3308         className: "edit-widgets-welcome-guide__text"
  4481         className: "edit-widgets-welcome-guide__text"
  3309       }, Object(external_wp_i18n_["__"])('New to the block editor? Want to learn more about using it? '), Object(external_wp_element_["createElement"])(external_wp_components_["ExternalLink"], {
  4482       }, (0,external_wp_i18n_namespaceObject.__)('New to the block editor? Want to learn more about using it? '), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ExternalLink, {
  3310         href: Object(external_wp_i18n_["__"])('https://wordpress.org/support/article/wordpress-editor/')
  4483         href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/support/article/wordpress-editor/')
  3311       }, Object(external_wp_i18n_["__"])("Here's a detailed guide."))))
  4484       }, (0,external_wp_i18n_namespaceObject.__)("Here's a detailed guide."))))
  3312     }]
  4485     }]
  3313   });
  4486   });
  3314 }
  4487 }
  3315 
  4488 
  3316 function WelcomeGuideImage({
  4489 function WelcomeGuideImage(_ref) {
  3317   nonAnimatedSrc,
  4490   let {
  3318   animatedSrc
  4491     nonAnimatedSrc,
  3319 }) {
  4492     animatedSrc
  3320   return Object(external_wp_element_["createElement"])("picture", {
  4493   } = _ref;
       
  4494   return (0,external_wp_element_namespaceObject.createElement)("picture", {
  3321     className: "edit-widgets-welcome-guide__image"
  4495     className: "edit-widgets-welcome-guide__image"
  3322   }, Object(external_wp_element_["createElement"])("source", {
  4496   }, (0,external_wp_element_namespaceObject.createElement)("source", {
  3323     srcSet: nonAnimatedSrc,
  4497     srcSet: nonAnimatedSrc,
  3324     media: "(prefers-reduced-motion: reduce)"
  4498     media: "(prefers-reduced-motion: reduce)"
  3325   }), Object(external_wp_element_["createElement"])("img", {
  4499   }), (0,external_wp_element_namespaceObject.createElement)("img", {
  3326     src: animatedSrc,
  4500     src: animatedSrc,
  3327     width: "312",
  4501     width: "312",
  3328     height: "240",
  4502     height: "240",
  3329     alt: ""
  4503     alt: ""
  3330   }));
  4504   }));
  3331 }
  4505 }
  3332 
  4506 
  3333 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/layout/index.js
  4507 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/components/layout/index.js
  3334 
  4508 
  3335 
  4509 
  3336 /**
  4510 /**
  3337  * WordPress dependencies
  4511  * WordPress dependencies
  3338  */
  4512  */
       
  4513 
       
  4514 
       
  4515 
  3339 
  4516 
  3340 
  4517 
  3341 /**
  4518 /**
  3342  * Internal dependencies
  4519  * Internal dependencies
  3343  */
  4520  */
  3347 
  4524 
  3348 
  4525 
  3349 
  4526 
  3350 
  4527 
  3351 
  4528 
  3352 function Layout({
  4529 function Layout(_ref) {
  3353   blockEditorSettings,
  4530   let {
  3354   onError
  4531     blockEditorSettings,
  3355 }) {
  4532     onError
  3356   return Object(external_wp_element_["createElement"])(error_boundary_ErrorBoundary, {
  4533   } = _ref;
       
  4534   const {
       
  4535     createErrorNotice
       
  4536   } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
       
  4537 
       
  4538   function onPluginAreaError(name) {
       
  4539     createErrorNotice((0,external_wp_i18n_namespaceObject.sprintf)(
       
  4540     /* translators: %s: plugin name */
       
  4541     (0,external_wp_i18n_namespaceObject.__)('The "%s" plugin has encountered an error and cannot be rendered.'), name));
       
  4542   }
       
  4543 
       
  4544   return (0,external_wp_element_namespaceObject.createElement)(ErrorBoundary, {
  3357     onError: onError
  4545     onError: onError
  3358   }, Object(external_wp_element_["createElement"])(WidgetAreasBlockEditorProvider, {
  4546   }, (0,external_wp_element_namespaceObject.createElement)(WidgetAreasBlockEditorProvider, {
  3359     blockEditorSettings: blockEditorSettings
  4547     blockEditorSettings: blockEditorSettings
  3360   }, Object(external_wp_element_["createElement"])(layout_interface, {
  4548   }, (0,external_wp_element_namespaceObject.createElement)(layout_interface, {
  3361     blockEditorSettings: blockEditorSettings
  4549     blockEditorSettings: blockEditorSettings
  3362   }), Object(external_wp_element_["createElement"])(Sidebar, null), Object(external_wp_element_["createElement"])(external_wp_components_["Popover"].Slot, null), Object(external_wp_element_["createElement"])(external_wp_plugins_["PluginArea"], null), Object(external_wp_element_["createElement"])(UnsavedChangesWarning, null), Object(external_wp_element_["createElement"])(WelcomeGuide, null)));
  4550   }), (0,external_wp_element_namespaceObject.createElement)(Sidebar, null), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Popover.Slot, null), (0,external_wp_element_namespaceObject.createElement)(external_wp_plugins_namespaceObject.PluginArea, {
       
  4551     onError: onPluginAreaError
       
  4552   }), (0,external_wp_element_namespaceObject.createElement)(UnsavedChangesWarning, null), (0,external_wp_element_namespaceObject.createElement)(WelcomeGuide, null)));
  3363 }
  4553 }
  3364 
  4554 
  3365 /* harmony default export */ var layout = (Layout);
  4555 /* harmony default export */ var layout = (Layout);
  3366 
  4556 
  3367 // CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/index.js
  4557 ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/index.js
  3368 
  4558 
  3369 
  4559 
  3370 /**
  4560 /**
  3371  * WordPress dependencies
  4561  * WordPress dependencies
  3372  */
  4562  */
       
  4563 
       
  4564 
  3373 
  4565 
  3374 
  4566 
  3375 
  4567 
  3376 
  4568 
  3377 
  4569 
  3382 
  4574 
  3383 
  4575 
  3384 
  4576 
  3385 
  4577 
  3386 
  4578 
  3387 const disabledBlocks = ['core/more', 'core/freeform', ...(!ALLOW_REUSABLE_BLOCKS && ['core/block'])];
  4579 const disabledBlocks = ['core/more', 'core/freeform', 'core/template-part', ...(ALLOW_REUSABLE_BLOCKS ? [] : ['core/block'])];
  3388 /**
  4580 /**
  3389  * Reinitializes the editor after the user chooses to reboot the editor after
  4581  * Reinitializes the editor after the user chooses to reboot the editor after
  3390  * an unhandled error occurs, replacing previously mounted editor element using
  4582  * an unhandled error occurs, replacing previously mounted editor element using
  3391  * an initial state from prior to the crash.
  4583  * an initial state from prior to the crash.
  3392  *
  4584  *
  3393  * @param {Element} target   DOM node in which editor is rendered.
  4585  * @param {Element} target   DOM node in which editor is rendered.
  3394  * @param {?Object} settings Editor settings object.
  4586  * @param {?Object} settings Editor settings object.
  3395  */
  4587  */
  3396 
  4588 
  3397 function reinitializeEditor(target, settings) {
  4589 function reinitializeEditor(target, settings) {
  3398   Object(external_wp_element_["unmountComponentAtNode"])(target);
  4590   (0,external_wp_element_namespaceObject.unmountComponentAtNode)(target);
  3399   const reboot = reinitializeEditor.bind(null, target, settings);
  4591   const reboot = reinitializeEditor.bind(null, target, settings);
  3400   Object(external_wp_element_["render"])(Object(external_wp_element_["createElement"])(layout, {
  4592   (0,external_wp_element_namespaceObject.render)((0,external_wp_element_namespaceObject.createElement)(layout, {
  3401     blockEditorSettings: settings,
  4593     blockEditorSettings: settings,
  3402     onError: reboot
  4594     onError: reboot
  3403   }), target);
  4595   }), target);
  3404 }
  4596 }
  3405 /**
  4597 /**
  3411 
  4603 
  3412 function initialize(id, settings) {
  4604 function initialize(id, settings) {
  3413   const target = document.getElementById(id);
  4605   const target = document.getElementById(id);
  3414   const reboot = reinitializeEditor.bind(null, target, settings);
  4606   const reboot = reinitializeEditor.bind(null, target, settings);
  3415 
  4607 
  3416   const coreBlocks = Object(external_wp_blockLibrary_["__experimentalGetCoreBlocks"])().filter(block => {
  4608   const coreBlocks = (0,external_wp_blockLibrary_namespaceObject.__experimentalGetCoreBlocks)().filter(block => {
  3417     return !(disabledBlocks.includes(block.name) || block.name.startsWith('core/post') || block.name.startsWith('core/query') || block.name.startsWith('core/site'));
  4609     return !(disabledBlocks.includes(block.name) || block.name.startsWith('core/post') || block.name.startsWith('core/query') || block.name.startsWith('core/site') || block.name.startsWith('core/navigation'));
  3418   });
  4610   });
  3419 
  4611 
  3420   Object(external_wp_blockLibrary_["registerCoreBlocks"])(coreBlocks);
  4612   (0,external_wp_data_namespaceObject.dispatch)(external_wp_preferences_namespaceObject.store).setDefaults('core/edit-widgets', {
  3421   Object(external_wp_widgets_["registerLegacyWidgetBlock"])();
  4613     fixedToolbar: false,
       
  4614     welcomeGuide: true,
       
  4615     showBlockBreadcrumbs: true,
       
  4616     themeStyles: true
       
  4617   });
       
  4618 
       
  4619   (0,external_wp_data_namespaceObject.dispatch)(external_wp_blocks_namespaceObject.store).__experimentalReapplyBlockTypeFilters();
       
  4620 
       
  4621   (0,external_wp_blockLibrary_namespaceObject.registerCoreBlocks)(coreBlocks);
       
  4622   (0,external_wp_widgets_namespaceObject.registerLegacyWidgetBlock)();
  3422 
  4623 
  3423   if (false) {}
  4624   if (false) {}
  3424 
  4625 
  3425   Object(external_wp_widgets_["registerLegacyWidgetVariations"])(settings);
  4626   (0,external_wp_widgets_namespaceObject.registerLegacyWidgetVariations)(settings);
  3426   registerBlock(widget_area_namespaceObject);
  4627   registerBlock(widget_area_namespaceObject);
  3427 
  4628   (0,external_wp_widgets_namespaceObject.registerWidgetGroupBlock)();
  3428   settings.__experimentalFetchLinkSuggestions = (search, searchOptions) => Object(external_wp_coreData_["__experimentalFetchLinkSuggestions"])(search, searchOptions, settings); // As we are unregistering `core/freeform` to avoid the Classic block, we must
  4629 
       
  4630   settings.__experimentalFetchLinkSuggestions = (search, searchOptions) => (0,external_wp_coreData_namespaceObject.__experimentalFetchLinkSuggestions)(search, searchOptions, settings); // As we are unregistering `core/freeform` to avoid the Classic block, we must
  3429   // replace it with something as the default freeform content handler. Failure to
  4631   // replace it with something as the default freeform content handler. Failure to
  3430   // do this will result in errors in the default block parser.
  4632   // do this will result in errors in the default block parser.
  3431   // see: https://github.com/WordPress/gutenberg/issues/33097
  4633   // see: https://github.com/WordPress/gutenberg/issues/33097
  3432 
  4634 
  3433 
  4635 
  3434   Object(external_wp_blocks_["setFreeformContentHandlerName"])('core/html');
  4636   (0,external_wp_blocks_namespaceObject.setFreeformContentHandlerName)('core/html');
  3435   Object(external_wp_element_["render"])(Object(external_wp_element_["createElement"])(layout, {
  4637   (0,external_wp_element_namespaceObject.render)((0,external_wp_element_namespaceObject.createElement)(layout, {
  3436     blockEditorSettings: settings,
  4638     blockEditorSettings: settings,
  3437     onError: reboot
  4639     onError: reboot
  3438   }), target);
  4640   }), target);
  3439 }
  4641 }
  3440 /**
  4642 /**
  3454     settings,
  4656     settings,
  3455     name
  4657     name
  3456   } = block;
  4658   } = block;
  3457 
  4659 
  3458   if (metadata) {
  4660   if (metadata) {
  3459     Object(external_wp_blocks_["unstable__bootstrapServerSideBlockDefinitions"])({
  4661     (0,external_wp_blocks_namespaceObject.unstable__bootstrapServerSideBlockDefinitions)({
  3460       [name]: metadata
  4662       [name]: metadata
  3461     });
  4663     });
  3462   }
  4664   }
  3463 
  4665 
  3464   Object(external_wp_blocks_["registerBlockType"])(name, settings);
  4666   (0,external_wp_blocks_namespaceObject.registerBlockType)(name, settings);
  3465 };
  4667 };
  3466 
  4668 
  3467 
  4669 }();
  3468 /***/ }),
  4670 (window.wp = window.wp || {}).editWidgets = __webpack_exports__;
  3469 
  4671 /******/ })()
  3470 /***/ "GLVC":
  4672 ;
  3471 /***/ (function(module, exports) {
       
  3472 
       
  3473 (function() { module.exports = window["wp"]["widgets"]; }());
       
  3474 
       
  3475 /***/ }),
       
  3476 
       
  3477 /***/ "GRId":
       
  3478 /***/ (function(module, exports) {
       
  3479 
       
  3480 (function() { module.exports = window["wp"]["element"]; }());
       
  3481 
       
  3482 /***/ }),
       
  3483 
       
  3484 /***/ "HSyU":
       
  3485 /***/ (function(module, exports) {
       
  3486 
       
  3487 (function() { module.exports = window["wp"]["blocks"]; }());
       
  3488 
       
  3489 /***/ }),
       
  3490 
       
  3491 /***/ "K+tz":
       
  3492 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
  3493 
       
  3494 "use strict";
       
  3495 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
       
  3496 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
       
  3497 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
       
  3498 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
       
  3499 
       
  3500 
       
  3501 /**
       
  3502  * WordPress dependencies
       
  3503  */
       
  3504 
       
  3505 const external = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
       
  3506   xmlns: "http://www.w3.org/2000/svg",
       
  3507   viewBox: "0 0 24 24"
       
  3508 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
       
  3509   d: "M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"
       
  3510 }));
       
  3511 /* harmony default export */ __webpack_exports__["a"] = (external);
       
  3512 
       
  3513 
       
  3514 /***/ }),
       
  3515 
       
  3516 /***/ "K2cm":
       
  3517 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
  3518 
       
  3519 "use strict";
       
  3520 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
       
  3521 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
       
  3522 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
       
  3523 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
       
  3524 
       
  3525 
       
  3526 /**
       
  3527  * WordPress dependencies
       
  3528  */
       
  3529 
       
  3530 const redo = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
       
  3531   xmlns: "http://www.w3.org/2000/svg",
       
  3532   viewBox: "0 0 24 24"
       
  3533 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
       
  3534   d: "M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"
       
  3535 }));
       
  3536 /* harmony default export */ __webpack_exports__["a"] = (redo);
       
  3537 
       
  3538 
       
  3539 /***/ }),
       
  3540 
       
  3541 /***/ "K9lf":
       
  3542 /***/ (function(module, exports) {
       
  3543 
       
  3544 (function() { module.exports = window["wp"]["compose"]; }());
       
  3545 
       
  3546 /***/ }),
       
  3547 
       
  3548 /***/ "KEfo":
       
  3549 /***/ (function(module, exports) {
       
  3550 
       
  3551 (function() { module.exports = window["wp"]["viewport"]; }());
       
  3552 
       
  3553 /***/ }),
       
  3554 
       
  3555 /***/ "Mmq9":
       
  3556 /***/ (function(module, exports) {
       
  3557 
       
  3558 (function() { module.exports = window["wp"]["url"]; }());
       
  3559 
       
  3560 /***/ }),
       
  3561 
       
  3562 /***/ "Ntru":
       
  3563 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
  3564 
       
  3565 "use strict";
       
  3566 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
       
  3567 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
       
  3568 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
       
  3569 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
       
  3570 
       
  3571 
       
  3572 /**
       
  3573  * WordPress dependencies
       
  3574  */
       
  3575 
       
  3576 const undo = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
       
  3577   xmlns: "http://www.w3.org/2000/svg",
       
  3578   viewBox: "0 0 24 24"
       
  3579 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
       
  3580   d: "M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"
       
  3581 }));
       
  3582 /* harmony default export */ __webpack_exports__["a"] = (undo);
       
  3583 
       
  3584 
       
  3585 /***/ }),
       
  3586 
       
  3587 /***/ "Q4Sy":
       
  3588 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
  3589 
       
  3590 "use strict";
       
  3591 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
       
  3592 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
       
  3593 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
       
  3594 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
       
  3595 
       
  3596 
       
  3597 /**
       
  3598  * WordPress dependencies
       
  3599  */
       
  3600 
       
  3601 const plus = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
       
  3602   xmlns: "http://www.w3.org/2000/svg",
       
  3603   viewBox: "0 0 24 24"
       
  3604 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
       
  3605   d: "M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"
       
  3606 }));
       
  3607 /* harmony default export */ __webpack_exports__["a"] = (plus);
       
  3608 
       
  3609 
       
  3610 /***/ }),
       
  3611 
       
  3612 /***/ "QyPg":
       
  3613 /***/ (function(module, exports) {
       
  3614 
       
  3615 (function() { module.exports = window["wp"]["blockLibrary"]; }());
       
  3616 
       
  3617 /***/ }),
       
  3618 
       
  3619 /***/ "RMJe":
       
  3620 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
  3621 
       
  3622 "use strict";
       
  3623 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
       
  3624 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
       
  3625 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
       
  3626 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
       
  3627 
       
  3628 
       
  3629 /**
       
  3630  * WordPress dependencies
       
  3631  */
       
  3632 
       
  3633 const check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
       
  3634   xmlns: "http://www.w3.org/2000/svg",
       
  3635   viewBox: "0 0 24 24"
       
  3636 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
       
  3637   d: "M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"
       
  3638 }));
       
  3639 /* harmony default export */ __webpack_exports__["a"] = (check);
       
  3640 
       
  3641 
       
  3642 /***/ }),
       
  3643 
       
  3644 /***/ "RxS6":
       
  3645 /***/ (function(module, exports) {
       
  3646 
       
  3647 (function() { module.exports = window["wp"]["keycodes"]; }());
       
  3648 
       
  3649 /***/ }),
       
  3650 
       
  3651 /***/ "TSYQ":
       
  3652 /***/ (function(module, exports, __webpack_require__) {
       
  3653 
       
  3654 var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
       
  3655   Copyright (c) 2018 Jed Watson.
       
  3656   Licensed under the MIT License (MIT), see
       
  3657   http://jedwatson.github.io/classnames
       
  3658 */
       
  3659 /* global define */
       
  3660 
       
  3661 (function () {
       
  3662 	'use strict';
       
  3663 
       
  3664 	var hasOwn = {}.hasOwnProperty;
       
  3665 
       
  3666 	function classNames() {
       
  3667 		var classes = [];
       
  3668 
       
  3669 		for (var i = 0; i < arguments.length; i++) {
       
  3670 			var arg = arguments[i];
       
  3671 			if (!arg) continue;
       
  3672 
       
  3673 			var argType = typeof arg;
       
  3674 
       
  3675 			if (argType === 'string' || argType === 'number') {
       
  3676 				classes.push(arg);
       
  3677 			} else if (Array.isArray(arg)) {
       
  3678 				if (arg.length) {
       
  3679 					var inner = classNames.apply(null, arg);
       
  3680 					if (inner) {
       
  3681 						classes.push(inner);
       
  3682 					}
       
  3683 				}
       
  3684 			} else if (argType === 'object') {
       
  3685 				if (arg.toString === Object.prototype.toString) {
       
  3686 					for (var key in arg) {
       
  3687 						if (hasOwn.call(arg, key) && arg[key]) {
       
  3688 							classes.push(key);
       
  3689 						}
       
  3690 					}
       
  3691 				} else {
       
  3692 					classes.push(arg.toString());
       
  3693 				}
       
  3694 			}
       
  3695 		}
       
  3696 
       
  3697 		return classes.join(' ');
       
  3698 	}
       
  3699 
       
  3700 	if ( true && module.exports) {
       
  3701 		classNames.default = classNames;
       
  3702 		module.exports = classNames;
       
  3703 	} else if (true) {
       
  3704 		// register as 'classnames', consistent with npm package name
       
  3705 		!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
       
  3706 			return classNames;
       
  3707 		}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
       
  3708 				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
       
  3709 	} else {}
       
  3710 }());
       
  3711 
       
  3712 
       
  3713 /***/ }),
       
  3714 
       
  3715 /***/ "Tqx9":
       
  3716 /***/ (function(module, exports) {
       
  3717 
       
  3718 (function() { module.exports = window["wp"]["primitives"]; }());
       
  3719 
       
  3720 /***/ }),
       
  3721 
       
  3722 /***/ "TvNi":
       
  3723 /***/ (function(module, exports) {
       
  3724 
       
  3725 (function() { module.exports = window["wp"]["plugins"]; }());
       
  3726 
       
  3727 /***/ }),
       
  3728 
       
  3729 /***/ "U60i":
       
  3730 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
  3731 
       
  3732 "use strict";
       
  3733 
       
  3734 // EXPORTS
       
  3735 __webpack_require__.d(__webpack_exports__, "g", function() { return /* reexport */ store; });
       
  3736 __webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ complementary_area; });
       
  3737 __webpack_require__.d(__webpack_exports__, "c", function() { return /* reexport */ ComplementaryAreaMoreMenuItem; });
       
  3738 __webpack_require__.d(__webpack_exports__, "d", function() { return /* reexport */ fullscreen_mode; });
       
  3739 __webpack_require__.d(__webpack_exports__, "e", function() { return /* reexport */ interface_skeleton; });
       
  3740 __webpack_require__.d(__webpack_exports__, "f", function() { return /* reexport */ pinned_items; });
       
  3741 __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ action_item; });
       
  3742 
       
  3743 // NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/store/actions.js
       
  3744 var actions_namespaceObject = {};
       
  3745 __webpack_require__.r(actions_namespaceObject);
       
  3746 __webpack_require__.d(actions_namespaceObject, "enableComplementaryArea", function() { return actions_enableComplementaryArea; });
       
  3747 __webpack_require__.d(actions_namespaceObject, "disableComplementaryArea", function() { return actions_disableComplementaryArea; });
       
  3748 __webpack_require__.d(actions_namespaceObject, "pinItem", function() { return actions_pinItem; });
       
  3749 __webpack_require__.d(actions_namespaceObject, "unpinItem", function() { return actions_unpinItem; });
       
  3750 
       
  3751 // NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/store/selectors.js
       
  3752 var selectors_namespaceObject = {};
       
  3753 __webpack_require__.r(selectors_namespaceObject);
       
  3754 __webpack_require__.d(selectors_namespaceObject, "getActiveComplementaryArea", function() { return selectors_getActiveComplementaryArea; });
       
  3755 __webpack_require__.d(selectors_namespaceObject, "isItemPinned", function() { return selectors_isItemPinned; });
       
  3756 
       
  3757 // EXTERNAL MODULE: external ["wp","data"]
       
  3758 var external_wp_data_ = __webpack_require__("1ZqX");
       
  3759 
       
  3760 // EXTERNAL MODULE: external "lodash"
       
  3761 var external_lodash_ = __webpack_require__("YLtl");
       
  3762 
       
  3763 // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/reducer.js
       
  3764 /**
       
  3765  * External dependencies
       
  3766  */
       
  3767 
       
  3768 /**
       
  3769  * WordPress dependencies
       
  3770  */
       
  3771 
       
  3772 
       
  3773 /**
       
  3774  * Reducer to keep tract of the active area per scope.
       
  3775  *
       
  3776  * @param {boolean} state           Previous state.
       
  3777  * @param {Object}  action          Action object.
       
  3778  * @param {string}  action.type     Action type.
       
  3779  * @param {string}  action.itemType Type of item.
       
  3780  * @param {string}  action.scope    Item scope.
       
  3781  * @param {string}  action.item     Item name.
       
  3782  *
       
  3783  * @return {Object} Updated state.
       
  3784  */
       
  3785 
       
  3786 function singleEnableItems(state = {}, {
       
  3787   type,
       
  3788   itemType,
       
  3789   scope,
       
  3790   item
       
  3791 }) {
       
  3792   if (type !== 'SET_SINGLE_ENABLE_ITEM' || !itemType || !scope) {
       
  3793     return state;
       
  3794   }
       
  3795 
       
  3796   return { ...state,
       
  3797     [itemType]: { ...state[itemType],
       
  3798       [scope]: item || null
       
  3799     }
       
  3800   };
       
  3801 }
       
  3802 /**
       
  3803  * Reducer keeping track of the "pinned" items per scope.
       
  3804  *
       
  3805  * @param {boolean} state           Previous state.
       
  3806  * @param {Object}  action          Action object.
       
  3807  * @param {string}  action.type     Action type.
       
  3808  * @param {string}  action.itemType Type of item.
       
  3809  * @param {string}  action.scope    Item scope.
       
  3810  * @param {string}  action.item     Item name.
       
  3811  * @param {boolean} action.isEnable Whether the item is pinned.
       
  3812  *
       
  3813  * @return {Object} Updated state.
       
  3814  */
       
  3815 
       
  3816 function multipleEnableItems(state = {}, {
       
  3817   type,
       
  3818   itemType,
       
  3819   scope,
       
  3820   item,
       
  3821   isEnable
       
  3822 }) {
       
  3823   if (type !== 'SET_MULTIPLE_ENABLE_ITEM' || !itemType || !scope || !item || Object(external_lodash_["get"])(state, [itemType, scope, item]) === isEnable) {
       
  3824     return state;
       
  3825   }
       
  3826 
       
  3827   const currentTypeState = state[itemType] || {};
       
  3828   const currentScopeState = currentTypeState[scope] || {};
       
  3829   return { ...state,
       
  3830     [itemType]: { ...currentTypeState,
       
  3831       [scope]: { ...currentScopeState,
       
  3832         [item]: isEnable || false
       
  3833       }
       
  3834     }
       
  3835   };
       
  3836 }
       
  3837 const enableItems = Object(external_wp_data_["combineReducers"])({
       
  3838   singleEnableItems,
       
  3839   multipleEnableItems
       
  3840 });
       
  3841 /* harmony default export */ var reducer = (Object(external_wp_data_["combineReducers"])({
       
  3842   enableItems
       
  3843 }));
       
  3844 
       
  3845 // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/actions.js
       
  3846 /**
       
  3847  * Returns an action object used in signalling that an active area should be changed.
       
  3848  *
       
  3849  * @param {string} itemType Type of item.
       
  3850  * @param {string} scope    Item scope.
       
  3851  * @param {string} item     Item identifier.
       
  3852  *
       
  3853  * @return {Object} Action object.
       
  3854  */
       
  3855 function setSingleEnableItem(itemType, scope, item) {
       
  3856   return {
       
  3857     type: 'SET_SINGLE_ENABLE_ITEM',
       
  3858     itemType,
       
  3859     scope,
       
  3860     item
       
  3861   };
       
  3862 }
       
  3863 /**
       
  3864  * Returns an action object used in signalling that a complementary item should be enabled.
       
  3865  *
       
  3866  * @param {string} scope Complementary area scope.
       
  3867  * @param {string} area  Area identifier.
       
  3868  *
       
  3869  * @return {Object} Action object.
       
  3870  */
       
  3871 
       
  3872 
       
  3873 function actions_enableComplementaryArea(scope, area) {
       
  3874   return setSingleEnableItem('complementaryArea', scope, area);
       
  3875 }
       
  3876 /**
       
  3877  * Returns an action object used in signalling that the complementary area of a given scope should be disabled.
       
  3878  *
       
  3879  * @param {string} scope Complementary area scope.
       
  3880  *
       
  3881  * @return {Object} Action object.
       
  3882  */
       
  3883 
       
  3884 function actions_disableComplementaryArea(scope) {
       
  3885   return setSingleEnableItem('complementaryArea', scope, undefined);
       
  3886 }
       
  3887 /**
       
  3888  * Returns an action object to make an area enabled/disabled.
       
  3889  *
       
  3890  * @param {string}  itemType Type of item.
       
  3891  * @param {string}  scope    Item scope.
       
  3892  * @param {string}  item     Item identifier.
       
  3893  * @param {boolean} isEnable Boolean indicating if an area should be pinned or not.
       
  3894  *
       
  3895  * @return {Object} Action object.
       
  3896  */
       
  3897 
       
  3898 function setMultipleEnableItem(itemType, scope, item, isEnable) {
       
  3899   return {
       
  3900     type: 'SET_MULTIPLE_ENABLE_ITEM',
       
  3901     itemType,
       
  3902     scope,
       
  3903     item,
       
  3904     isEnable
       
  3905   };
       
  3906 }
       
  3907 /**
       
  3908  * Returns an action object used in signalling that an item should be pinned.
       
  3909  *
       
  3910  * @param {string} scope  Item scope.
       
  3911  * @param {string} itemId Item identifier.
       
  3912  *
       
  3913  * @return {Object} Action object.
       
  3914  */
       
  3915 
       
  3916 
       
  3917 function actions_pinItem(scope, itemId) {
       
  3918   return setMultipleEnableItem('pinnedItems', scope, itemId, true);
       
  3919 }
       
  3920 /**
       
  3921  * Returns an action object used in signalling that an item should be unpinned.
       
  3922  *
       
  3923  * @param {string} scope  Item scope.
       
  3924  * @param {string} itemId Item identifier.
       
  3925  *
       
  3926  * @return {Object} Action object.
       
  3927  */
       
  3928 
       
  3929 function actions_unpinItem(scope, itemId) {
       
  3930   return setMultipleEnableItem('pinnedItems', scope, itemId, false);
       
  3931 }
       
  3932 
       
  3933 // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/selectors.js
       
  3934 /**
       
  3935  * External dependencies
       
  3936  */
       
  3937 
       
  3938 /**
       
  3939  * Returns the item that is enabled in a given scope.
       
  3940  *
       
  3941  * @param {Object} state    Global application state.
       
  3942  * @param {string} itemType Type of item.
       
  3943  * @param {string} scope    Item scope.
       
  3944  *
       
  3945  * @return {?string|null} The item that is enabled in the passed scope and type.
       
  3946  */
       
  3947 
       
  3948 function getSingleEnableItem(state, itemType, scope) {
       
  3949   return Object(external_lodash_["get"])(state.enableItems.singleEnableItems, [itemType, scope]);
       
  3950 }
       
  3951 /**
       
  3952  * Returns the complementary area that is active in a given scope.
       
  3953  *
       
  3954  * @param {Object} state    Global application state.
       
  3955  * @param {string} scope    Item scope.
       
  3956  *
       
  3957  * @return {string} The complementary area that is active in the given scope.
       
  3958  */
       
  3959 
       
  3960 
       
  3961 function selectors_getActiveComplementaryArea(state, scope) {
       
  3962   return getSingleEnableItem(state, 'complementaryArea', scope);
       
  3963 }
       
  3964 /**
       
  3965  * Returns a boolean indicating if an item is enabled or not in a given scope.
       
  3966  *
       
  3967  * @param {Object} state    Global application state.
       
  3968  * @param {string} itemType Type of item.
       
  3969  * @param {string} scope    Scope.
       
  3970  * @param {string} item     Item to check.
       
  3971  *
       
  3972  * @return {boolean|undefined} True if the item is enabled, false otherwise if the item is explicitly disabled, and undefined if there is no information for that item.
       
  3973  */
       
  3974 
       
  3975 function isMultipleEnabledItemEnabled(state, itemType, scope, item) {
       
  3976   return Object(external_lodash_["get"])(state.enableItems.multipleEnableItems, [itemType, scope, item]);
       
  3977 }
       
  3978 /**
       
  3979  * Returns a boolean indicating if an item is pinned or not.
       
  3980  *
       
  3981  * @param {Object} state    Global application state.
       
  3982  * @param {string} scope    Scope.
       
  3983  * @param {string} item     Item to check.
       
  3984  *
       
  3985  * @return {boolean} True if the item is pinned and false otherwise.
       
  3986  */
       
  3987 
       
  3988 
       
  3989 function selectors_isItemPinned(state, scope, item) {
       
  3990   return isMultipleEnabledItemEnabled(state, 'pinnedItems', scope, item) !== false;
       
  3991 }
       
  3992 
       
  3993 // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/constants.js
       
  3994 /**
       
  3995  * The identifier for the data store.
       
  3996  *
       
  3997  * @type {string}
       
  3998  */
       
  3999 const STORE_NAME = 'core/interface';
       
  4000 
       
  4001 // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/index.js
       
  4002 /**
       
  4003  * WordPress dependencies
       
  4004  */
       
  4005 
       
  4006 /**
       
  4007  * Internal dependencies
       
  4008  */
       
  4009 
       
  4010 
       
  4011 
       
  4012 
       
  4013 
       
  4014 /**
       
  4015  * Store definition for the interface namespace.
       
  4016  *
       
  4017  * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
       
  4018  *
       
  4019  * @type {Object}
       
  4020  */
       
  4021 
       
  4022 const store = Object(external_wp_data_["createReduxStore"])(STORE_NAME, {
       
  4023   reducer: reducer,
       
  4024   actions: actions_namespaceObject,
       
  4025   selectors: selectors_namespaceObject,
       
  4026   persist: ['enableItems']
       
  4027 }); // Once we build a more generic persistence plugin that works across types of stores
       
  4028 // we'd be able to replace this with a register call.
       
  4029 
       
  4030 Object(external_wp_data_["registerStore"])(STORE_NAME, {
       
  4031   reducer: reducer,
       
  4032   actions: actions_namespaceObject,
       
  4033   selectors: selectors_namespaceObject,
       
  4034   persist: ['enableItems']
       
  4035 });
       
  4036 
       
  4037 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
       
  4038 var esm_extends = __webpack_require__("wx14");
       
  4039 
       
  4040 // EXTERNAL MODULE: external ["wp","element"]
       
  4041 var external_wp_element_ = __webpack_require__("GRId");
       
  4042 
       
  4043 // EXTERNAL MODULE: ./node_modules/classnames/index.js
       
  4044 var classnames = __webpack_require__("TSYQ");
       
  4045 var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
       
  4046 
       
  4047 // EXTERNAL MODULE: external ["wp","components"]
       
  4048 var external_wp_components_ = __webpack_require__("tI+e");
       
  4049 
       
  4050 // EXTERNAL MODULE: external ["wp","i18n"]
       
  4051 var external_wp_i18n_ = __webpack_require__("l3Sj");
       
  4052 
       
  4053 // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js
       
  4054 var check = __webpack_require__("RMJe");
       
  4055 
       
  4056 // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js
       
  4057 var star_filled = __webpack_require__("URob");
       
  4058 
       
  4059 // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-empty.js
       
  4060 var star_empty = __webpack_require__("Xxwi");
       
  4061 
       
  4062 // EXTERNAL MODULE: external ["wp","viewport"]
       
  4063 var external_wp_viewport_ = __webpack_require__("KEfo");
       
  4064 
       
  4065 // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js
       
  4066 var close_small = __webpack_require__("bWcr");
       
  4067 
       
  4068 // EXTERNAL MODULE: external ["wp","plugins"]
       
  4069 var external_wp_plugins_ = __webpack_require__("TvNi");
       
  4070 
       
  4071 // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-context/index.js
       
  4072 /**
       
  4073  * WordPress dependencies
       
  4074  */
       
  4075 
       
  4076 /* harmony default export */ var complementary_area_context = (Object(external_wp_plugins_["withPluginContext"])((context, ownProps) => {
       
  4077   return {
       
  4078     icon: ownProps.icon || context.icon,
       
  4079     identifier: ownProps.identifier || `${context.name}/${ownProps.name}`
       
  4080   };
       
  4081 }));
       
  4082 
       
  4083 // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-toggle/index.js
       
  4084 
       
  4085 
       
  4086 
       
  4087 /**
       
  4088  * External dependencies
       
  4089  */
       
  4090 
       
  4091 /**
       
  4092  * WordPress dependencies
       
  4093  */
       
  4094 
       
  4095 
       
  4096 
       
  4097 /**
       
  4098  * Internal dependencies
       
  4099  */
       
  4100 
       
  4101 
       
  4102 
       
  4103 
       
  4104 function ComplementaryAreaToggle({
       
  4105   as = external_wp_components_["Button"],
       
  4106   scope,
       
  4107   identifier,
       
  4108   icon,
       
  4109   selectedIcon,
       
  4110   ...props
       
  4111 }) {
       
  4112   const ComponentToUse = as;
       
  4113   const isSelected = Object(external_wp_data_["useSelect"])(select => select(store).getActiveComplementaryArea(scope) === identifier, [identifier]);
       
  4114   const {
       
  4115     enableComplementaryArea,
       
  4116     disableComplementaryArea
       
  4117   } = Object(external_wp_data_["useDispatch"])(store);
       
  4118   return Object(external_wp_element_["createElement"])(ComponentToUse, Object(esm_extends["a" /* default */])({
       
  4119     icon: selectedIcon && isSelected ? selectedIcon : icon,
       
  4120     onClick: () => {
       
  4121       if (isSelected) {
       
  4122         disableComplementaryArea(scope);
       
  4123       } else {
       
  4124         enableComplementaryArea(scope, identifier);
       
  4125       }
       
  4126     }
       
  4127   }, Object(external_lodash_["omit"])(props, ['name'])));
       
  4128 }
       
  4129 
       
  4130 /* harmony default export */ var complementary_area_toggle = (complementary_area_context(ComplementaryAreaToggle));
       
  4131 
       
  4132 // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-header/index.js
       
  4133 
       
  4134 
       
  4135 
       
  4136 /**
       
  4137  * External dependencies
       
  4138  */
       
  4139 
       
  4140 /**
       
  4141  * WordPress dependencies
       
  4142  */
       
  4143 
       
  4144 
       
  4145 /**
       
  4146  * Internal dependencies
       
  4147  */
       
  4148 
       
  4149 
       
  4150 
       
  4151 const ComplementaryAreaHeader = ({
       
  4152   smallScreenTitle,
       
  4153   children,
       
  4154   className,
       
  4155   toggleButtonProps
       
  4156 }) => {
       
  4157   const toggleButton = Object(external_wp_element_["createElement"])(complementary_area_toggle, Object(esm_extends["a" /* default */])({
       
  4158     icon: close_small["a" /* default */]
       
  4159   }, toggleButtonProps));
       
  4160   return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("div", {
       
  4161     className: "components-panel__header interface-complementary-area-header__small"
       
  4162   }, smallScreenTitle && Object(external_wp_element_["createElement"])("span", {
       
  4163     className: "interface-complementary-area-header__small-title"
       
  4164   }, smallScreenTitle), toggleButton), Object(external_wp_element_["createElement"])("div", {
       
  4165     className: classnames_default()('components-panel__header', 'interface-complementary-area-header', className),
       
  4166     tabIndex: -1
       
  4167   }, children, toggleButton));
       
  4168 };
       
  4169 
       
  4170 /* harmony default export */ var complementary_area_header = (ComplementaryAreaHeader);
       
  4171 
       
  4172 // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/action-item/index.js
       
  4173 
       
  4174 
       
  4175 
       
  4176 /**
       
  4177  * External dependencies
       
  4178  */
       
  4179 
       
  4180 /**
       
  4181  * WordPress dependencies
       
  4182  */
       
  4183 
       
  4184 
       
  4185 
       
  4186 
       
  4187 function ActionItemSlot({
       
  4188   name,
       
  4189   as: Component = external_wp_components_["ButtonGroup"],
       
  4190   fillProps = {},
       
  4191   bubblesVirtually,
       
  4192   ...props
       
  4193 }) {
       
  4194   return Object(external_wp_element_["createElement"])(external_wp_components_["Slot"], {
       
  4195     name: name,
       
  4196     bubblesVirtually: bubblesVirtually,
       
  4197     fillProps: fillProps
       
  4198   }, fills => {
       
  4199     if (Object(external_lodash_["isEmpty"])(external_wp_element_["Children"].toArray(fills))) {
       
  4200       return null;
       
  4201     } // Special handling exists for backward compatibility.
       
  4202     // It ensures that menu items created by plugin authors aren't
       
  4203     // duplicated with automatically injected menu items coming
       
  4204     // from pinnable plugin sidebars.
       
  4205     // @see https://github.com/WordPress/gutenberg/issues/14457
       
  4206 
       
  4207 
       
  4208     const initializedByPlugins = [];
       
  4209     external_wp_element_["Children"].forEach(fills, ({
       
  4210       props: {
       
  4211         __unstableExplicitMenuItem,
       
  4212         __unstableTarget
       
  4213       }
       
  4214     }) => {
       
  4215       if (__unstableTarget && __unstableExplicitMenuItem) {
       
  4216         initializedByPlugins.push(__unstableTarget);
       
  4217       }
       
  4218     });
       
  4219     const children = external_wp_element_["Children"].map(fills, child => {
       
  4220       if (!child.props.__unstableExplicitMenuItem && initializedByPlugins.includes(child.props.__unstableTarget)) {
       
  4221         return null;
       
  4222       }
       
  4223 
       
  4224       return child;
       
  4225     });
       
  4226     return Object(external_wp_element_["createElement"])(Component, props, children);
       
  4227   });
       
  4228 }
       
  4229 
       
  4230 function ActionItem({
       
  4231   name,
       
  4232   as: Component = external_wp_components_["Button"],
       
  4233   onClick,
       
  4234   ...props
       
  4235 }) {
       
  4236   return Object(external_wp_element_["createElement"])(external_wp_components_["Fill"], {
       
  4237     name: name
       
  4238   }, ({
       
  4239     onClick: fpOnClick
       
  4240   }) => {
       
  4241     return Object(external_wp_element_["createElement"])(Component, Object(esm_extends["a" /* default */])({
       
  4242       onClick: onClick || fpOnClick ? (...args) => {
       
  4243         (onClick || external_lodash_["noop"])(...args);
       
  4244         (fpOnClick || external_lodash_["noop"])(...args);
       
  4245       } : undefined
       
  4246     }, props));
       
  4247   });
       
  4248 }
       
  4249 
       
  4250 ActionItem.Slot = ActionItemSlot;
       
  4251 /* harmony default export */ var action_item = (ActionItem);
       
  4252 
       
  4253 // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-more-menu-item/index.js
       
  4254 
       
  4255 
       
  4256 
       
  4257 /**
       
  4258  * External dependencies
       
  4259  */
       
  4260 
       
  4261 /**
       
  4262  * WordPress dependencies
       
  4263  */
       
  4264 
       
  4265 
       
  4266 
       
  4267 /**
       
  4268  * Internal dependencies
       
  4269  */
       
  4270 
       
  4271 
       
  4272 
       
  4273 
       
  4274 const PluginsMenuItem = props => // Menu item is marked with unstable prop for backward compatibility.
       
  4275 // They are removed so they don't leak to DOM elements.
       
  4276 // @see https://github.com/WordPress/gutenberg/issues/14457
       
  4277 Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], Object(external_lodash_["omit"])(props, ['__unstableExplicitMenuItem', '__unstableTarget']));
       
  4278 
       
  4279 function ComplementaryAreaMoreMenuItem({
       
  4280   scope,
       
  4281   target,
       
  4282   __unstableExplicitMenuItem,
       
  4283   ...props
       
  4284 }) {
       
  4285   return Object(external_wp_element_["createElement"])(complementary_area_toggle, Object(esm_extends["a" /* default */])({
       
  4286     as: toggleProps => {
       
  4287       return Object(external_wp_element_["createElement"])(action_item, Object(esm_extends["a" /* default */])({
       
  4288         __unstableExplicitMenuItem: __unstableExplicitMenuItem,
       
  4289         __unstableTarget: `${scope}/${target}`,
       
  4290         as: PluginsMenuItem,
       
  4291         name: `${scope}/plugin-more-menu`
       
  4292       }, toggleProps));
       
  4293     },
       
  4294     role: "menuitemcheckbox",
       
  4295     selectedIcon: check["a" /* default */],
       
  4296     name: target,
       
  4297     scope: scope
       
  4298   }, props));
       
  4299 }
       
  4300 
       
  4301 // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/pinned-items/index.js
       
  4302 
       
  4303 
       
  4304 
       
  4305 /**
       
  4306  * External dependencies
       
  4307  */
       
  4308 
       
  4309 
       
  4310 /**
       
  4311  * WordPress dependencies
       
  4312  */
       
  4313 
       
  4314 
       
  4315 
       
  4316 function PinnedItems({
       
  4317   scope,
       
  4318   ...props
       
  4319 }) {
       
  4320   return Object(external_wp_element_["createElement"])(external_wp_components_["Fill"], Object(esm_extends["a" /* default */])({
       
  4321     name: `PinnedItems/${scope}`
       
  4322   }, props));
       
  4323 }
       
  4324 
       
  4325 function PinnedItemsSlot({
       
  4326   scope,
       
  4327   className,
       
  4328   ...props
       
  4329 }) {
       
  4330   return Object(external_wp_element_["createElement"])(external_wp_components_["Slot"], Object(esm_extends["a" /* default */])({
       
  4331     name: `PinnedItems/${scope}`
       
  4332   }, props), fills => !Object(external_lodash_["isEmpty"])(fills) && Object(external_wp_element_["createElement"])("div", {
       
  4333     className: classnames_default()(className, 'interface-pinned-items')
       
  4334   }, fills));
       
  4335 }
       
  4336 
       
  4337 PinnedItems.Slot = PinnedItemsSlot;
       
  4338 /* harmony default export */ var pinned_items = (PinnedItems);
       
  4339 
       
  4340 // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area/index.js
       
  4341 
       
  4342 
       
  4343 
       
  4344 /**
       
  4345  * External dependencies
       
  4346  */
       
  4347 
       
  4348 /**
       
  4349  * WordPress dependencies
       
  4350  */
       
  4351 
       
  4352 
       
  4353 
       
  4354 
       
  4355 
       
  4356 
       
  4357 
       
  4358 /**
       
  4359  * Internal dependencies
       
  4360  */
       
  4361 
       
  4362 
       
  4363 
       
  4364 
       
  4365 
       
  4366 
       
  4367 
       
  4368 
       
  4369 function ComplementaryAreaSlot({
       
  4370   scope,
       
  4371   ...props
       
  4372 }) {
       
  4373   return Object(external_wp_element_["createElement"])(external_wp_components_["Slot"], Object(esm_extends["a" /* default */])({
       
  4374     name: `ComplementaryArea/${scope}`
       
  4375   }, props));
       
  4376 }
       
  4377 
       
  4378 function ComplementaryAreaFill({
       
  4379   scope,
       
  4380   children,
       
  4381   className
       
  4382 }) {
       
  4383   return Object(external_wp_element_["createElement"])(external_wp_components_["Fill"], {
       
  4384     name: `ComplementaryArea/${scope}`
       
  4385   }, Object(external_wp_element_["createElement"])("div", {
       
  4386     className: className
       
  4387   }, children));
       
  4388 }
       
  4389 
       
  4390 function useAdjustComplementaryListener(scope, identifier, activeArea, isActive, isSmall) {
       
  4391   const previousIsSmall = Object(external_wp_element_["useRef"])(false);
       
  4392   const shouldOpenWhenNotSmall = Object(external_wp_element_["useRef"])(false);
       
  4393   const {
       
  4394     enableComplementaryArea,
       
  4395     disableComplementaryArea
       
  4396   } = Object(external_wp_data_["useDispatch"])(store);
       
  4397   Object(external_wp_element_["useEffect"])(() => {
       
  4398     // If the complementary area is active and the editor is switching from a big to a small window size.
       
  4399     if (isActive && isSmall && !previousIsSmall.current) {
       
  4400       // Disable the complementary area.
       
  4401       disableComplementaryArea(scope); // Flag the complementary area to be reopened when the window size goes from small to big.
       
  4402 
       
  4403       shouldOpenWhenNotSmall.current = true;
       
  4404     } else if ( // If there is a flag indicating the complementary area should be enabled when we go from small to big window size
       
  4405     // and we are going from a small to big window size.
       
  4406     shouldOpenWhenNotSmall.current && !isSmall && previousIsSmall.current) {
       
  4407       // Remove the flag indicating the complementary area should be enabled.
       
  4408       shouldOpenWhenNotSmall.current = false; // Enable the complementary area.
       
  4409 
       
  4410       enableComplementaryArea(scope, identifier);
       
  4411     } else if ( // If the flag is indicating the current complementary should be reopened but another complementary area becomes active,
       
  4412     // remove the flag.
       
  4413     shouldOpenWhenNotSmall.current && activeArea && activeArea !== identifier) {
       
  4414       shouldOpenWhenNotSmall.current = false;
       
  4415     }
       
  4416 
       
  4417     if (isSmall !== previousIsSmall.current) {
       
  4418       previousIsSmall.current = isSmall;
       
  4419     }
       
  4420   }, [isActive, isSmall, scope, identifier, activeArea]);
       
  4421 }
       
  4422 
       
  4423 function ComplementaryArea({
       
  4424   children,
       
  4425   className,
       
  4426   closeLabel = Object(external_wp_i18n_["__"])('Close plugin'),
       
  4427   identifier,
       
  4428   header,
       
  4429   headerClassName,
       
  4430   icon,
       
  4431   isPinnable = true,
       
  4432   panelClassName,
       
  4433   scope,
       
  4434   name,
       
  4435   smallScreenTitle,
       
  4436   title,
       
  4437   toggleShortcut,
       
  4438   isActiveByDefault,
       
  4439   showIconLabels = false
       
  4440 }) {
       
  4441   const {
       
  4442     isActive,
       
  4443     isPinned,
       
  4444     activeArea,
       
  4445     isSmall,
       
  4446     isLarge
       
  4447   } = Object(external_wp_data_["useSelect"])(select => {
       
  4448     const {
       
  4449       getActiveComplementaryArea,
       
  4450       isItemPinned
       
  4451     } = select(store);
       
  4452 
       
  4453     const _activeArea = getActiveComplementaryArea(scope);
       
  4454 
       
  4455     return {
       
  4456       isActive: _activeArea === identifier,
       
  4457       isPinned: isItemPinned(scope, identifier),
       
  4458       activeArea: _activeArea,
       
  4459       isSmall: select(external_wp_viewport_["store"]).isViewportMatch('< medium'),
       
  4460       isLarge: select(external_wp_viewport_["store"]).isViewportMatch('large')
       
  4461     };
       
  4462   }, [identifier, scope]);
       
  4463   useAdjustComplementaryListener(scope, identifier, activeArea, isActive, isSmall);
       
  4464   const {
       
  4465     enableComplementaryArea,
       
  4466     disableComplementaryArea,
       
  4467     pinItem,
       
  4468     unpinItem
       
  4469   } = Object(external_wp_data_["useDispatch"])(store);
       
  4470   Object(external_wp_element_["useEffect"])(() => {
       
  4471     if (isActiveByDefault && activeArea === undefined && !isSmall) {
       
  4472       enableComplementaryArea(scope, identifier);
       
  4473     }
       
  4474   }, [activeArea, isActiveByDefault, scope, identifier, isSmall]);
       
  4475   return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, isPinnable && Object(external_wp_element_["createElement"])(pinned_items, {
       
  4476     scope: scope
       
  4477   }, isPinned && Object(external_wp_element_["createElement"])(complementary_area_toggle, {
       
  4478     scope: scope,
       
  4479     identifier: identifier,
       
  4480     isPressed: isActive && (!showIconLabels || isLarge),
       
  4481     "aria-expanded": isActive,
       
  4482     label: title,
       
  4483     icon: showIconLabels ? check["a" /* default */] : icon,
       
  4484     showTooltip: !showIconLabels,
       
  4485     isTertiary: showIconLabels
       
  4486   })), name && isPinnable && Object(external_wp_element_["createElement"])(ComplementaryAreaMoreMenuItem, {
       
  4487     target: name,
       
  4488     scope: scope,
       
  4489     icon: icon
       
  4490   }, title), isActive && Object(external_wp_element_["createElement"])(ComplementaryAreaFill, {
       
  4491     className: classnames_default()('interface-complementary-area', className),
       
  4492     scope: scope
       
  4493   }, Object(external_wp_element_["createElement"])(complementary_area_header, {
       
  4494     className: headerClassName,
       
  4495     closeLabel: closeLabel,
       
  4496     onClose: () => disableComplementaryArea(scope),
       
  4497     smallScreenTitle: smallScreenTitle,
       
  4498     toggleButtonProps: {
       
  4499       label: closeLabel,
       
  4500       shortcut: toggleShortcut,
       
  4501       scope,
       
  4502       identifier
       
  4503     }
       
  4504   }, header || Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("strong", null, title), isPinnable && Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
       
  4505     className: "interface-complementary-area__pin-unpin-item",
       
  4506     icon: isPinned ? star_filled["a" /* default */] : star_empty["a" /* default */],
       
  4507     label: isPinned ? Object(external_wp_i18n_["__"])('Unpin from toolbar') : Object(external_wp_i18n_["__"])('Pin to toolbar'),
       
  4508     onClick: () => (isPinned ? unpinItem : pinItem)(scope, identifier),
       
  4509     isPressed: isPinned,
       
  4510     "aria-expanded": isPinned
       
  4511   }))), Object(external_wp_element_["createElement"])(external_wp_components_["Panel"], {
       
  4512     className: panelClassName
       
  4513   }, children)));
       
  4514 }
       
  4515 
       
  4516 const ComplementaryAreaWrapped = complementary_area_context(ComplementaryArea);
       
  4517 ComplementaryAreaWrapped.Slot = ComplementaryAreaSlot;
       
  4518 /* harmony default export */ var complementary_area = (ComplementaryAreaWrapped);
       
  4519 
       
  4520 // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/fullscreen-mode/index.js
       
  4521 /**
       
  4522  * WordPress dependencies
       
  4523  */
       
  4524 
       
  4525 class fullscreen_mode_FullscreenMode extends external_wp_element_["Component"] {
       
  4526   componentDidMount() {
       
  4527     this.isSticky = false;
       
  4528     this.sync(); // `is-fullscreen-mode` is set in PHP as a body class by Gutenberg, and this causes
       
  4529     // `sticky-menu` to be applied by WordPress and prevents the admin menu being scrolled
       
  4530     // even if `is-fullscreen-mode` is then removed. Let's remove `sticky-menu` here as
       
  4531     // a consequence of the FullscreenMode setup
       
  4532 
       
  4533     if (document.body.classList.contains('sticky-menu')) {
       
  4534       this.isSticky = true;
       
  4535       document.body.classList.remove('sticky-menu');
       
  4536     }
       
  4537   }
       
  4538 
       
  4539   componentWillUnmount() {
       
  4540     if (this.isSticky) {
       
  4541       document.body.classList.add('sticky-menu');
       
  4542     }
       
  4543 
       
  4544     if (this.props.isActive) {
       
  4545       document.body.classList.remove('is-fullscreen-mode');
       
  4546     }
       
  4547   }
       
  4548 
       
  4549   componentDidUpdate(prevProps) {
       
  4550     if (this.props.isActive !== prevProps.isActive) {
       
  4551       this.sync();
       
  4552     }
       
  4553   }
       
  4554 
       
  4555   sync() {
       
  4556     const {
       
  4557       isActive
       
  4558     } = this.props;
       
  4559 
       
  4560     if (isActive) {
       
  4561       document.body.classList.add('is-fullscreen-mode');
       
  4562     } else {
       
  4563       document.body.classList.remove('is-fullscreen-mode');
       
  4564     }
       
  4565   }
       
  4566 
       
  4567   render() {
       
  4568     return null;
       
  4569   }
       
  4570 
       
  4571 }
       
  4572 /* harmony default export */ var fullscreen_mode = (fullscreen_mode_FullscreenMode);
       
  4573 
       
  4574 // EXTERNAL MODULE: external ["wp","compose"]
       
  4575 var external_wp_compose_ = __webpack_require__("K9lf");
       
  4576 
       
  4577 // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/interface-skeleton/index.js
       
  4578 
       
  4579 
       
  4580 /**
       
  4581  * External dependencies
       
  4582  */
       
  4583 
       
  4584 /**
       
  4585  * WordPress dependencies
       
  4586  */
       
  4587 
       
  4588 /**
       
  4589  * WordPress dependencies
       
  4590  */
       
  4591 
       
  4592 
       
  4593 
       
  4594 
       
  4595 
       
  4596 
       
  4597 function useHTMLClass(className) {
       
  4598   Object(external_wp_element_["useEffect"])(() => {
       
  4599     const element = document && document.querySelector(`html:not(.${className})`);
       
  4600 
       
  4601     if (!element) {
       
  4602       return;
       
  4603     }
       
  4604 
       
  4605     element.classList.toggle(className);
       
  4606     return () => {
       
  4607       element.classList.toggle(className);
       
  4608     };
       
  4609   }, [className]);
       
  4610 }
       
  4611 
       
  4612 function InterfaceSkeleton({
       
  4613   footer,
       
  4614   header,
       
  4615   sidebar,
       
  4616   secondarySidebar,
       
  4617   notices,
       
  4618   content,
       
  4619   drawer,
       
  4620   actions,
       
  4621   labels,
       
  4622   className,
       
  4623   shortcuts
       
  4624 }, ref) {
       
  4625   const fallbackRef = Object(external_wp_element_["useRef"])();
       
  4626   const regionsClassName = Object(external_wp_components_["__unstableUseNavigateRegions"])(fallbackRef, shortcuts);
       
  4627   useHTMLClass('interface-interface-skeleton__html-container');
       
  4628   const defaultLabels = {
       
  4629     /* translators: accessibility text for the nav bar landmark region. */
       
  4630     drawer: Object(external_wp_i18n_["__"])('Drawer'),
       
  4631 
       
  4632     /* translators: accessibility text for the top bar landmark region. */
       
  4633     header: Object(external_wp_i18n_["__"])('Header'),
       
  4634 
       
  4635     /* translators: accessibility text for the content landmark region. */
       
  4636     body: Object(external_wp_i18n_["__"])('Content'),
       
  4637 
       
  4638     /* translators: accessibility text for the secondary sidebar landmark region. */
       
  4639     secondarySidebar: Object(external_wp_i18n_["__"])('Block Library'),
       
  4640 
       
  4641     /* translators: accessibility text for the settings landmark region. */
       
  4642     sidebar: Object(external_wp_i18n_["__"])('Settings'),
       
  4643 
       
  4644     /* translators: accessibility text for the publish landmark region. */
       
  4645     actions: Object(external_wp_i18n_["__"])('Publish'),
       
  4646 
       
  4647     /* translators: accessibility text for the footer landmark region. */
       
  4648     footer: Object(external_wp_i18n_["__"])('Footer')
       
  4649   };
       
  4650   const mergedLabels = { ...defaultLabels,
       
  4651     ...labels
       
  4652   };
       
  4653   return Object(external_wp_element_["createElement"])("div", {
       
  4654     ref: Object(external_wp_compose_["useMergeRefs"])([ref, fallbackRef]),
       
  4655     className: classnames_default()(className, 'interface-interface-skeleton', regionsClassName, !!footer && 'has-footer')
       
  4656   }, !!drawer && Object(external_wp_element_["createElement"])("div", {
       
  4657     className: "interface-interface-skeleton__drawer",
       
  4658     role: "region",
       
  4659     "aria-label": mergedLabels.drawer
       
  4660   }, drawer), Object(external_wp_element_["createElement"])("div", {
       
  4661     className: "interface-interface-skeleton__editor"
       
  4662   }, !!header && Object(external_wp_element_["createElement"])("div", {
       
  4663     className: "interface-interface-skeleton__header",
       
  4664     role: "region",
       
  4665     "aria-label": mergedLabels.header,
       
  4666     tabIndex: "-1"
       
  4667   }, header), Object(external_wp_element_["createElement"])("div", {
       
  4668     className: "interface-interface-skeleton__body"
       
  4669   }, !!secondarySidebar && Object(external_wp_element_["createElement"])("div", {
       
  4670     className: "interface-interface-skeleton__secondary-sidebar",
       
  4671     role: "region",
       
  4672     "aria-label": mergedLabels.secondarySidebar,
       
  4673     tabIndex: "-1"
       
  4674   }, secondarySidebar), !!notices && Object(external_wp_element_["createElement"])("div", {
       
  4675     className: "interface-interface-skeleton__notices"
       
  4676   }, notices), Object(external_wp_element_["createElement"])("div", {
       
  4677     className: "interface-interface-skeleton__content",
       
  4678     role: "region",
       
  4679     "aria-label": mergedLabels.body,
       
  4680     tabIndex: "-1"
       
  4681   }, content), !!sidebar && Object(external_wp_element_["createElement"])("div", {
       
  4682     className: "interface-interface-skeleton__sidebar",
       
  4683     role: "region",
       
  4684     "aria-label": mergedLabels.sidebar,
       
  4685     tabIndex: "-1"
       
  4686   }, sidebar), !!actions && Object(external_wp_element_["createElement"])("div", {
       
  4687     className: "interface-interface-skeleton__actions",
       
  4688     role: "region",
       
  4689     "aria-label": mergedLabels.actions,
       
  4690     tabIndex: "-1"
       
  4691   }, actions))), !!footer && Object(external_wp_element_["createElement"])("div", {
       
  4692     className: "interface-interface-skeleton__footer",
       
  4693     role: "region",
       
  4694     "aria-label": mergedLabels.footer,
       
  4695     tabIndex: "-1"
       
  4696   }, footer));
       
  4697 }
       
  4698 
       
  4699 /* harmony default export */ var interface_skeleton = (Object(external_wp_element_["forwardRef"])(InterfaceSkeleton));
       
  4700 
       
  4701 // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/index.js
       
  4702 
       
  4703 
       
  4704 
       
  4705 
       
  4706 
       
  4707 
       
  4708 
       
  4709 // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/index.js
       
  4710 
       
  4711 
       
  4712 
       
  4713 
       
  4714 /***/ }),
       
  4715 
       
  4716 /***/ "URob":
       
  4717 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
  4718 
       
  4719 "use strict";
       
  4720 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
       
  4721 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
       
  4722 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
       
  4723 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
       
  4724 
       
  4725 
       
  4726 /**
       
  4727  * WordPress dependencies
       
  4728  */
       
  4729 
       
  4730 const starFilled = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
       
  4731   xmlns: "http://www.w3.org/2000/svg",
       
  4732   viewBox: "0 0 24 24"
       
  4733 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
       
  4734   d: "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"
       
  4735 }));
       
  4736 /* harmony default export */ __webpack_exports__["a"] = (starFilled);
       
  4737 
       
  4738 
       
  4739 /***/ }),
       
  4740 
       
  4741 /***/ "VKE3":
       
  4742 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
  4743 
       
  4744 "use strict";
       
  4745 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
       
  4746 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
       
  4747 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
       
  4748 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
       
  4749 
       
  4750 
       
  4751 /**
       
  4752  * WordPress dependencies
       
  4753  */
       
  4754 
       
  4755 const moreVertical = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
       
  4756   xmlns: "http://www.w3.org/2000/svg",
       
  4757   viewBox: "0 0 24 24"
       
  4758 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
       
  4759   d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
       
  4760 }));
       
  4761 /* harmony default export */ __webpack_exports__["a"] = (moreVertical);
       
  4762 
       
  4763 
       
  4764 /***/ }),
       
  4765 
       
  4766 /***/ "Xxwi":
       
  4767 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
  4768 
       
  4769 "use strict";
       
  4770 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
       
  4771 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
       
  4772 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
       
  4773 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
       
  4774 
       
  4775 
       
  4776 /**
       
  4777  * WordPress dependencies
       
  4778  */
       
  4779 
       
  4780 const starEmpty = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
       
  4781   xmlns: "http://www.w3.org/2000/svg",
       
  4782   viewBox: "0 0 24 24"
       
  4783 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
       
  4784   fillRule: "evenodd",
       
  4785   d: "M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",
       
  4786   clipRule: "evenodd"
       
  4787 }));
       
  4788 /* harmony default export */ __webpack_exports__["a"] = (starEmpty);
       
  4789 
       
  4790 
       
  4791 /***/ }),
       
  4792 
       
  4793 /***/ "YLtl":
       
  4794 /***/ (function(module, exports) {
       
  4795 
       
  4796 (function() { module.exports = window["lodash"]; }());
       
  4797 
       
  4798 /***/ }),
       
  4799 
       
  4800 /***/ "axFQ":
       
  4801 /***/ (function(module, exports) {
       
  4802 
       
  4803 (function() { module.exports = window["wp"]["blockEditor"]; }());
       
  4804 
       
  4805 /***/ }),
       
  4806 
       
  4807 /***/ "bWcr":
       
  4808 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
  4809 
       
  4810 "use strict";
       
  4811 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
       
  4812 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
       
  4813 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
       
  4814 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
       
  4815 
       
  4816 
       
  4817 /**
       
  4818  * WordPress dependencies
       
  4819  */
       
  4820 
       
  4821 const closeSmall = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
       
  4822   xmlns: "http://www.w3.org/2000/svg",
       
  4823   viewBox: "0 0 24 24"
       
  4824 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
       
  4825   d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
       
  4826 }));
       
  4827 /* harmony default export */ __webpack_exports__["a"] = (closeSmall);
       
  4828 
       
  4829 
       
  4830 /***/ }),
       
  4831 
       
  4832 /***/ "diJD":
       
  4833 /***/ (function(module, exports) {
       
  4834 
       
  4835 (function() { module.exports = window["wp"]["reusableBlocks"]; }());
       
  4836 
       
  4837 /***/ }),
       
  4838 
       
  4839 /***/ "g56x":
       
  4840 /***/ (function(module, exports) {
       
  4841 
       
  4842 (function() { module.exports = window["wp"]["hooks"]; }());
       
  4843 
       
  4844 /***/ }),
       
  4845 
       
  4846 /***/ "gdqT":
       
  4847 /***/ (function(module, exports) {
       
  4848 
       
  4849 (function() { module.exports = window["wp"]["a11y"]; }());
       
  4850 
       
  4851 /***/ }),
       
  4852 
       
  4853 /***/ "hF7m":
       
  4854 /***/ (function(module, exports) {
       
  4855 
       
  4856 (function() { module.exports = window["wp"]["keyboardShortcuts"]; }());
       
  4857 
       
  4858 /***/ }),
       
  4859 
       
  4860 /***/ "jZUy":
       
  4861 /***/ (function(module, exports) {
       
  4862 
       
  4863 (function() { module.exports = window["wp"]["coreData"]; }());
       
  4864 
       
  4865 /***/ }),
       
  4866 
       
  4867 /***/ "l3Sj":
       
  4868 /***/ (function(module, exports) {
       
  4869 
       
  4870 (function() { module.exports = window["wp"]["i18n"]; }());
       
  4871 
       
  4872 /***/ }),
       
  4873 
       
  4874 /***/ "onLe":
       
  4875 /***/ (function(module, exports) {
       
  4876 
       
  4877 (function() { module.exports = window["wp"]["notices"]; }());
       
  4878 
       
  4879 /***/ }),
       
  4880 
       
  4881 /***/ "tI+e":
       
  4882 /***/ (function(module, exports) {
       
  4883 
       
  4884 (function() { module.exports = window["wp"]["components"]; }());
       
  4885 
       
  4886 /***/ }),
       
  4887 
       
  4888 /***/ "w95h":
       
  4889 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
  4890 
       
  4891 "use strict";
       
  4892 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
       
  4893 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
       
  4894 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
       
  4895 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
       
  4896 
       
  4897 
       
  4898 /**
       
  4899  * WordPress dependencies
       
  4900  */
       
  4901 
       
  4902 const close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
       
  4903   xmlns: "http://www.w3.org/2000/svg",
       
  4904   viewBox: "0 0 24 24"
       
  4905 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
       
  4906   d: "M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"
       
  4907 }));
       
  4908 /* harmony default export */ __webpack_exports__["a"] = (close);
       
  4909 
       
  4910 
       
  4911 /***/ }),
       
  4912 
       
  4913 /***/ "wx14":
       
  4914 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
  4915 
       
  4916 "use strict";
       
  4917 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; });
       
  4918 function _extends() {
       
  4919   _extends = Object.assign || function (target) {
       
  4920     for (var i = 1; i < arguments.length; i++) {
       
  4921       var source = arguments[i];
       
  4922 
       
  4923       for (var key in source) {
       
  4924         if (Object.prototype.hasOwnProperty.call(source, key)) {
       
  4925           target[key] = source[key];
       
  4926         }
       
  4927       }
       
  4928     }
       
  4929 
       
  4930     return target;
       
  4931   };
       
  4932 
       
  4933   return _extends.apply(this, arguments);
       
  4934 }
       
  4935 
       
  4936 /***/ }),
       
  4937 
       
  4938 /***/ "ywyh":
       
  4939 /***/ (function(module, exports) {
       
  4940 
       
  4941 (function() { module.exports = window["wp"]["apiFetch"]; }());
       
  4942 
       
  4943 /***/ })
       
  4944 
       
  4945 /******/ });