[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> edit-post.js (source)

   1  this["wp"] = this["wp"] || {}; this["wp"]["editPost"] =
   2  /******/ (function(modules) { // webpackBootstrap
   3  /******/     // The module cache
   4  /******/     var installedModules = {};
   5  /******/
   6  /******/     // The require function
   7  /******/ 	function __webpack_require__(moduleId) {
   8  /******/
   9  /******/         // Check if module is in cache
  10  /******/         if(installedModules[moduleId]) {
  11  /******/             return installedModules[moduleId].exports;
  12  /******/         }
  13  /******/         // Create a new module (and put it into the cache)
  14  /******/         var module = installedModules[moduleId] = {
  15  /******/             i: moduleId,
  16  /******/             l: false,
  17  /******/             exports: {}
  18  /******/         };
  19  /******/
  20  /******/         // Execute the module function
  21  /******/         modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  22  /******/
  23  /******/         // Flag the module as loaded
  24  /******/         module.l = true;
  25  /******/
  26  /******/         // Return the exports of the module
  27  /******/         return module.exports;
  28  /******/     }
  29  /******/
  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 = 364);
  86  /******/ })
  87  /************************************************************************/
  88  /******/ ({
  89  
  90  /***/ 0:
  91  /***/ (function(module, exports) {
  92  
  93  (function() { module.exports = this["wp"]["element"]; }());
  94  
  95  /***/ }),
  96  
  97  /***/ 1:
  98  /***/ (function(module, exports) {
  99  
 100  (function() { module.exports = this["wp"]["i18n"]; }());
 101  
 102  /***/ }),
 103  
 104  /***/ 10:
 105  /***/ (function(module, exports) {
 106  
 107  (function() { module.exports = this["wp"]["blocks"]; }());
 108  
 109  /***/ }),
 110  
 111  /***/ 11:
 112  /***/ (function(module, exports, __webpack_require__) {
 113  
 114  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
 115    Copyright (c) 2017 Jed Watson.
 116    Licensed under the MIT License (MIT), see
 117    http://jedwatson.github.io/classnames
 118  */
 119  /* global define */
 120  
 121  (function () {
 122      'use strict';
 123  
 124      var hasOwn = {}.hasOwnProperty;
 125  
 126  	function classNames () {
 127          var classes = [];
 128  
 129          for (var i = 0; i < arguments.length; i++) {
 130              var arg = arguments[i];
 131              if (!arg) continue;
 132  
 133              var argType = typeof arg;
 134  
 135              if (argType === 'string' || argType === 'number') {
 136                  classes.push(arg);
 137              } else if (Array.isArray(arg) && arg.length) {
 138                  var inner = classNames.apply(null, arg);
 139                  if (inner) {
 140                      classes.push(inner);
 141                  }
 142              } else if (argType === 'object') {
 143                  for (var key in arg) {
 144                      if (hasOwn.call(arg, key) && arg[key]) {
 145                          classes.push(key);
 146                      }
 147                  }
 148              }
 149          }
 150  
 151          return classes.join(' ');
 152      }
 153  
 154      if ( true && module.exports) {
 155          classNames.default = classNames;
 156          module.exports = classNames;
 157      } else if (true) {
 158          // register as 'classnames', consistent with npm package name
 159          !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
 160              return classNames;
 161          }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
 162                  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
 163      } else {}
 164  }());
 165  
 166  
 167  /***/ }),
 168  
 169  /***/ 12:
 170  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 171  
 172  "use strict";
 173  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; });
 174  function _defineProperties(target, props) {
 175    for (var i = 0; i < props.length; i++) {
 176      var descriptor = props[i];
 177      descriptor.enumerable = descriptor.enumerable || false;
 178      descriptor.configurable = true;
 179      if ("value" in descriptor) descriptor.writable = true;
 180      Object.defineProperty(target, descriptor.key, descriptor);
 181    }
 182  }
 183  
 184  function _createClass(Constructor, protoProps, staticProps) {
 185    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
 186    if (staticProps) _defineProperties(Constructor, staticProps);
 187    return Constructor;
 188  }
 189  
 190  /***/ }),
 191  
 192  /***/ 13:
 193  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 194  
 195  "use strict";
 196  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; });
 197  function _classCallCheck(instance, Constructor) {
 198    if (!(instance instanceof Constructor)) {
 199      throw new TypeError("Cannot call a class as a function");
 200    }
 201  }
 202  
 203  /***/ }),
 204  
 205  /***/ 14:
 206  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 207  
 208  "use strict";
 209  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; });
 210  function _extends() {
 211    _extends = Object.assign || function (target) {
 212      for (var i = 1; i < arguments.length; i++) {
 213        var source = arguments[i];
 214  
 215        for (var key in source) {
 216          if (Object.prototype.hasOwnProperty.call(source, key)) {
 217            target[key] = source[key];
 218          }
 219        }
 220      }
 221  
 222      return target;
 223    };
 224  
 225    return _extends.apply(this, arguments);
 226  }
 227  
 228  /***/ }),
 229  
 230  /***/ 142:
 231  /***/ (function(module, exports) {
 232  
 233  (function() { module.exports = this["wp"]["nux"]; }());
 234  
 235  /***/ }),
 236  
 237  /***/ 143:
 238  /***/ (function(module, exports) {
 239  
 240  (function() { module.exports = this["wp"]["notices"]; }());
 241  
 242  /***/ }),
 243  
 244  /***/ 15:
 245  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 246  
 247  "use strict";
 248  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
 249  /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31);
 250  /* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
 251  
 252  
 253  function _possibleConstructorReturn(self, call) {
 254    if (call && (Object(_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(call) === "object" || typeof call === "function")) {
 255      return call;
 256    }
 257  
 258    return Object(_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(self);
 259  }
 260  
 261  /***/ }),
 262  
 263  /***/ 16:
 264  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 265  
 266  "use strict";
 267  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; });
 268  function _getPrototypeOf(o) {
 269    _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
 270      return o.__proto__ || Object.getPrototypeOf(o);
 271    };
 272    return _getPrototypeOf(o);
 273  }
 274  
 275  /***/ }),
 276  
 277  /***/ 17:
 278  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 279  
 280  "use strict";
 281  
 282  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
 283  function _setPrototypeOf(o, p) {
 284    _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
 285      o.__proto__ = p;
 286      return o;
 287    };
 288  
 289    return _setPrototypeOf(o, p);
 290  }
 291  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
 292  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _inherits; });
 293  
 294  function _inherits(subClass, superClass) {
 295    if (typeof superClass !== "function" && superClass !== null) {
 296      throw new TypeError("Super expression must either be null or a function");
 297    }
 298  
 299    subClass.prototype = Object.create(superClass && superClass.prototype, {
 300      constructor: {
 301        value: subClass,
 302        writable: true,
 303        configurable: true
 304      }
 305    });
 306    if (superClass) _setPrototypeOf(subClass, superClass);
 307  }
 308  
 309  /***/ }),
 310  
 311  /***/ 18:
 312  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 313  
 314  "use strict";
 315  
 316  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
 317  function _arrayWithoutHoles(arr) {
 318    if (Array.isArray(arr)) {
 319      for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
 320        arr2[i] = arr[i];
 321      }
 322  
 323      return arr2;
 324    }
 325  }
 326  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
 327  var iterableToArray = __webpack_require__(32);
 328  
 329  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
 330  function _nonIterableSpread() {
 331    throw new TypeError("Invalid attempt to spread non-iterable instance");
 332  }
 333  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
 334  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; });
 335  
 336  
 337  
 338  function _toConsumableArray(arr) {
 339    return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || _nonIterableSpread();
 340  }
 341  
 342  /***/ }),
 343  
 344  /***/ 19:
 345  /***/ (function(module, exports) {
 346  
 347  (function() { module.exports = this["wp"]["keycodes"]; }());
 348  
 349  /***/ }),
 350  
 351  /***/ 2:
 352  /***/ (function(module, exports) {
 353  
 354  (function() { module.exports = this["lodash"]; }());
 355  
 356  /***/ }),
 357  
 358  /***/ 21:
 359  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 360  
 361  "use strict";
 362  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
 363  /* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40);
 364  
 365  function _objectWithoutProperties(source, excluded) {
 366    if (source == null) return {};
 367    var target = Object(_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
 368    var key, i;
 369  
 370    if (Object.getOwnPropertySymbols) {
 371      var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
 372  
 373      for (i = 0; i < sourceSymbolKeys.length; i++) {
 374        key = sourceSymbolKeys[i];
 375        if (excluded.indexOf(key) >= 0) continue;
 376        if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
 377        target[key] = source[key];
 378      }
 379    }
 380  
 381    return target;
 382  }
 383  
 384  /***/ }),
 385  
 386  /***/ 22:
 387  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 388  
 389  "use strict";
 390  
 391  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
 392  var arrayWithHoles = __webpack_require__(33);
 393  
 394  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
 395  function _iterableToArrayLimit(arr, i) {
 396    if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
 397      return;
 398    }
 399  
 400    var _arr = [];
 401    var _n = true;
 402    var _d = false;
 403    var _e = undefined;
 404  
 405    try {
 406      for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
 407        _arr.push(_s.value);
 408  
 409        if (i && _arr.length === i) break;
 410      }
 411    } catch (err) {
 412      _d = true;
 413      _e = err;
 414    } finally {
 415      try {
 416        if (!_n && _i["return"] != null) _i["return"]();
 417      } finally {
 418        if (_d) throw _e;
 419      }
 420    }
 421  
 422    return _arr;
 423  }
 424  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
 425  var nonIterableRest = __webpack_require__(34);
 426  
 427  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
 428  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; });
 429  
 430  
 431  
 432  function _slicedToArray(arr, i) {
 433    return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(nonIterableRest["a" /* default */])();
 434  }
 435  
 436  /***/ }),
 437  
 438  /***/ 230:
 439  /***/ (function(module, exports) {
 440  
 441  (function() { module.exports = this["wp"]["blockLibrary"]; }());
 442  
 443  /***/ }),
 444  
 445  /***/ 25:
 446  /***/ (function(module, exports) {
 447  
 448  (function() { module.exports = this["wp"]["url"]; }());
 449  
 450  /***/ }),
 451  
 452  /***/ 26:
 453  /***/ (function(module, exports) {
 454  
 455  (function() { module.exports = this["wp"]["editor"]; }());
 456  
 457  /***/ }),
 458  
 459  /***/ 27:
 460  /***/ (function(module, exports) {
 461  
 462  (function() { module.exports = this["wp"]["hooks"]; }());
 463  
 464  /***/ }),
 465  
 466  /***/ 3:
 467  /***/ (function(module, exports) {
 468  
 469  (function() { module.exports = this["wp"]["components"]; }());
 470  
 471  /***/ }),
 472  
 473  /***/ 31:
 474  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 475  
 476  "use strict";
 477  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; });
 478  function _typeof(obj) {
 479    if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
 480      _typeof = function _typeof(obj) {
 481        return typeof obj;
 482      };
 483    } else {
 484      _typeof = function _typeof(obj) {
 485        return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
 486      };
 487    }
 488  
 489    return _typeof(obj);
 490  }
 491  
 492  /***/ }),
 493  
 494  /***/ 32:
 495  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 496  
 497  "use strict";
 498  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
 499  function _iterableToArray(iter) {
 500    if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
 501  }
 502  
 503  /***/ }),
 504  
 505  /***/ 33:
 506  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 507  
 508  "use strict";
 509  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; });
 510  function _arrayWithHoles(arr) {
 511    if (Array.isArray(arr)) return arr;
 512  }
 513  
 514  /***/ }),
 515  
 516  /***/ 34:
 517  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 518  
 519  "use strict";
 520  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; });
 521  function _nonIterableRest() {
 522    throw new TypeError("Invalid attempt to destructure non-iterable instance");
 523  }
 524  
 525  /***/ }),
 526  
 527  /***/ 364:
 528  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 529  
 530  "use strict";
 531  __webpack_require__.r(__webpack_exports__);
 532  var actions_namespaceObject = {};
 533  __webpack_require__.r(actions_namespaceObject);
 534  __webpack_require__.d(actions_namespaceObject, "openGeneralSidebar", function() { return actions_openGeneralSidebar; });
 535  __webpack_require__.d(actions_namespaceObject, "closeGeneralSidebar", function() { return actions_closeGeneralSidebar; });
 536  __webpack_require__.d(actions_namespaceObject, "openModal", function() { return actions_openModal; });
 537  __webpack_require__.d(actions_namespaceObject, "closeModal", function() { return actions_closeModal; });
 538  __webpack_require__.d(actions_namespaceObject, "openPublishSidebar", function() { return openPublishSidebar; });
 539  __webpack_require__.d(actions_namespaceObject, "closePublishSidebar", function() { return actions_closePublishSidebar; });
 540  __webpack_require__.d(actions_namespaceObject, "togglePublishSidebar", function() { return actions_togglePublishSidebar; });
 541  __webpack_require__.d(actions_namespaceObject, "toggleEditorPanelEnabled", function() { return toggleEditorPanelEnabled; });
 542  __webpack_require__.d(actions_namespaceObject, "toggleEditorPanelOpened", function() { return actions_toggleEditorPanelOpened; });
 543  __webpack_require__.d(actions_namespaceObject, "removeEditorPanel", function() { return removeEditorPanel; });
 544  __webpack_require__.d(actions_namespaceObject, "toggleFeature", function() { return toggleFeature; });
 545  __webpack_require__.d(actions_namespaceObject, "switchEditorMode", function() { return switchEditorMode; });
 546  __webpack_require__.d(actions_namespaceObject, "togglePinnedPluginItem", function() { return togglePinnedPluginItem; });
 547  __webpack_require__.d(actions_namespaceObject, "hideBlockTypes", function() { return actions_hideBlockTypes; });
 548  __webpack_require__.d(actions_namespaceObject, "updatePreferredStyleVariations", function() { return actions_updatePreferredStyleVariations; });
 549  __webpack_require__.d(actions_namespaceObject, "__experimentalUpdateLocalAutosaveInterval", function() { return __experimentalUpdateLocalAutosaveInterval; });
 550  __webpack_require__.d(actions_namespaceObject, "showBlockTypes", function() { return actions_showBlockTypes; });
 551  __webpack_require__.d(actions_namespaceObject, "setAvailableMetaBoxesPerLocation", function() { return setAvailableMetaBoxesPerLocation; });
 552  __webpack_require__.d(actions_namespaceObject, "requestMetaBoxUpdates", function() { return requestMetaBoxUpdates; });
 553  __webpack_require__.d(actions_namespaceObject, "metaBoxUpdatesSuccess", function() { return metaBoxUpdatesSuccess; });
 554  var selectors_namespaceObject = {};
 555  __webpack_require__.r(selectors_namespaceObject);
 556  __webpack_require__.d(selectors_namespaceObject, "getEditorMode", function() { return getEditorMode; });
 557  __webpack_require__.d(selectors_namespaceObject, "isEditorSidebarOpened", function() { return selectors_isEditorSidebarOpened; });
 558  __webpack_require__.d(selectors_namespaceObject, "isPluginSidebarOpened", function() { return isPluginSidebarOpened; });
 559  __webpack_require__.d(selectors_namespaceObject, "getActiveGeneralSidebarName", function() { return getActiveGeneralSidebarName; });
 560  __webpack_require__.d(selectors_namespaceObject, "getPreferences", function() { return getPreferences; });
 561  __webpack_require__.d(selectors_namespaceObject, "getPreference", function() { return selectors_getPreference; });
 562  __webpack_require__.d(selectors_namespaceObject, "isPublishSidebarOpened", function() { return selectors_isPublishSidebarOpened; });
 563  __webpack_require__.d(selectors_namespaceObject, "isEditorPanelRemoved", function() { return isEditorPanelRemoved; });
 564  __webpack_require__.d(selectors_namespaceObject, "isEditorPanelEnabled", function() { return selectors_isEditorPanelEnabled; });
 565  __webpack_require__.d(selectors_namespaceObject, "isEditorPanelOpened", function() { return selectors_isEditorPanelOpened; });
 566  __webpack_require__.d(selectors_namespaceObject, "isModalActive", function() { return selectors_isModalActive; });
 567  __webpack_require__.d(selectors_namespaceObject, "isFeatureActive", function() { return isFeatureActive; });
 568  __webpack_require__.d(selectors_namespaceObject, "isPluginItemPinned", function() { return isPluginItemPinned; });
 569  __webpack_require__.d(selectors_namespaceObject, "getActiveMetaBoxLocations", function() { return getActiveMetaBoxLocations; });
 570  __webpack_require__.d(selectors_namespaceObject, "isMetaBoxLocationVisible", function() { return isMetaBoxLocationVisible; });
 571  __webpack_require__.d(selectors_namespaceObject, "isMetaBoxLocationActive", function() { return isMetaBoxLocationActive; });
 572  __webpack_require__.d(selectors_namespaceObject, "getMetaBoxesPerLocation", function() { return getMetaBoxesPerLocation; });
 573  __webpack_require__.d(selectors_namespaceObject, "getAllMetaBoxes", function() { return getAllMetaBoxes; });
 574  __webpack_require__.d(selectors_namespaceObject, "hasMetaBoxes", function() { return hasMetaBoxes; });
 575  __webpack_require__.d(selectors_namespaceObject, "isSavingMetaBoxes", function() { return selectors_isSavingMetaBoxes; });
 576  
 577  // EXTERNAL MODULE: external {"this":["wp","element"]}
 578  var external_this_wp_element_ = __webpack_require__(0);
 579  
 580  // EXTERNAL MODULE: external {"this":["wp","coreData"]}
 581  var external_this_wp_coreData_ = __webpack_require__(62);
 582  
 583  // EXTERNAL MODULE: external {"this":["wp","blockEditor"]}
 584  var external_this_wp_blockEditor_ = __webpack_require__(5);
 585  
 586  // EXTERNAL MODULE: external {"this":["wp","editor"]}
 587  var external_this_wp_editor_ = __webpack_require__(26);
 588  
 589  // EXTERNAL MODULE: external {"this":["wp","nux"]}
 590  var external_this_wp_nux_ = __webpack_require__(142);
 591  
 592  // EXTERNAL MODULE: external {"this":["wp","viewport"]}
 593  var external_this_wp_viewport_ = __webpack_require__(50);
 594  
 595  // EXTERNAL MODULE: external {"this":["wp","notices"]}
 596  var external_this_wp_notices_ = __webpack_require__(143);
 597  
 598  // EXTERNAL MODULE: external {"this":["wp","blockLibrary"]}
 599  var external_this_wp_blockLibrary_ = __webpack_require__(230);
 600  
 601  // EXTERNAL MODULE: external {"this":["wp","hooks"]}
 602  var external_this_wp_hooks_ = __webpack_require__(27);
 603  
 604  // EXTERNAL MODULE: external {"this":["wp","mediaUtils"]}
 605  var external_this_wp_mediaUtils_ = __webpack_require__(98);
 606  
 607  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/components/index.js
 608  /**
 609   * WordPress dependencies
 610   */
 611  
 612  
 613  
 614  var components_replaceMediaUpload = function replaceMediaUpload() {
 615    return external_this_wp_mediaUtils_["MediaUpload"];
 616  };
 617  
 618  Object(external_this_wp_hooks_["addFilter"])('editor.MediaUpload', 'core/edit-post/replace-media-upload', components_replaceMediaUpload);
 619  
 620  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
 621  var esm_extends = __webpack_require__(14);
 622  
 623  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
 624  var objectWithoutProperties = __webpack_require__(21);
 625  
 626  // EXTERNAL MODULE: external {"this":"lodash"}
 627  var external_this_lodash_ = __webpack_require__(2);
 628  
 629  // EXTERNAL MODULE: external {"this":["wp","blocks"]}
 630  var external_this_wp_blocks_ = __webpack_require__(10);
 631  
 632  // EXTERNAL MODULE: external {"this":["wp","components"]}
 633  var external_this_wp_components_ = __webpack_require__(3);
 634  
 635  // EXTERNAL MODULE: external {"this":["wp","data"]}
 636  var external_this_wp_data_ = __webpack_require__(4);
 637  
 638  // EXTERNAL MODULE: external {"this":["wp","i18n"]}
 639  var external_this_wp_i18n_ = __webpack_require__(1);
 640  
 641  // EXTERNAL MODULE: external {"this":["wp","compose"]}
 642  var external_this_wp_compose_ = __webpack_require__(8);
 643  
 644  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/validate-multiple-use/index.js
 645  
 646  
 647  
 648  
 649  /**
 650   * External dependencies
 651   */
 652  
 653  /**
 654   * WordPress dependencies
 655   */
 656  
 657  
 658  
 659  
 660  
 661  
 662  
 663  
 664  var enhance = Object(external_this_wp_compose_["compose"])(
 665  /**
 666   * For blocks whose block type doesn't support `multiple`, provides the
 667   * wrapped component with `originalBlockClientId` -- a reference to the
 668   * first block of the same type in the content -- if and only if that
 669   * "original" block is not the current one. Thus, an inexisting
 670   * `originalBlockClientId` prop signals that the block is valid.
 671   *
 672   * @param {WPComponent} WrappedBlockEdit A filtered BlockEdit instance.
 673   *
 674   * @return {WPComponent} Enhanced component with merged state data props.
 675   */
 676  Object(external_this_wp_data_["withSelect"])(function (select, block) {
 677    var multiple = Object(external_this_wp_blocks_["hasBlockSupport"])(block.name, 'multiple', true); // For block types with `multiple` support, there is no "original
 678    // block" to be found in the content, as the block itself is valid.
 679  
 680    if (multiple) {
 681      return {};
 682    } // Otherwise, only pass `originalBlockClientId` if it refers to a different
 683    // block from the current one.
 684  
 685  
 686    var blocks = select('core/block-editor').getBlocks();
 687    var firstOfSameType = Object(external_this_lodash_["find"])(blocks, function (_ref) {
 688      var name = _ref.name;
 689      return block.name === name;
 690    });
 691    var isInvalid = firstOfSameType && firstOfSameType.clientId !== block.clientId;
 692    return {
 693      originalBlockClientId: isInvalid && firstOfSameType.clientId
 694    };
 695  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) {
 696    var originalBlockClientId = _ref2.originalBlockClientId;
 697    return {
 698      selectFirst: function selectFirst() {
 699        return dispatch('core/block-editor').selectBlock(originalBlockClientId);
 700      }
 701    };
 702  }));
 703  var withMultipleValidation = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (BlockEdit) {
 704    return enhance(function (_ref3) {
 705      var originalBlockClientId = _ref3.originalBlockClientId,
 706          selectFirst = _ref3.selectFirst,
 707          props = Object(objectWithoutProperties["a" /* default */])(_ref3, ["originalBlockClientId", "selectFirst"]);
 708  
 709      if (!originalBlockClientId) {
 710        return Object(external_this_wp_element_["createElement"])(BlockEdit, props);
 711      }
 712  
 713      var blockType = Object(external_this_wp_blocks_["getBlockType"])(props.name);
 714      var outboundType = getOutboundType(props.name);
 715      return [Object(external_this_wp_element_["createElement"])("div", {
 716        key: "invalid-preview",
 717        style: {
 718          minHeight: '60px'
 719        }
 720      }, Object(external_this_wp_element_["createElement"])(BlockEdit, Object(esm_extends["a" /* default */])({
 721        key: "block-edit"
 722      }, props))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["Warning"], {
 723        key: "multiple-use-warning",
 724        actions: [Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
 725          key: "find-original",
 726          isLarge: true,
 727          onClick: selectFirst
 728        }, Object(external_this_wp_i18n_["__"])('Find original')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
 729          key: "remove",
 730          isLarge: true,
 731          onClick: function onClick() {
 732            return props.onReplace([]);
 733          }
 734        }, Object(external_this_wp_i18n_["__"])('Remove')), outboundType && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
 735          key: "transform",
 736          isLarge: true,
 737          onClick: function onClick() {
 738            return props.onReplace(Object(external_this_wp_blocks_["createBlock"])(outboundType.name, props.attributes));
 739          }
 740        }, Object(external_this_wp_i18n_["__"])('Transform into:'), ' ', outboundType.title)]
 741      }, Object(external_this_wp_element_["createElement"])("strong", null, blockType.title, ": "), Object(external_this_wp_i18n_["__"])('This block can only be used once.'))];
 742    });
 743  }, 'withMultipleValidation');
 744  /**
 745   * Given a base block name, returns the default block type to which to offer
 746   * transforms.
 747   *
 748   * @param {string} blockName Base block name.
 749   *
 750   * @return {?Object} The chosen default block type.
 751   */
 752  
 753  function getOutboundType(blockName) {
 754    // Grab the first outbound transform
 755    var transform = Object(external_this_wp_blocks_["findTransform"])(Object(external_this_wp_blocks_["getBlockTransforms"])('to', blockName), function (_ref4) {
 756      var type = _ref4.type,
 757          blocks = _ref4.blocks;
 758      return type === 'block' && blocks.length === 1;
 759    } // What about when .length > 1?
 760    );
 761  
 762    if (!transform) {
 763      return null;
 764    }
 765  
 766    return Object(external_this_wp_blocks_["getBlockType"])(transform.blocks[0]);
 767  }
 768  
 769  Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/edit-post/validate-multiple-use/with-multiple-validation', withMultipleValidation);
 770  
 771  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/index.js
 772  /**
 773   * Internal dependencies
 774   */
 775  
 776  
 777  
 778  // EXTERNAL MODULE: external {"this":["wp","plugins"]}
 779  var external_this_wp_plugins_ = __webpack_require__(49);
 780  
 781  // EXTERNAL MODULE: external {"this":["wp","url"]}
 782  var external_this_wp_url_ = __webpack_require__(25);
 783  
 784  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/copy-content-menu-item/index.js
 785  
 786  
 787  /**
 788   * WordPress dependencies
 789   */
 790  
 791  
 792  
 793  
 794  
 795  function CopyContentMenuItem(_ref) {
 796    var createNotice = _ref.createNotice,
 797        editedPostContent = _ref.editedPostContent,
 798        hasCopied = _ref.hasCopied,
 799        setState = _ref.setState;
 800    return editedPostContent.length > 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ClipboardButton"], {
 801      text: editedPostContent,
 802      role: "menuitem",
 803      className: "components-menu-item__button",
 804      onCopy: function onCopy() {
 805        setState({
 806          hasCopied: true
 807        });
 808        createNotice('info', Object(external_this_wp_i18n_["__"])('All content copied.'), {
 809          isDismissible: true,
 810          type: 'snackbar'
 811        });
 812      },
 813      onFinishCopy: function onFinishCopy() {
 814        return setState({
 815          hasCopied: false
 816        });
 817      }
 818    }, hasCopied ? Object(external_this_wp_i18n_["__"])('Copied!') : Object(external_this_wp_i18n_["__"])('Copy All Content'));
 819  }
 820  
 821  /* harmony default export */ var copy_content_menu_item = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
 822    return {
 823      editedPostContent: select('core/editor').getEditedPostAttribute('content')
 824    };
 825  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
 826    var _dispatch = dispatch('core/notices'),
 827        createNotice = _dispatch.createNotice;
 828  
 829    return {
 830      createNotice: createNotice
 831    };
 832  }), Object(external_this_wp_compose_["withState"])({
 833    hasCopied: false
 834  }))(CopyContentMenuItem));
 835  
 836  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/manage-blocks-menu-item/index.js
 837  
 838  
 839  /**
 840   * WordPress dependencies
 841   */
 842  
 843  
 844  
 845  function ManageBlocksMenuItem(_ref) {
 846    var openModal = _ref.openModal;
 847    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], {
 848      onClick: function onClick() {
 849        openModal('edit-post/manage-blocks');
 850      }
 851    }, Object(external_this_wp_i18n_["__"])('Block Manager'));
 852  }
 853  /* harmony default export */ var manage_blocks_menu_item = (Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
 854    var _dispatch = dispatch('core/edit-post'),
 855        openModal = _dispatch.openModal;
 856  
 857    return {
 858      openModal: openModal
 859    };
 860  })(ManageBlocksMenuItem));
 861  
 862  // EXTERNAL MODULE: external {"this":["wp","keycodes"]}
 863  var external_this_wp_keycodes_ = __webpack_require__(19);
 864  
 865  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/keyboard-shortcuts-help-menu-item/index.js
 866  
 867  
 868  /**
 869   * WordPress dependencies
 870   */
 871  
 872  
 873  
 874  
 875  function KeyboardShortcutsHelpMenuItem(_ref) {
 876    var openModal = _ref.openModal;
 877    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], {
 878      onClick: function onClick() {
 879        openModal('edit-post/keyboard-shortcut-help');
 880      },
 881      shortcut: external_this_wp_keycodes_["displayShortcut"].access('h')
 882    }, Object(external_this_wp_i18n_["__"])('Keyboard Shortcuts'));
 883  }
 884  /* harmony default export */ var keyboard_shortcuts_help_menu_item = (Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
 885    var _dispatch = dispatch('core/edit-post'),
 886        openModal = _dispatch.openModal;
 887  
 888    return {
 889      openModal: openModal
 890    };
 891  })(KeyboardShortcutsHelpMenuItem));
 892  
 893  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/tools-more-menu-group/index.js
 894  
 895  
 896  /**
 897   * External dependencies
 898   */
 899  
 900  /**
 901   * WordPress dependencies
 902   */
 903  
 904  
 905  
 906  
 907  var _createSlotFill = Object(external_this_wp_components_["createSlotFill"])('ToolsMoreMenuGroup'),
 908      ToolsMoreMenuGroup = _createSlotFill.Fill,
 909      Slot = _createSlotFill.Slot;
 910  
 911  ToolsMoreMenuGroup.Slot = function (_ref) {
 912    var fillProps = _ref.fillProps;
 913    return Object(external_this_wp_element_["createElement"])(Slot, {
 914      fillProps: fillProps
 915    }, function (fills) {
 916      return !Object(external_this_lodash_["isEmpty"])(fills) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], {
 917        label: Object(external_this_wp_i18n_["__"])('Tools')
 918      }, fills);
 919    });
 920  };
 921  
 922  /* harmony default export */ var tools_more_menu_group = (ToolsMoreMenuGroup);
 923  
 924  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/welcome-guide-menu-item/index.js
 925  
 926  
 927  /**
 928   * WordPress dependencies
 929   */
 930  
 931  
 932  
 933  function WelcomeGuideMenuItem() {
 934    var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/nux'),
 935        enableTips = _useDispatch.enableTips;
 936  
 937    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], {
 938      onClick: enableTips
 939    }, Object(external_this_wp_i18n_["__"])('Welcome Guide'));
 940  }
 941  
 942  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/index.js
 943  
 944  
 945  /**
 946   * WordPress dependencies
 947   */
 948  
 949  
 950  
 951  
 952  /**
 953   * Internal dependencies
 954   */
 955  
 956  
 957  
 958  
 959  
 960  
 961  Object(external_this_wp_plugins_["registerPlugin"])('edit-post', {
 962    render: function render() {
 963      return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(tools_more_menu_group, null, function (_ref) {
 964        var onClose = _ref.onClose;
 965        return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(manage_blocks_menu_item, {
 966          onSelect: onClose
 967        }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], {
 968          role: "menuitem",
 969          href: Object(external_this_wp_url_["addQueryArgs"])('edit.php', {
 970            post_type: 'wp_block'
 971          })
 972        }, Object(external_this_wp_i18n_["__"])('Manage All Reusable Blocks')), Object(external_this_wp_element_["createElement"])(keyboard_shortcuts_help_menu_item, {
 973          onSelect: onClose
 974        }), Object(external_this_wp_element_["createElement"])(WelcomeGuideMenuItem, null), Object(external_this_wp_element_["createElement"])(copy_content_menu_item, null));
 975      }));
 976    }
 977  });
 978  
 979  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
 980  var toConsumableArray = __webpack_require__(18);
 981  
 982  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
 983  var defineProperty = __webpack_require__(9);
 984  
 985  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js
 986  var objectSpread = __webpack_require__(7);
 987  
 988  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/defaults.js
 989  var PREFERENCES_DEFAULTS = {
 990    editorMode: 'visual',
 991    isGeneralSidebarDismissed: false,
 992    panels: {
 993      'post-status': {
 994        opened: true
 995      }
 996    },
 997    features: {
 998      fixedToolbar: false,
 999      showInserterHelpPanel: true
1000    },
1001    pinnedPluginItems: {},
1002    hiddenBlockTypes: [],
1003    preferredStyleVariations: {},
1004    localAutosaveInterval: 15
1005  };
1006  
1007  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/reducer.js
1008  
1009  
1010  
1011  
1012  /**
1013   * External dependencies
1014   */
1015  
1016  /**
1017   * WordPress dependencies
1018   */
1019  
1020  
1021  /**
1022   * Internal dependencies
1023   */
1024  
1025  
1026  /**
1027   * The default active general sidebar: The "Document" tab.
1028   *
1029   * @type {string}
1030   */
1031  
1032  var DEFAULT_ACTIVE_GENERAL_SIDEBAR = 'edit-post/document';
1033  /**
1034   * Higher-order reducer creator which provides the given initial state for the
1035   * original reducer.
1036   *
1037   * @param {*} initialState Initial state to provide to reducer.
1038   *
1039   * @return {Function} Higher-order reducer.
1040   */
1041  
1042  var createWithInitialState = function createWithInitialState(initialState) {
1043    return function (reducer) {
1044      return function () {
1045        var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;
1046        var action = arguments.length > 1 ? arguments[1] : undefined;
1047        return reducer(state, action);
1048      };
1049    };
1050  };
1051  /**
1052   * Reducer returning the user preferences.
1053   *
1054   * @param {Object}  state                           Current state.
1055   * @param {string}  state.mode                      Current editor mode, either
1056   *                                                  "visual" or "text".
1057   * @param {boolean} state.isGeneralSidebarDismissed Whether general sidebar is
1058   *                                                  dismissed. False by default
1059   *                                                  or when closing general
1060   *                                                  sidebar, true when opening
1061   *                                                  sidebar.
1062   * @param {boolean} state.isSidebarOpened           Whether the sidebar is
1063   *                                                  opened or closed.
1064   * @param {Object}  state.panels                    The state of the different
1065   *                                                  sidebar panels.
1066   * @param {Object}  action                          Dispatched action.
1067   *
1068   * @return {Object} Updated state.
1069   */
1070  
1071  
1072  var preferences = Object(external_this_lodash_["flow"])([external_this_wp_data_["combineReducers"], createWithInitialState(PREFERENCES_DEFAULTS)])({
1073    isGeneralSidebarDismissed: function isGeneralSidebarDismissed(state, action) {
1074      switch (action.type) {
1075        case 'OPEN_GENERAL_SIDEBAR':
1076        case 'CLOSE_GENERAL_SIDEBAR':
1077          return action.type === 'CLOSE_GENERAL_SIDEBAR';
1078      }
1079  
1080      return state;
1081    },
1082    panels: function panels(state, action) {
1083      switch (action.type) {
1084        case 'TOGGLE_PANEL_ENABLED':
1085          {
1086            var panelName = action.panelName;
1087            return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, panelName, Object(objectSpread["a" /* default */])({}, state[panelName], {
1088              enabled: !Object(external_this_lodash_["get"])(state, [panelName, 'enabled'], true)
1089            })));
1090          }
1091  
1092        case 'TOGGLE_PANEL_OPENED':
1093          {
1094            var _panelName = action.panelName;
1095            var isOpen = state[_panelName] === true || Object(external_this_lodash_["get"])(state, [_panelName, 'opened'], false);
1096            return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, _panelName, Object(objectSpread["a" /* default */])({}, state[_panelName], {
1097              opened: !isOpen
1098            })));
1099          }
1100      }
1101  
1102      return state;
1103    },
1104    features: function features(state, action) {
1105      if (action.type === 'TOGGLE_FEATURE') {
1106        return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, action.feature, !state[action.feature]));
1107      }
1108  
1109      return state;
1110    },
1111    editorMode: function editorMode(state, action) {
1112      if (action.type === 'SWITCH_MODE') {
1113        return action.mode;
1114      }
1115  
1116      return state;
1117    },
1118    pinnedPluginItems: function pinnedPluginItems(state, action) {
1119      if (action.type === 'TOGGLE_PINNED_PLUGIN_ITEM') {
1120        return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, action.pluginName, !Object(external_this_lodash_["get"])(state, [action.pluginName], true)));
1121      }
1122  
1123      return state;
1124    },
1125    hiddenBlockTypes: function hiddenBlockTypes(state, action) {
1126      switch (action.type) {
1127        case 'SHOW_BLOCK_TYPES':
1128          return external_this_lodash_["without"].apply(void 0, [state].concat(Object(toConsumableArray["a" /* default */])(action.blockNames)));
1129  
1130        case 'HIDE_BLOCK_TYPES':
1131          return Object(external_this_lodash_["union"])(state, action.blockNames);
1132      }
1133  
1134      return state;
1135    },
1136    preferredStyleVariations: function preferredStyleVariations(state, action) {
1137      switch (action.type) {
1138        case 'UPDATE_PREFERRED_STYLE_VARIATIONS':
1139          {
1140            if (!action.blockName) {
1141              return state;
1142            }
1143  
1144            if (!action.blockStyle) {
1145              return Object(external_this_lodash_["omit"])(state, [action.blockName]);
1146            }
1147  
1148            return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, action.blockName, action.blockStyle));
1149          }
1150      }
1151  
1152      return state;
1153    },
1154    localAutosaveInterval: function localAutosaveInterval(state, action) {
1155      switch (action.type) {
1156        case 'UPDATE_LOCAL_AUTOSAVE_INTERVAL':
1157          return action.interval;
1158      }
1159  
1160      return state;
1161    }
1162  });
1163  /**
1164   * Reducer storing the list of all programmatically removed panels.
1165   *
1166   * @param {Array}  state  Current state.
1167   * @param {Object} action Action object.
1168   *
1169   * @return {Array} Updated state.
1170   */
1171  
1172  function removedPanels() {
1173    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
1174    var action = arguments.length > 1 ? arguments[1] : undefined;
1175  
1176    switch (action.type) {
1177      case 'REMOVE_PANEL':
1178        if (!Object(external_this_lodash_["includes"])(state, action.panelName)) {
1179          return [].concat(Object(toConsumableArray["a" /* default */])(state), [action.panelName]);
1180        }
1181  
1182    }
1183  
1184    return state;
1185  }
1186  /**
1187   * Reducer returning the next active general sidebar state. The active general
1188   * sidebar is a unique name to identify either an editor or plugin sidebar.
1189   *
1190   * @param {?string} state  Current state.
1191   * @param {Object}  action Action object.
1192   *
1193   * @return {?string} Updated state.
1194   */
1195  
1196  function reducer_activeGeneralSidebar() {
1197    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_ACTIVE_GENERAL_SIDEBAR;
1198    var action = arguments.length > 1 ? arguments[1] : undefined;
1199  
1200    switch (action.type) {
1201      case 'OPEN_GENERAL_SIDEBAR':
1202        return action.name;
1203    }
1204  
1205    return state;
1206  }
1207  /**
1208   * Reducer for storing the name of the open modal, or null if no modal is open.
1209   *
1210   * @param {Object} state  Previous state.
1211   * @param {Object} action Action object containing the `name` of the modal
1212   *
1213   * @return {Object} Updated state
1214   */
1215  
1216  function activeModal() {
1217    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
1218    var action = arguments.length > 1 ? arguments[1] : undefined;
1219  
1220    switch (action.type) {
1221      case 'OPEN_MODAL':
1222        return action.name;
1223  
1224      case 'CLOSE_MODAL':
1225        return null;
1226    }
1227  
1228    return state;
1229  }
1230  function publishSidebarActive() {
1231    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
1232    var action = arguments.length > 1 ? arguments[1] : undefined;
1233  
1234    switch (action.type) {
1235      case 'OPEN_PUBLISH_SIDEBAR':
1236        return true;
1237  
1238      case 'CLOSE_PUBLISH_SIDEBAR':
1239        return false;
1240  
1241      case 'TOGGLE_PUBLISH_SIDEBAR':
1242        return !state;
1243    }
1244  
1245    return state;
1246  }
1247  /**
1248   * Reducer keeping track of the meta boxes isSaving state.
1249   * A "true" value means the meta boxes saving request is in-flight.
1250   *
1251   *
1252   * @param {boolean}  state   Previous state.
1253   * @param {Object}   action  Action Object.
1254   *
1255   * @return {Object} Updated state.
1256   */
1257  
1258  function isSavingMetaBoxes() {
1259    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
1260    var action = arguments.length > 1 ? arguments[1] : undefined;
1261  
1262    switch (action.type) {
1263      case 'REQUEST_META_BOX_UPDATES':
1264        return true;
1265  
1266      case 'META_BOX_UPDATES_SUCCESS':
1267        return false;
1268  
1269      default:
1270        return state;
1271    }
1272  }
1273  /**
1274   * Reducer keeping track of the meta boxes per location.
1275   *
1276   * @param {boolean}  state   Previous state.
1277   * @param {Object}   action  Action Object.
1278   *
1279   * @return {Object} Updated state.
1280   */
1281  
1282  function metaBoxLocations() {
1283    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1284    var action = arguments.length > 1 ? arguments[1] : undefined;
1285  
1286    switch (action.type) {
1287      case 'SET_META_BOXES_PER_LOCATIONS':
1288        return action.metaBoxesPerLocation;
1289    }
1290  
1291    return state;
1292  }
1293  var reducer_metaBoxes = Object(external_this_wp_data_["combineReducers"])({
1294    isSaving: isSavingMetaBoxes,
1295    locations: metaBoxLocations
1296  });
1297  /* harmony default export */ var reducer = (Object(external_this_wp_data_["combineReducers"])({
1298    activeGeneralSidebar: reducer_activeGeneralSidebar,
1299    activeModal: activeModal,
1300    metaBoxes: reducer_metaBoxes,
1301    preferences: preferences,
1302    publishSidebarActive: publishSidebarActive,
1303    removedPanels: removedPanels
1304  }));
1305  
1306  // EXTERNAL MODULE: ./node_modules/refx/refx.js
1307  var refx = __webpack_require__(70);
1308  var refx_default = /*#__PURE__*/__webpack_require__.n(refx);
1309  
1310  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
1311  var slicedToArray = __webpack_require__(22);
1312  
1313  // EXTERNAL MODULE: external {"this":["wp","a11y"]}
1314  var external_this_wp_a11y_ = __webpack_require__(44);
1315  
1316  // EXTERNAL MODULE: external {"this":["wp","apiFetch"]}
1317  var external_this_wp_apiFetch_ = __webpack_require__(37);
1318  var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_);
1319  
1320  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/actions.js
1321  /**
1322   * External dependencies
1323   */
1324  
1325  /**
1326   * Returns an action object used in signalling that the user opened an editor sidebar.
1327   *
1328   * @param {string} name Sidebar name to be opened.
1329   *
1330   * @return {Object} Action object.
1331   */
1332  
1333  function actions_openGeneralSidebar(name) {
1334    return {
1335      type: 'OPEN_GENERAL_SIDEBAR',
1336      name: name
1337    };
1338  }
1339  /**
1340   * Returns an action object signalling that the user closed the sidebar.
1341   *
1342   * @return {Object} Action object.
1343   */
1344  
1345  function actions_closeGeneralSidebar() {
1346    return {
1347      type: 'CLOSE_GENERAL_SIDEBAR'
1348    };
1349  }
1350  /**
1351   * Returns an action object used in signalling that the user opened a modal.
1352   *
1353   * @param {string} name A string that uniquely identifies the modal.
1354   *
1355   * @return {Object} Action object.
1356   */
1357  
1358  function actions_openModal(name) {
1359    return {
1360      type: 'OPEN_MODAL',
1361      name: name
1362    };
1363  }
1364  /**
1365   * Returns an action object signalling that the user closed a modal.
1366   *
1367   * @return {Object} Action object.
1368   */
1369  
1370  function actions_closeModal() {
1371    return {
1372      type: 'CLOSE_MODAL'
1373    };
1374  }
1375  /**
1376   * Returns an action object used in signalling that the user opened the publish
1377   * sidebar.
1378   *
1379   * @return {Object} Action object
1380   */
1381  
1382  function openPublishSidebar() {
1383    return {
1384      type: 'OPEN_PUBLISH_SIDEBAR'
1385    };
1386  }
1387  /**
1388   * Returns an action object used in signalling that the user closed the
1389   * publish sidebar.
1390   *
1391   * @return {Object} Action object.
1392   */
1393  
1394  function actions_closePublishSidebar() {
1395    return {
1396      type: 'CLOSE_PUBLISH_SIDEBAR'
1397    };
1398  }
1399  /**
1400   * Returns an action object used in signalling that the user toggles the publish sidebar.
1401   *
1402   * @return {Object} Action object
1403   */
1404  
1405  function actions_togglePublishSidebar() {
1406    return {
1407      type: 'TOGGLE_PUBLISH_SIDEBAR'
1408    };
1409  }
1410  /**
1411   * Returns an action object used to enable or disable a panel in the editor.
1412   *
1413   * @param {string} panelName A string that identifies the panel to enable or disable.
1414   *
1415   * @return {Object} Action object.
1416   */
1417  
1418  function toggleEditorPanelEnabled(panelName) {
1419    return {
1420      type: 'TOGGLE_PANEL_ENABLED',
1421      panelName: panelName
1422    };
1423  }
1424  /**
1425   * Returns an action object used to open or close a panel in the editor.
1426   *
1427   * @param {string} panelName A string that identifies the panel to open or close.
1428   *
1429   * @return {Object} Action object.
1430   */
1431  
1432  function actions_toggleEditorPanelOpened(panelName) {
1433    return {
1434      type: 'TOGGLE_PANEL_OPENED',
1435      panelName: panelName
1436    };
1437  }
1438  /**
1439   * Returns an action object used to remove a panel from the editor.
1440   *
1441   * @param {string} panelName A string that identifies the panel to remove.
1442   *
1443   * @return {Object} Action object.
1444   */
1445  
1446  function removeEditorPanel(panelName) {
1447    return {
1448      type: 'REMOVE_PANEL',
1449      panelName: panelName
1450    };
1451  }
1452  /**
1453   * Returns an action object used to toggle a feature flag.
1454   *
1455   * @param {string} feature Feature name.
1456   *
1457   * @return {Object} Action object.
1458   */
1459  
1460  function toggleFeature(feature) {
1461    return {
1462      type: 'TOGGLE_FEATURE',
1463      feature: feature
1464    };
1465  }
1466  function switchEditorMode(mode) {
1467    return {
1468      type: 'SWITCH_MODE',
1469      mode: mode
1470    };
1471  }
1472  /**
1473   * Returns an action object used to toggle a plugin name flag.
1474   *
1475   * @param {string} pluginName Plugin name.
1476   *
1477   * @return {Object} Action object.
1478   */
1479  
1480  function togglePinnedPluginItem(pluginName) {
1481    return {
1482      type: 'TOGGLE_PINNED_PLUGIN_ITEM',
1483      pluginName: pluginName
1484    };
1485  }
1486  /**
1487   * Returns an action object used in signalling that block types by the given
1488   * name(s) should be hidden.
1489   *
1490   * @param {string[]} blockNames Names of block types to hide.
1491   *
1492   * @return {Object} Action object.
1493   */
1494  
1495  function actions_hideBlockTypes(blockNames) {
1496    return {
1497      type: 'HIDE_BLOCK_TYPES',
1498      blockNames: Object(external_this_lodash_["castArray"])(blockNames)
1499    };
1500  }
1501  /**
1502   * Returns an action object used in signaling that a style should be auto-applied when a block is created.
1503   *
1504   * @param {string}  blockName  Name of the block.
1505   * @param {?string} blockStyle Name of the style that should be auto applied. If undefined, the "auto apply" setting of the block is removed.
1506   *
1507   * @return {Object} Action object.
1508   */
1509  
1510  function actions_updatePreferredStyleVariations(blockName, blockStyle) {
1511    return {
1512      type: 'UPDATE_PREFERRED_STYLE_VARIATIONS',
1513      blockName: blockName,
1514      blockStyle: blockStyle
1515    };
1516  }
1517  function __experimentalUpdateLocalAutosaveInterval(interval) {
1518    return {
1519      type: 'UPDATE_LOCAL_AUTOSAVE_INTERVAL',
1520      interval: interval
1521    };
1522  }
1523  /**
1524   * Returns an action object used in signalling that block types by the given
1525   * name(s) should be shown.
1526   *
1527   * @param {string[]} blockNames Names of block types to show.
1528   *
1529   * @return {Object} Action object.
1530   */
1531  
1532  function actions_showBlockTypes(blockNames) {
1533    return {
1534      type: 'SHOW_BLOCK_TYPES',
1535      blockNames: Object(external_this_lodash_["castArray"])(blockNames)
1536    };
1537  }
1538  /**
1539   * Returns an action object used in signaling
1540   * what Meta boxes are available in which location.
1541   *
1542   * @param {Object} metaBoxesPerLocation Meta boxes per location.
1543   *
1544   * @return {Object} Action object.
1545   */
1546  
1547  function setAvailableMetaBoxesPerLocation(metaBoxesPerLocation) {
1548    return {
1549      type: 'SET_META_BOXES_PER_LOCATIONS',
1550      metaBoxesPerLocation: metaBoxesPerLocation
1551    };
1552  }
1553  /**
1554   * Returns an action object used to request meta box update.
1555   *
1556   * @return {Object} Action object.
1557   */
1558  
1559  function requestMetaBoxUpdates() {
1560    return {
1561      type: 'REQUEST_META_BOX_UPDATES'
1562    };
1563  }
1564  /**
1565   * Returns an action object used signal a successful meta box update.
1566   *
1567   * @return {Object} Action object.
1568   */
1569  
1570  function metaBoxUpdatesSuccess() {
1571    return {
1572      type: 'META_BOX_UPDATES_SUCCESS'
1573    };
1574  }
1575  
1576  // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
1577  var rememo = __webpack_require__(38);
1578  
1579  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/selectors.js
1580  /**
1581   * External dependencies
1582   */
1583  
1584  
1585  /**
1586   * Returns the current editing mode.
1587   *
1588   * @param {Object} state Global application state.
1589   *
1590   * @return {string} Editing mode.
1591   */
1592  
1593  function getEditorMode(state) {
1594    return selectors_getPreference(state, 'editorMode', 'visual');
1595  }
1596  /**
1597   * Returns true if the editor sidebar is opened.
1598   *
1599   * @param {Object} state Global application state
1600   *
1601   * @return {boolean} Whether the editor sidebar is opened.
1602   */
1603  
1604  function selectors_isEditorSidebarOpened(state) {
1605    var activeGeneralSidebar = getActiveGeneralSidebarName(state);
1606    return Object(external_this_lodash_["includes"])(['edit-post/document', 'edit-post/block'], activeGeneralSidebar);
1607  }
1608  /**
1609   * Returns true if the plugin sidebar is opened.
1610   *
1611   * @param {Object} state Global application state
1612   * @return {boolean}     Whether the plugin sidebar is opened.
1613   */
1614  
1615  function isPluginSidebarOpened(state) {
1616    var activeGeneralSidebar = getActiveGeneralSidebarName(state);
1617    return !!activeGeneralSidebar && !selectors_isEditorSidebarOpened(state);
1618  }
1619  /**
1620   * Returns the current active general sidebar name, or null if there is no
1621   * general sidebar active. The active general sidebar is a unique name to
1622   * identify either an editor or plugin sidebar.
1623   *
1624   * Examples:
1625   *
1626   *  - `edit-post/document`
1627   *  - `my-plugin/insert-image-sidebar`
1628   *
1629   * @param {Object} state Global application state.
1630   *
1631   * @return {?string} Active general sidebar name.
1632   */
1633  
1634  function getActiveGeneralSidebarName(state) {
1635    // Dismissal takes precedent.
1636    var isDismissed = selectors_getPreference(state, 'isGeneralSidebarDismissed', false);
1637  
1638    if (isDismissed) {
1639      return null;
1640    }
1641  
1642    return state.activeGeneralSidebar;
1643  }
1644  /**
1645   * Returns the preferences (these preferences are persisted locally).
1646   *
1647   * @param {Object} state Global application state.
1648   *
1649   * @return {Object} Preferences Object.
1650   */
1651  
1652  function getPreferences(state) {
1653    return state.preferences;
1654  }
1655  /**
1656   *
1657   * @param {Object} state         Global application state.
1658   * @param {string} preferenceKey Preference Key.
1659   * @param {*}      defaultValue  Default Value.
1660   *
1661   * @return {*} Preference Value.
1662   */
1663  
1664  function selectors_getPreference(state, preferenceKey, defaultValue) {
1665    var preferences = getPreferences(state);
1666    var value = preferences[preferenceKey];
1667    return value === undefined ? defaultValue : value;
1668  }
1669  /**
1670   * Returns true if the publish sidebar is opened.
1671   *
1672   * @param {Object} state Global application state
1673   *
1674   * @return {boolean} Whether the publish sidebar is open.
1675   */
1676  
1677  function selectors_isPublishSidebarOpened(state) {
1678    return state.publishSidebarActive;
1679  }
1680  /**
1681   * Returns true if the given panel was programmatically removed, or false otherwise.
1682   * All panels are not removed by default.
1683   *
1684   * @param {Object} state     Global application state.
1685   * @param {string} panelName A string that identifies the panel.
1686   *
1687   * @return {boolean} Whether or not the panel is removed.
1688   */
1689  
1690  function isEditorPanelRemoved(state, panelName) {
1691    return Object(external_this_lodash_["includes"])(state.removedPanels, panelName);
1692  }
1693  /**
1694   * Returns true if the given panel is enabled, or false otherwise. Panels are
1695   * enabled by default.
1696   *
1697   * @param {Object} state     Global application state.
1698   * @param {string} panelName A string that identifies the panel.
1699   *
1700   * @return {boolean} Whether or not the panel is enabled.
1701   */
1702  
1703  function selectors_isEditorPanelEnabled(state, panelName) {
1704    var panels = selectors_getPreference(state, 'panels');
1705    return !isEditorPanelRemoved(state, panelName) && Object(external_this_lodash_["get"])(panels, [panelName, 'enabled'], true);
1706  }
1707  /**
1708   * Returns true if the given panel is open, or false otherwise. Panels are
1709   * closed by default.
1710   *
1711   * @param  {Object}  state     Global application state.
1712   * @param  {string}  panelName A string that identifies the panel.
1713   *
1714   * @return {boolean} Whether or not the panel is open.
1715   */
1716  
1717  function selectors_isEditorPanelOpened(state, panelName) {
1718    var panels = selectors_getPreference(state, 'panels');
1719    return Object(external_this_lodash_["get"])(panels, [panelName]) === true || Object(external_this_lodash_["get"])(panels, [panelName, 'opened']) === true;
1720  }
1721  /**
1722   * Returns true if a modal is active, or false otherwise.
1723   *
1724   * @param  {Object}  state        Global application state.
1725   * @param  {string}  modalName A string that uniquely identifies the modal.
1726   *
1727   * @return {boolean} Whether the modal is active.
1728   */
1729  
1730  function selectors_isModalActive(state, modalName) {
1731    return state.activeModal === modalName;
1732  }
1733  /**
1734   * Returns whether the given feature is enabled or not.
1735   *
1736   * @param {Object} state   Global application state.
1737   * @param {string} feature Feature slug.
1738   *
1739   * @return {boolean} Is active.
1740   */
1741  
1742  function isFeatureActive(state, feature) {
1743    return Object(external_this_lodash_["get"])(state.preferences.features, [feature], false);
1744  }
1745  /**
1746   * Returns true if the plugin item is pinned to the header.
1747   * When the value is not set it defaults to true.
1748   *
1749   * @param  {Object}  state      Global application state.
1750   * @param  {string}  pluginName Plugin item name.
1751   *
1752   * @return {boolean} Whether the plugin item is pinned.
1753   */
1754  
1755  function isPluginItemPinned(state, pluginName) {
1756    var pinnedPluginItems = selectors_getPreference(state, 'pinnedPluginItems', {});
1757    return Object(external_this_lodash_["get"])(pinnedPluginItems, [pluginName], true);
1758  }
1759  /**
1760   * Returns an array of active meta box locations.
1761   *
1762   * @param {Object} state Post editor state.
1763   *
1764   * @return {string[]} Active meta box locations.
1765   */
1766  
1767  var getActiveMetaBoxLocations = Object(rememo["a" /* default */])(function (state) {
1768    return Object.keys(state.metaBoxes.locations).filter(function (location) {
1769      return isMetaBoxLocationActive(state, location);
1770    });
1771  }, function (state) {
1772    return [state.metaBoxes.locations];
1773  });
1774  /**
1775   * Returns true if a metabox location is active and visible
1776   *
1777   * @param {Object} state    Post editor state.
1778   * @param {string} location Meta box location to test.
1779   *
1780   * @return {boolean} Whether the meta box location is active and visible.
1781   */
1782  
1783  function isMetaBoxLocationVisible(state, location) {
1784    return isMetaBoxLocationActive(state, location) && Object(external_this_lodash_["some"])(getMetaBoxesPerLocation(state, location), function (_ref) {
1785      var id = _ref.id;
1786      return selectors_isEditorPanelEnabled(state, "meta-box-".concat(id));
1787    });
1788  }
1789  /**
1790   * Returns true if there is an active meta box in the given location, or false
1791   * otherwise.
1792   *
1793   * @param {Object} state    Post editor state.
1794   * @param {string} location Meta box location to test.
1795   *
1796   * @return {boolean} Whether the meta box location is active.
1797   */
1798  
1799  function isMetaBoxLocationActive(state, location) {
1800    var metaBoxes = getMetaBoxesPerLocation(state, location);
1801    return !!metaBoxes && metaBoxes.length !== 0;
1802  }
1803  /**
1804   * Returns the list of all the available meta boxes for a given location.
1805   *
1806   * @param {Object} state    Global application state.
1807   * @param {string} location Meta box location to test.
1808   *
1809   * @return {?Array} List of meta boxes.
1810   */
1811  
1812  function getMetaBoxesPerLocation(state, location) {
1813    return state.metaBoxes.locations[location];
1814  }
1815  /**
1816   * Returns the list of all the available meta boxes.
1817   *
1818   * @param {Object} state Global application state.
1819   *
1820   * @return {Array} List of meta boxes.
1821   */
1822  
1823  var getAllMetaBoxes = Object(rememo["a" /* default */])(function (state) {
1824    return Object(external_this_lodash_["flatten"])(Object(external_this_lodash_["values"])(state.metaBoxes.locations));
1825  }, function (state) {
1826    return [state.metaBoxes.locations];
1827  });
1828  /**
1829   * Returns true if the post is using Meta Boxes
1830   *
1831   * @param  {Object} state Global application state
1832   *
1833   * @return {boolean} Whether there are metaboxes or not.
1834   */
1835  
1836  function hasMetaBoxes(state) {
1837    return getActiveMetaBoxLocations(state).length > 0;
1838  }
1839  /**
1840   * Returns true if the Meta Boxes are being saved.
1841   *
1842   * @param   {Object}  state Global application state.
1843   *
1844   * @return {boolean} Whether the metaboxes are being saved.
1845   */
1846  
1847  function selectors_isSavingMetaBoxes(state) {
1848    return state.metaBoxes.isSaving;
1849  }
1850  
1851  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/utils/meta-boxes.js
1852  /**
1853   * Function returning the current Meta Boxes DOM Node in the editor
1854   * whether the meta box area is opened or not.
1855   * If the MetaBox Area is visible returns it, and returns the original container instead.
1856   *
1857   * @param   {string} location Meta Box location.
1858   * @return {string}          HTML content.
1859   */
1860  var getMetaBoxContainer = function getMetaBoxContainer(location) {
1861    var area = document.querySelector(".edit-post-meta-boxes-area.is-".concat(location, " .metabox-location-").concat(location));
1862  
1863    if (area) {
1864      return area;
1865    }
1866  
1867    return document.querySelector('#metaboxes .metabox-location-' + location);
1868  };
1869  
1870  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/effects.js
1871  
1872  
1873  
1874  /**
1875   * External dependencies
1876   */
1877  
1878  /**
1879   * WordPress dependencies
1880   */
1881  
1882  
1883  
1884  
1885  
1886  /**
1887   * Internal dependencies
1888   */
1889  
1890  
1891  
1892  
1893  var saveMetaboxUnsubscribe;
1894  var effects = {
1895    SET_META_BOXES_PER_LOCATIONS: function SET_META_BOXES_PER_LOCATIONS(action, store) {
1896      // Allow toggling metaboxes panels
1897      // We need to wait for all scripts to load
1898      // If the meta box loads the post script, it will already trigger this.
1899      // After merge in Core, make sure to drop the timeout and update the postboxes script
1900      // to avoid the double binding.
1901      setTimeout(function () {
1902        var postType = Object(external_this_wp_data_["select"])('core/editor').getCurrentPostType();
1903  
1904        if (window.postboxes.page !== postType) {
1905          window.postboxes.add_postbox_toggles(postType);
1906        }
1907      });
1908      var wasSavingPost = Object(external_this_wp_data_["select"])('core/editor').isSavingPost();
1909      var wasAutosavingPost = Object(external_this_wp_data_["select"])('core/editor').isAutosavingPost(); // Meta boxes are initialized once at page load. It is not necessary to
1910      // account for updates on each state change.
1911      //
1912      // See: https://github.com/WordPress/WordPress/blob/5.1.1/wp-admin/includes/post.php#L2307-L2309
1913  
1914      var hasActiveMetaBoxes = Object(external_this_wp_data_["select"])('core/edit-post').hasMetaBoxes(); // First remove any existing subscription in order to prevent multiple saves
1915  
1916      if (!!saveMetaboxUnsubscribe) {
1917        saveMetaboxUnsubscribe();
1918      } // Save metaboxes when performing a full save on the post.
1919  
1920  
1921      saveMetaboxUnsubscribe = Object(external_this_wp_data_["subscribe"])(function () {
1922        var isSavingPost = Object(external_this_wp_data_["select"])('core/editor').isSavingPost();
1923        var isAutosavingPost = Object(external_this_wp_data_["select"])('core/editor').isAutosavingPost(); // Save metaboxes on save completion, except for autosaves that are not a post preview.
1924  
1925        var shouldTriggerMetaboxesSave = hasActiveMetaBoxes && wasSavingPost && !isSavingPost && !wasAutosavingPost; // Save current state for next inspection.
1926  
1927        wasSavingPost = isSavingPost;
1928        wasAutosavingPost = isAutosavingPost;
1929  
1930        if (shouldTriggerMetaboxesSave) {
1931          store.dispatch(requestMetaBoxUpdates());
1932        }
1933      });
1934    },
1935    REQUEST_META_BOX_UPDATES: function REQUEST_META_BOX_UPDATES(action, store) {
1936      // Saves the wp_editor fields
1937      if (window.tinyMCE) {
1938        window.tinyMCE.triggerSave();
1939      }
1940  
1941      var state = store.getState(); // Additional data needed for backward compatibility.
1942      // If we do not provide this data, the post will be overridden with the default values.
1943  
1944      var post = Object(external_this_wp_data_["select"])('core/editor').getCurrentPost(state);
1945      var additionalData = [post.comment_status ? ['comment_status', post.comment_status] : false, post.ping_status ? ['ping_status', post.ping_status] : false, post.sticky ? ['sticky', post.sticky] : false, post.author ? ['post_author', post.author] : false].filter(Boolean); // We gather all the metaboxes locations data and the base form data
1946  
1947      var baseFormData = new window.FormData(document.querySelector('.metabox-base-form'));
1948      var formDataToMerge = [baseFormData].concat(Object(toConsumableArray["a" /* default */])(getActiveMetaBoxLocations(state).map(function (location) {
1949        return new window.FormData(getMetaBoxContainer(location));
1950      }))); // Merge all form data objects into a single one.
1951  
1952      var formData = Object(external_this_lodash_["reduce"])(formDataToMerge, function (memo, currentFormData) {
1953        var _iteratorNormalCompletion = true;
1954        var _didIteratorError = false;
1955        var _iteratorError = undefined;
1956  
1957        try {
1958          for (var _iterator = currentFormData[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
1959            var _step$value = Object(slicedToArray["a" /* default */])(_step.value, 2),
1960                key = _step$value[0],
1961                value = _step$value[1];
1962  
1963            memo.append(key, value);
1964          }
1965        } catch (err) {
1966          _didIteratorError = true;
1967          _iteratorError = err;
1968        } finally {
1969          try {
1970            if (!_iteratorNormalCompletion && _iterator.return != null) {
1971              _iterator.return();
1972            }
1973          } finally {
1974            if (_didIteratorError) {
1975              throw _iteratorError;
1976            }
1977          }
1978        }
1979  
1980        return memo;
1981      }, new window.FormData());
1982      additionalData.forEach(function (_ref) {
1983        var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 2),
1984            key = _ref2[0],
1985            value = _ref2[1];
1986  
1987        return formData.append(key, value);
1988      }); // Save the metaboxes
1989  
1990      external_this_wp_apiFetch_default()({
1991        url: window._wpMetaBoxUrl,
1992        method: 'POST',
1993        body: formData,
1994        parse: false
1995      }).then(function () {
1996        return store.dispatch(metaBoxUpdatesSuccess());
1997      });
1998    },
1999    SWITCH_MODE: function SWITCH_MODE(action) {
2000      // Unselect blocks when we switch to the code editor.
2001      if (action.mode !== 'visual') {
2002        Object(external_this_wp_data_["dispatch"])('core/block-editor').clearSelectedBlock();
2003      }
2004  
2005      var message = action.mode === 'visual' ? Object(external_this_wp_i18n_["__"])('Visual editor selected') : Object(external_this_wp_i18n_["__"])('Code editor selected');
2006      Object(external_this_wp_a11y_["speak"])(message, 'assertive');
2007    }
2008  };
2009  /* harmony default export */ var store_effects = (effects);
2010  
2011  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/middlewares.js
2012  
2013  
2014  /**
2015   * External dependencies
2016   */
2017  
2018  
2019  /**
2020   * Internal dependencies
2021   */
2022  
2023  
2024  /**
2025   * Applies the custom middlewares used specifically in the editor module.
2026   *
2027   * @param {Object} store Store Object.
2028   *
2029   * @return {Object} Update Store Object.
2030   */
2031  
2032  function applyMiddlewares(store) {
2033    var middlewares = [refx_default()(store_effects)];
2034  
2035    var enhancedDispatch = function enhancedDispatch() {
2036      throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
2037    };
2038  
2039    var chain = [];
2040    var middlewareAPI = {
2041      getState: store.getState,
2042      dispatch: function dispatch() {
2043        return enhancedDispatch.apply(void 0, arguments);
2044      }
2045    };
2046    chain = middlewares.map(function (middleware) {
2047      return middleware(middlewareAPI);
2048    });
2049    enhancedDispatch = external_this_lodash_["flowRight"].apply(void 0, Object(toConsumableArray["a" /* default */])(chain))(store.dispatch);
2050    store.dispatch = enhancedDispatch;
2051    return store;
2052  }
2053  
2054  /* harmony default export */ var store_middlewares = (applyMiddlewares);
2055  
2056  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/controls.js
2057  
2058  
2059  /**
2060   * WordPress dependencies
2061   */
2062  
2063  /**
2064   * Calls a selector using the current state.
2065   *
2066   * @param {string} storeName    Store name.
2067   * @param {string} selectorName Selector name.
2068   * @param  {Array} args         Selector arguments.
2069   *
2070   * @return {Object} control descriptor.
2071   */
2072  
2073  function controls_select(storeName, selectorName) {
2074    for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
2075      args[_key - 2] = arguments[_key];
2076    }
2077  
2078    return {
2079      type: 'SELECT',
2080      storeName: storeName,
2081      selectorName: selectorName,
2082      args: args
2083    };
2084  }
2085  var controls = {
2086    SELECT: Object(external_this_wp_data_["createRegistryControl"])(function (registry) {
2087      return function (_ref) {
2088        var _registry$select;
2089  
2090        var storeName = _ref.storeName,
2091            selectorName = _ref.selectorName,
2092            args = _ref.args;
2093        return (_registry$select = registry.select(storeName))[selectorName].apply(_registry$select, Object(toConsumableArray["a" /* default */])(args));
2094      };
2095    })
2096  };
2097  /* harmony default export */ var store_controls = (controls);
2098  
2099  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/constants.js
2100  /**
2101   * The identifier for the data store.
2102   *
2103   * @type {string}
2104   */
2105  var STORE_KEY = 'core/edit-post';
2106  /**
2107   * CSS selector string for the admin bar view post link anchor tag.
2108   *
2109   * @type {string}
2110   */
2111  
2112  var VIEW_AS_LINK_SELECTOR = '#wp-admin-bar-view a';
2113  /**
2114   * CSS selector string for the admin bar preview post link anchor tag.
2115   *
2116   * @type {string}
2117   */
2118  
2119  var VIEW_AS_PREVIEW_LINK_SELECTOR = '#wp-admin-bar-preview a';
2120  
2121  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/index.js
2122  /**
2123   * WordPress dependencies
2124   */
2125  
2126  /**
2127   * Internal dependencies
2128   */
2129  
2130  
2131  
2132  
2133  
2134  
2135  
2136  var store_store = Object(external_this_wp_data_["registerStore"])(STORE_KEY, {
2137    reducer: reducer,
2138    actions: actions_namespaceObject,
2139    selectors: selectors_namespaceObject,
2140    controls: store_controls,
2141    persist: ['preferences']
2142  });
2143  store_middlewares(store_store);
2144  /* harmony default export */ var build_module_store = (store_store);
2145  
2146  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
2147  var classCallCheck = __webpack_require__(13);
2148  
2149  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
2150  var createClass = __webpack_require__(12);
2151  
2152  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
2153  var possibleConstructorReturn = __webpack_require__(15);
2154  
2155  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
2156  var getPrototypeOf = __webpack_require__(16);
2157  
2158  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules
2159  var inherits = __webpack_require__(17);
2160  
2161  // EXTERNAL MODULE: ./node_modules/memize/index.js
2162  var memize = __webpack_require__(42);
2163  var memize_default = /*#__PURE__*/__webpack_require__.n(memize);
2164  
2165  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/prevent-event-discovery.js
2166  /* harmony default export */ var prevent_event_discovery = ({
2167    't a l e s o f g u t e n b e r g': function tALESOFGUTENBERG(event) {
2168      if (!document.activeElement.classList.contains('edit-post-visual-editor') && document.activeElement !== document.body) {
2169        return;
2170      }
2171  
2172      event.preventDefault();
2173      window.wp.data.dispatch('core/block-editor').insertBlock(window.wp.blocks.createBlock('core/paragraph', {
2174        content: '🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️'
2175      }));
2176    }
2177  });
2178  
2179  // EXTERNAL MODULE: ./node_modules/classnames/index.js
2180  var classnames = __webpack_require__(11);
2181  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
2182  
2183  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/text-editor/index.js
2184  
2185  
2186  /**
2187   * WordPress dependencies
2188   */
2189  
2190  
2191  
2192  
2193  
2194  
2195  
2196  function TextEditor(_ref) {
2197    var onExit = _ref.onExit,
2198        isRichEditingEnabled = _ref.isRichEditingEnabled;
2199    return Object(external_this_wp_element_["createElement"])("div", {
2200      className: "edit-post-text-editor"
2201    }, isRichEditingEnabled && Object(external_this_wp_element_["createElement"])("div", {
2202      className: "edit-post-text-editor__toolbar"
2203    }, Object(external_this_wp_element_["createElement"])("h2", null, Object(external_this_wp_i18n_["__"])('Editing Code')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
2204      onClick: onExit,
2205      icon: "no-alt",
2206      shortcut: external_this_wp_keycodes_["displayShortcut"].secondary('m')
2207    }, Object(external_this_wp_i18n_["__"])('Exit Code Editor')), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["TextEditorGlobalKeyboardShortcuts"], null)), Object(external_this_wp_element_["createElement"])("div", {
2208      className: "edit-post-text-editor__body"
2209    }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostTitle"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostTextEditor"], null)));
2210  }
2211  
2212  /* harmony default export */ var text_editor = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
2213    return {
2214      isRichEditingEnabled: select('core/editor').getEditorSettings().richEditingEnabled
2215    };
2216  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
2217    return {
2218      onExit: function onExit() {
2219        dispatch('core/edit-post').switchEditorMode('visual');
2220      }
2221    };
2222  }))(TextEditor));
2223  
2224  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/keyboard-shortcuts.js
2225  /**
2226   * WordPress dependencies
2227   */
2228  
2229  /* harmony default export */ var keyboard_shortcuts = ({
2230    toggleEditorMode: {
2231      raw: external_this_wp_keycodes_["rawShortcut"].secondary('m'),
2232      display: external_this_wp_keycodes_["displayShortcut"].secondary('m')
2233    },
2234    toggleSidebar: {
2235      raw: external_this_wp_keycodes_["rawShortcut"].primaryShift(','),
2236      display: external_this_wp_keycodes_["displayShortcut"].primaryShift(','),
2237      ariaLabel: external_this_wp_keycodes_["shortcutAriaLabel"].primaryShift(',')
2238    }
2239  });
2240  
2241  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/visual-editor/block-inspector-button.js
2242  
2243  
2244  /**
2245   * External dependencies
2246   */
2247  
2248  /**
2249   * WordPress dependencies
2250   */
2251  
2252  
2253  
2254  
2255  
2256  /**
2257   * Internal dependencies
2258   */
2259  
2260  
2261  function BlockInspectorButton(_ref) {
2262    var areAdvancedSettingsOpened = _ref.areAdvancedSettingsOpened,
2263        closeSidebar = _ref.closeSidebar,
2264        openEditorSidebar = _ref.openEditorSidebar,
2265        _ref$onClick = _ref.onClick,
2266        onClick = _ref$onClick === void 0 ? external_this_lodash_["noop"] : _ref$onClick,
2267        _ref$small = _ref.small,
2268        small = _ref$small === void 0 ? false : _ref$small,
2269        speak = _ref.speak;
2270  
2271    var speakMessage = function speakMessage() {
2272      if (areAdvancedSettingsOpened) {
2273        speak(Object(external_this_wp_i18n_["__"])('Block settings closed'));
2274      } else {
2275        speak(Object(external_this_wp_i18n_["__"])('Additional settings are now available in the Editor block settings sidebar'));
2276      }
2277    };
2278  
2279    var label = areAdvancedSettingsOpened ? Object(external_this_wp_i18n_["__"])('Hide Block Settings') : Object(external_this_wp_i18n_["__"])('Show Block Settings');
2280    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], {
2281      className: "editor-block-settings-menu__control block-editor-block-settings-menu__control",
2282      onClick: Object(external_this_lodash_["flow"])(areAdvancedSettingsOpened ? closeSidebar : openEditorSidebar, speakMessage, onClick),
2283      icon: "admin-generic",
2284      shortcut: keyboard_shortcuts.toggleSidebar
2285    }, !small && label);
2286  }
2287  /* harmony default export */ var block_inspector_button = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
2288    return {
2289      areAdvancedSettingsOpened: select('core/edit-post').getActiveGeneralSidebarName() === 'edit-post/block'
2290    };
2291  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
2292    return {
2293      openEditorSidebar: function openEditorSidebar() {
2294        return dispatch('core/edit-post').openGeneralSidebar('edit-post/block');
2295      },
2296      closeSidebar: dispatch('core/edit-post').closeGeneralSidebar
2297    };
2298  }), external_this_wp_components_["withSpokenMessages"])(BlockInspectorButton));
2299  
2300  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/block-settings-menu/plugin-block-settings-menu-group.js
2301  
2302  
2303  
2304  /**
2305   * External dependencies
2306   */
2307  
2308  /**
2309   * WordPress dependencies
2310   */
2311  
2312  
2313  
2314  
2315  var plugin_block_settings_menu_group_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('PluginBlockSettingsMenuGroup'),
2316      PluginBlockSettingsMenuGroup = plugin_block_settings_menu_group_createSlotFill.Fill,
2317      plugin_block_settings_menu_group_Slot = plugin_block_settings_menu_group_createSlotFill.Slot;
2318  
2319  var plugin_block_settings_menu_group_PluginBlockSettingsMenuGroupSlot = function PluginBlockSettingsMenuGroupSlot(_ref) {
2320    var fillProps = _ref.fillProps,
2321        selectedBlocks = _ref.selectedBlocks;
2322    selectedBlocks = Object(external_this_lodash_["map"])(selectedBlocks, function (block) {
2323      return block.name;
2324    });
2325    return Object(external_this_wp_element_["createElement"])(plugin_block_settings_menu_group_Slot, {
2326      fillProps: Object(objectSpread["a" /* default */])({}, fillProps, {
2327        selectedBlocks: selectedBlocks
2328      })
2329    }, function (fills) {
2330      return !Object(external_this_lodash_["isEmpty"])(fills) && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", {
2331        className: "editor-block-settings-menu__separator block-editor-block-settings-menu__separator"
2332      }), fills);
2333    });
2334  };
2335  
2336  PluginBlockSettingsMenuGroup.Slot = Object(external_this_wp_data_["withSelect"])(function (select, _ref2) {
2337    var clientIds = _ref2.fillProps.clientIds;
2338    return {
2339      selectedBlocks: select('core/block-editor').getBlocksByClientId(clientIds)
2340    };
2341  })(plugin_block_settings_menu_group_PluginBlockSettingsMenuGroupSlot);
2342  /* harmony default export */ var plugin_block_settings_menu_group = (PluginBlockSettingsMenuGroup);
2343  
2344  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/visual-editor/index.js
2345  
2346  
2347  /**
2348   * WordPress dependencies
2349   */
2350  
2351  
2352  /**
2353   * Internal dependencies
2354   */
2355  
2356  
2357  
2358  
2359  function VisualEditor() {
2360    return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockSelectionClearer"], {
2361      className: "edit-post-visual-editor editor-styles-wrapper"
2362    }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["VisualEditorGlobalKeyboardShortcuts"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MultiSelectScrollIntoView"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["Typewriter"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["WritingFlow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ObserveTyping"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["CopyHandler"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostTitle"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockList"], null))))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlockSettingsMenuFirstItem"], null, function (_ref) {
2363      var onClose = _ref.onClose;
2364      return Object(external_this_wp_element_["createElement"])(block_inspector_button, {
2365        onClick: onClose
2366      });
2367    }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlockSettingsMenuPluginsExtension"], null, function (_ref2) {
2368      var clientIds = _ref2.clientIds,
2369          onClose = _ref2.onClose;
2370      return Object(external_this_wp_element_["createElement"])(plugin_block_settings_menu_group.Slot, {
2371        fillProps: {
2372          clientIds: clientIds,
2373          onClose: onClose
2374        }
2375      });
2376    }));
2377  }
2378  
2379  /* harmony default export */ var visual_editor = (VisualEditor);
2380  
2381  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
2382  var assertThisInitialized = __webpack_require__(6);
2383  
2384  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcuts/index.js
2385  
2386  
2387  
2388  
2389  
2390  
2391  
2392  
2393  
2394  /**
2395   * WordPress dependencies
2396   */
2397  
2398  
2399  
2400  
2401  /**
2402   * Internal dependencies
2403   */
2404  
2405  
2406  
2407  var keyboard_shortcuts_EditorModeKeyboardShortcuts =
2408  /*#__PURE__*/
2409  function (_Component) {
2410    Object(inherits["a" /* default */])(EditorModeKeyboardShortcuts, _Component);
2411  
2412    function EditorModeKeyboardShortcuts() {
2413      var _this;
2414  
2415      Object(classCallCheck["a" /* default */])(this, EditorModeKeyboardShortcuts);
2416  
2417      _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(EditorModeKeyboardShortcuts).apply(this, arguments));
2418      _this.toggleMode = _this.toggleMode.bind(Object(assertThisInitialized["a" /* default */])(_this));
2419      _this.toggleSidebar = _this.toggleSidebar.bind(Object(assertThisInitialized["a" /* default */])(_this));
2420      return _this;
2421    }
2422  
2423    Object(createClass["a" /* default */])(EditorModeKeyboardShortcuts, [{
2424      key: "toggleMode",
2425      value: function toggleMode() {
2426        var _this$props = this.props,
2427            mode = _this$props.mode,
2428            switchMode = _this$props.switchMode,
2429            isModeSwitchEnabled = _this$props.isModeSwitchEnabled;
2430  
2431        if (!isModeSwitchEnabled) {
2432          return;
2433        }
2434  
2435        switchMode(mode === 'visual' ? 'text' : 'visual');
2436      }
2437    }, {
2438      key: "toggleSidebar",
2439      value: function toggleSidebar(event) {
2440        // This shortcut has no known clashes, but use preventDefault to prevent any
2441        // obscure shortcuts from triggering.
2442        event.preventDefault();
2443        var _this$props2 = this.props,
2444            isEditorSidebarOpen = _this$props2.isEditorSidebarOpen,
2445            closeSidebar = _this$props2.closeSidebar,
2446            openSidebar = _this$props2.openSidebar;
2447  
2448        if (isEditorSidebarOpen) {
2449          closeSidebar();
2450        } else {
2451          openSidebar();
2452        }
2453      }
2454    }, {
2455      key: "render",
2456      value: function render() {
2457        var _ref;
2458  
2459        return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], {
2460          bindGlobal: true,
2461          shortcuts: (_ref = {}, Object(defineProperty["a" /* default */])(_ref, keyboard_shortcuts.toggleEditorMode.raw, this.toggleMode), Object(defineProperty["a" /* default */])(_ref, keyboard_shortcuts.toggleSidebar.raw, this.toggleSidebar), _ref)
2462        });
2463      }
2464    }]);
2465  
2466    return EditorModeKeyboardShortcuts;
2467  }(external_this_wp_element_["Component"]);
2468  
2469  /* harmony default export */ var components_keyboard_shortcuts = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) {
2470    var _select$getEditorSett = select('core/editor').getEditorSettings(),
2471        richEditingEnabled = _select$getEditorSett.richEditingEnabled,
2472        codeEditingEnabled = _select$getEditorSett.codeEditingEnabled;
2473  
2474    return {
2475      isModeSwitchEnabled: richEditingEnabled && codeEditingEnabled,
2476      mode: select('core/edit-post').getEditorMode(),
2477      isEditorSidebarOpen: select('core/edit-post').isEditorSidebarOpened()
2478    };
2479  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, _ref2) {
2480    var select = _ref2.select;
2481    return {
2482      switchMode: function switchMode(mode) {
2483        dispatch('core/edit-post').switchEditorMode(mode);
2484      },
2485      openSidebar: function openSidebar() {
2486        var _select = select('core/block-editor'),
2487            getBlockSelectionStart = _select.getBlockSelectionStart;
2488  
2489        var sidebarToOpen = getBlockSelectionStart() ? 'edit-post/block' : 'edit-post/document';
2490        dispatch('core/edit-post').openGeneralSidebar(sidebarToOpen);
2491      },
2492      closeSidebar: dispatch('core/edit-post').closeGeneralSidebar
2493    };
2494  })])(keyboard_shortcuts_EditorModeKeyboardShortcuts));
2495  
2496  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/config.js
2497  /**
2498   * WordPress dependencies
2499   */
2500  
2501  
2502  var primary = external_this_wp_keycodes_["displayShortcutList"].primary,
2503      primaryShift = external_this_wp_keycodes_["displayShortcutList"].primaryShift,
2504      primaryAlt = external_this_wp_keycodes_["displayShortcutList"].primaryAlt,
2505      secondary = external_this_wp_keycodes_["displayShortcutList"].secondary,
2506      access = external_this_wp_keycodes_["displayShortcutList"].access,
2507      ctrl = external_this_wp_keycodes_["displayShortcutList"].ctrl,
2508      alt = external_this_wp_keycodes_["displayShortcutList"].alt,
2509      ctrlShift = external_this_wp_keycodes_["displayShortcutList"].ctrlShift;
2510  var mainShortcut = {
2511    className: 'edit-post-keyboard-shortcut-help__main-shortcuts',
2512    shortcuts: [{
2513      keyCombination: access('h'),
2514      description: Object(external_this_wp_i18n_["__"])('Display these keyboard shortcuts.')
2515    }]
2516  };
2517  var globalShortcuts = {
2518    title: Object(external_this_wp_i18n_["__"])('Global shortcuts'),
2519    shortcuts: [{
2520      keyCombination: primary('s'),
2521      description: Object(external_this_wp_i18n_["__"])('Save your changes.')
2522    }, {
2523      keyCombination: primary('z'),
2524      description: Object(external_this_wp_i18n_["__"])('Undo your last changes.')
2525    }, {
2526      keyCombination: primaryShift('z'),
2527      description: Object(external_this_wp_i18n_["__"])('Redo your last undo.')
2528    }, {
2529      keyCombination: primaryShift(','),
2530      description: Object(external_this_wp_i18n_["__"])('Show or hide the settings sidebar.'),
2531      ariaLabel: external_this_wp_keycodes_["shortcutAriaLabel"].primaryShift(',')
2532    }, {
2533      keyCombination: access('o'),
2534      description: Object(external_this_wp_i18n_["__"])('Open the block navigation menu.')
2535    }, {
2536      keyCombination: ctrl('`'),
2537      description: Object(external_this_wp_i18n_["__"])('Navigate to the next part of the editor.'),
2538      ariaLabel: external_this_wp_keycodes_["shortcutAriaLabel"].ctrl('`')
2539    }, {
2540      keyCombination: ctrlShift('`'),
2541      description: Object(external_this_wp_i18n_["__"])('Navigate to the previous part of the editor.'),
2542      ariaLabel: external_this_wp_keycodes_["shortcutAriaLabel"].ctrlShift('`')
2543    }, {
2544      keyCombination: access('n'),
2545      description: Object(external_this_wp_i18n_["__"])('Navigate to the next part of the editor (alternative).')
2546    }, {
2547      keyCombination: access('p'),
2548      description: Object(external_this_wp_i18n_["__"])('Navigate to the previous part of the editor (alternative).')
2549    }, {
2550      keyCombination: alt('F10'),
2551      description: Object(external_this_wp_i18n_["__"])('Navigate to the nearest toolbar.')
2552    }, {
2553      keyCombination: secondary('m'),
2554      description: Object(external_this_wp_i18n_["__"])('Switch between Visual Editor and Code Editor.')
2555    }]
2556  };
2557  var selectionShortcuts = {
2558    title: Object(external_this_wp_i18n_["__"])('Selection shortcuts'),
2559    shortcuts: [{
2560      keyCombination: primary('a'),
2561      description: Object(external_this_wp_i18n_["__"])('Select all text when typing. Press again to select all blocks.')
2562    }, {
2563      keyCombination: 'Esc',
2564      description: Object(external_this_wp_i18n_["__"])('Clear selection.'),
2565  
2566      /* translators: The 'escape' key on a keyboard. */
2567      ariaLabel: Object(external_this_wp_i18n_["__"])('Escape')
2568    }]
2569  };
2570  var blockShortcuts = {
2571    title: Object(external_this_wp_i18n_["__"])('Block shortcuts'),
2572    shortcuts: [{
2573      keyCombination: primaryShift('d'),
2574      description: Object(external_this_wp_i18n_["__"])('Duplicate the selected block(s).')
2575    }, {
2576      keyCombination: access('z'),
2577      description: Object(external_this_wp_i18n_["__"])('Remove the selected block(s).')
2578    }, {
2579      keyCombination: primaryAlt('t'),
2580      description: Object(external_this_wp_i18n_["__"])('Insert a new block before the selected block(s).')
2581    }, {
2582      keyCombination: primaryAlt('y'),
2583      description: Object(external_this_wp_i18n_["__"])('Insert a new block after the selected block(s).')
2584    }, {
2585      keyCombination: '/',
2586      description: Object(external_this_wp_i18n_["__"])('Change the block type after adding a new paragraph.'),
2587  
2588      /* translators: The forward-slash character. e.g. '/'. */
2589      ariaLabel: Object(external_this_wp_i18n_["__"])('Forward-slash')
2590    }]
2591  };
2592  var textFormattingShortcuts = {
2593    title: Object(external_this_wp_i18n_["__"])('Text formatting'),
2594    shortcuts: [{
2595      keyCombination: primary('b'),
2596      description: Object(external_this_wp_i18n_["__"])('Make the selected text bold.')
2597    }, {
2598      keyCombination: primary('i'),
2599      description: Object(external_this_wp_i18n_["__"])('Make the selected text italic.')
2600    }, {
2601      keyCombination: primary('k'),
2602      description: Object(external_this_wp_i18n_["__"])('Convert the selected text into a link.')
2603    }, {
2604      keyCombination: primaryShift('k'),
2605      description: Object(external_this_wp_i18n_["__"])('Remove a link.')
2606    }, {
2607      keyCombination: primary('u'),
2608      description: Object(external_this_wp_i18n_["__"])('Underline the selected text.')
2609    }]
2610  };
2611  /* harmony default export */ var keyboard_shortcut_help_modal_config = ([mainShortcut, globalShortcuts, selectionShortcuts, blockShortcuts, textFormattingShortcuts]);
2612  
2613  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/index.js
2614  
2615  
2616  
2617  
2618  /**
2619   * External dependencies
2620   */
2621  
2622  
2623  /**
2624   * WordPress dependencies
2625   */
2626  
2627  
2628  
2629  
2630  
2631  
2632  
2633  /**
2634   * Internal dependencies
2635   */
2636  
2637  
2638  var MODAL_NAME = 'edit-post/keyboard-shortcut-help';
2639  
2640  var keyboard_shortcut_help_modal_mapKeyCombination = function mapKeyCombination(keyCombination) {
2641    return keyCombination.map(function (character, index) {
2642      if (character === '+') {
2643        return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], {
2644          key: index
2645        }, character);
2646      }
2647  
2648      return Object(external_this_wp_element_["createElement"])("kbd", {
2649        key: index,
2650        className: "edit-post-keyboard-shortcut-help__shortcut-key"
2651      }, character);
2652    });
2653  };
2654  
2655  var keyboard_shortcut_help_modal_ShortcutList = function ShortcutList(_ref) {
2656    var shortcuts = _ref.shortcuts;
2657    return (
2658      /*
2659       * Disable reason: The `list` ARIA role is redundant but
2660       * Safari+VoiceOver won't announce the list otherwise.
2661       */
2662  
2663      /* eslint-disable jsx-a11y/no-redundant-roles */
2664      Object(external_this_wp_element_["createElement"])("ul", {
2665        className: "edit-post-keyboard-shortcut-help__shortcut-list",
2666        role: "list"
2667      }, shortcuts.map(function (_ref2, index) {
2668        var keyCombination = _ref2.keyCombination,
2669            description = _ref2.description,
2670            ariaLabel = _ref2.ariaLabel;
2671        return Object(external_this_wp_element_["createElement"])("li", {
2672          className: "edit-post-keyboard-shortcut-help__shortcut",
2673          key: index
2674        }, Object(external_this_wp_element_["createElement"])("div", {
2675          className: "edit-post-keyboard-shortcut-help__shortcut-description"
2676        }, description), Object(external_this_wp_element_["createElement"])("div", {
2677          className: "edit-post-keyboard-shortcut-help__shortcut-term"
2678        }, Object(external_this_wp_element_["createElement"])("kbd", {
2679          className: "edit-post-keyboard-shortcut-help__shortcut-key-combination",
2680          "aria-label": ariaLabel
2681        }, keyboard_shortcut_help_modal_mapKeyCombination(Object(external_this_lodash_["castArray"])(keyCombination)))));
2682      }))
2683      /* eslint-enable jsx-a11y/no-redundant-roles */
2684  
2685    );
2686  };
2687  
2688  var keyboard_shortcut_help_modal_ShortcutSection = function ShortcutSection(_ref3) {
2689    var title = _ref3.title,
2690        shortcuts = _ref3.shortcuts,
2691        className = _ref3.className;
2692    return Object(external_this_wp_element_["createElement"])("section", {
2693      className: classnames_default()('edit-post-keyboard-shortcut-help__section', className)
2694    }, !!title && Object(external_this_wp_element_["createElement"])("h2", {
2695      className: "edit-post-keyboard-shortcut-help__section-title"
2696    }, title), Object(external_this_wp_element_["createElement"])(keyboard_shortcut_help_modal_ShortcutList, {
2697      shortcuts: shortcuts
2698    }));
2699  };
2700  
2701  function KeyboardShortcutHelpModal(_ref4) {
2702    var isModalActive = _ref4.isModalActive,
2703        toggleModal = _ref4.toggleModal;
2704    return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], {
2705      bindGlobal: true,
2706      shortcuts: Object(defineProperty["a" /* default */])({}, external_this_wp_keycodes_["rawShortcut"].access('h'), toggleModal)
2707    }), isModalActive && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Modal"], {
2708      className: "edit-post-keyboard-shortcut-help",
2709      title: Object(external_this_wp_i18n_["__"])('Keyboard Shortcuts'),
2710      closeLabel: Object(external_this_wp_i18n_["__"])('Close'),
2711      onRequestClose: toggleModal
2712    }, keyboard_shortcut_help_modal_config.map(function (config, index) {
2713      return Object(external_this_wp_element_["createElement"])(keyboard_shortcut_help_modal_ShortcutSection, Object(esm_extends["a" /* default */])({
2714        key: index
2715      }, config));
2716    })));
2717  }
2718  /* harmony default export */ var keyboard_shortcut_help_modal = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) {
2719    return {
2720      isModalActive: select('core/edit-post').isModalActive(MODAL_NAME)
2721    };
2722  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref6) {
2723    var isModalActive = _ref6.isModalActive;
2724  
2725    var _dispatch = dispatch('core/edit-post'),
2726        openModal = _dispatch.openModal,
2727        closeModal = _dispatch.closeModal;
2728  
2729    return {
2730      toggleModal: function toggleModal() {
2731        return isModalActive ? closeModal() : openModal(MODAL_NAME);
2732      }
2733    };
2734  })])(KeyboardShortcutHelpModal));
2735  
2736  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/manage-blocks-modal/checklist.js
2737  
2738  
2739  /**
2740   * External dependencies
2741   */
2742  
2743  /**
2744   * WordPress dependencies
2745   */
2746  
2747  
2748  
2749  
2750  function BlockTypesChecklist(_ref) {
2751    var blockTypes = _ref.blockTypes,
2752        value = _ref.value,
2753        onItemChange = _ref.onItemChange;
2754    return Object(external_this_wp_element_["createElement"])("ul", {
2755      className: "edit-post-manage-blocks-modal__checklist"
2756    }, blockTypes.map(function (blockType) {
2757      return Object(external_this_wp_element_["createElement"])("li", {
2758        key: blockType.name,
2759        className: "edit-post-manage-blocks-modal__checklist-item"
2760      }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["CheckboxControl"], {
2761        label: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, blockType.title, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], {
2762          icon: blockType.icon
2763        })),
2764        checked: value.includes(blockType.name),
2765        onChange: Object(external_this_lodash_["partial"])(onItemChange, blockType.name)
2766      }));
2767    }));
2768  }
2769  
2770  /* harmony default export */ var checklist = (BlockTypesChecklist);
2771  
2772  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/edit-post-settings/index.js
2773  /**
2774   * WordPress dependencies
2775   */
2776  
2777  var EditPostSettings = Object(external_this_wp_element_["createContext"])({});
2778  /* harmony default export */ var edit_post_settings = (EditPostSettings);
2779  
2780  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/manage-blocks-modal/category.js
2781  
2782  
2783  
2784  /**
2785   * External dependencies
2786   */
2787  
2788  /**
2789   * WordPress dependencies
2790   */
2791  
2792  
2793  
2794  
2795  
2796  /**
2797   * Internal dependencies
2798   */
2799  
2800  
2801  
2802  
2803  function BlockManagerCategory(_ref) {
2804    var instanceId = _ref.instanceId,
2805        category = _ref.category,
2806        blockTypes = _ref.blockTypes,
2807        hiddenBlockTypes = _ref.hiddenBlockTypes,
2808        toggleVisible = _ref.toggleVisible,
2809        toggleAllVisible = _ref.toggleAllVisible;
2810    var settings = Object(external_this_wp_element_["useContext"])(edit_post_settings);
2811    var allowedBlockTypes = settings.allowedBlockTypes;
2812    var filteredBlockTypes = Object(external_this_wp_element_["useMemo"])(function () {
2813      if (allowedBlockTypes === true) {
2814        return blockTypes;
2815      }
2816  
2817      return blockTypes.filter(function (_ref2) {
2818        var name = _ref2.name;
2819        return Object(external_this_lodash_["includes"])(allowedBlockTypes || [], name);
2820      });
2821    }, [allowedBlockTypes, blockTypes]);
2822  
2823    if (!filteredBlockTypes.length) {
2824      return null;
2825    }
2826  
2827    var checkedBlockNames = external_this_lodash_["without"].apply(void 0, [Object(external_this_lodash_["map"])(filteredBlockTypes, 'name')].concat(Object(toConsumableArray["a" /* default */])(hiddenBlockTypes)));
2828    var titleId = 'edit-post-manage-blocks-modal__category-title-' + instanceId;
2829    var isAllChecked = checkedBlockNames.length === filteredBlockTypes.length;
2830    var ariaChecked;
2831  
2832    if (isAllChecked) {
2833      ariaChecked = 'true';
2834    } else if (checkedBlockNames.length > 0) {
2835      ariaChecked = 'mixed';
2836    } else {
2837      ariaChecked = 'false';
2838    }
2839  
2840    return Object(external_this_wp_element_["createElement"])("div", {
2841      role: "group",
2842      "aria-labelledby": titleId,
2843      className: "edit-post-manage-blocks-modal__category"
2844    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["CheckboxControl"], {
2845      checked: isAllChecked,
2846      onChange: toggleAllVisible,
2847      className: "edit-post-manage-blocks-modal__category-title",
2848      "aria-checked": ariaChecked,
2849      label: Object(external_this_wp_element_["createElement"])("span", {
2850        id: titleId
2851      }, category.title)
2852    }), Object(external_this_wp_element_["createElement"])(checklist, {
2853      blockTypes: filteredBlockTypes,
2854      value: checkedBlockNames,
2855      onItemChange: toggleVisible
2856    }));
2857  }
2858  
2859  /* harmony default export */ var manage_blocks_modal_category = (Object(external_this_wp_compose_["compose"])([external_this_wp_compose_["withInstanceId"], Object(external_this_wp_data_["withSelect"])(function (select) {
2860    var _select = select('core/edit-post'),
2861        getPreference = _select.getPreference;
2862  
2863    return {
2864      hiddenBlockTypes: getPreference('hiddenBlockTypes')
2865    };
2866  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) {
2867    var _dispatch = dispatch('core/edit-post'),
2868        showBlockTypes = _dispatch.showBlockTypes,
2869        hideBlockTypes = _dispatch.hideBlockTypes;
2870  
2871    return {
2872      toggleVisible: function toggleVisible(blockName, nextIsChecked) {
2873        if (nextIsChecked) {
2874          showBlockTypes(blockName);
2875        } else {
2876          hideBlockTypes(blockName);
2877        }
2878      },
2879      toggleAllVisible: function toggleAllVisible(nextIsChecked) {
2880        var blockNames = Object(external_this_lodash_["map"])(ownProps.blockTypes, 'name');
2881  
2882        if (nextIsChecked) {
2883          showBlockTypes(blockNames);
2884        } else {
2885          hideBlockTypes(blockNames);
2886        }
2887      }
2888    };
2889  })])(BlockManagerCategory));
2890  
2891  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/manage-blocks-modal/manager.js
2892  
2893  
2894  /**
2895   * External dependencies
2896   */
2897  
2898  /**
2899   * WordPress dependencies
2900   */
2901  
2902  
2903  
2904  
2905  
2906  /**
2907   * Internal dependencies
2908   */
2909  
2910  
2911  
2912  function BlockManager(_ref) {
2913    var search = _ref.search,
2914        setState = _ref.setState,
2915        blockTypes = _ref.blockTypes,
2916        categories = _ref.categories,
2917        hasBlockSupport = _ref.hasBlockSupport,
2918        isMatchingSearchTerm = _ref.isMatchingSearchTerm,
2919        numberOfHiddenBlocks = _ref.numberOfHiddenBlocks;
2920    // Filtering occurs here (as opposed to `withSelect`) to avoid wasted
2921    // wasted renders by consequence of `Array#filter` producing a new
2922    // value reference on each call.
2923    blockTypes = blockTypes.filter(function (blockType) {
2924      return hasBlockSupport(blockType, 'inserter', true) && (!search || isMatchingSearchTerm(blockType, search)) && !blockType.parent;
2925    });
2926    return Object(external_this_wp_element_["createElement"])("div", {
2927      className: "edit-post-manage-blocks-modal__content"
2928    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], {
2929      type: "search",
2930      label: Object(external_this_wp_i18n_["__"])('Search for a block'),
2931      value: search,
2932      onChange: function onChange(nextSearch) {
2933        return setState({
2934          search: nextSearch
2935        });
2936      },
2937      className: "edit-post-manage-blocks-modal__search"
2938    }), !!numberOfHiddenBlocks && Object(external_this_wp_element_["createElement"])("div", {
2939      className: "edit-post-manage-blocks-modal__disabled-blocks-count"
2940    }, Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('%1$d block is disabled.', '%1$d blocks are disabled.', numberOfHiddenBlocks), numberOfHiddenBlocks)), Object(external_this_wp_element_["createElement"])("div", {
2941      tabIndex: "0",
2942      role: "region",
2943      "aria-label": Object(external_this_wp_i18n_["__"])('Available block types'),
2944      className: "edit-post-manage-blocks-modal__results"
2945    }, blockTypes.length === 0 && Object(external_this_wp_element_["createElement"])("p", {
2946      className: "edit-post-manage-blocks-modal__no-results"
2947    }, Object(external_this_wp_i18n_["__"])('No blocks found.')), categories.map(function (category) {
2948      return Object(external_this_wp_element_["createElement"])(manage_blocks_modal_category, {
2949        key: category.slug,
2950        category: category,
2951        blockTypes: Object(external_this_lodash_["filter"])(blockTypes, {
2952          category: category.slug
2953        })
2954      });
2955    })));
2956  }
2957  
2958  /* harmony default export */ var manager = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_compose_["withState"])({
2959    search: ''
2960  }), Object(external_this_wp_data_["withSelect"])(function (select) {
2961    var _select = select('core/blocks'),
2962        getBlockTypes = _select.getBlockTypes,
2963        getCategories = _select.getCategories,
2964        hasBlockSupport = _select.hasBlockSupport,
2965        isMatchingSearchTerm = _select.isMatchingSearchTerm;
2966  
2967    var _select2 = select('core/edit-post'),
2968        getPreference = _select2.getPreference;
2969  
2970    var hiddenBlockTypes = getPreference('hiddenBlockTypes');
2971    var numberOfHiddenBlocks = Object(external_this_lodash_["isArray"])(hiddenBlockTypes) && hiddenBlockTypes.length;
2972    return {
2973      blockTypes: getBlockTypes(),
2974      categories: getCategories(),
2975      hasBlockSupport: hasBlockSupport,
2976      isMatchingSearchTerm: isMatchingSearchTerm,
2977      numberOfHiddenBlocks: numberOfHiddenBlocks
2978    };
2979  })])(BlockManager));
2980  
2981  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/manage-blocks-modal/index.js
2982  
2983  
2984  /**
2985   * WordPress dependencies
2986   */
2987  
2988  
2989  
2990  
2991  /**
2992   * Internal dependencies
2993   */
2994  
2995  
2996  /**
2997   * Unique identifier for Manage Blocks modal.
2998   *
2999   * @type {string}
3000   */
3001  
3002  var manage_blocks_modal_MODAL_NAME = 'edit-post/manage-blocks';
3003  function ManageBlocksModal(_ref) {
3004    var isActive = _ref.isActive,
3005        closeModal = _ref.closeModal;
3006  
3007    if (!isActive) {
3008      return null;
3009    }
3010  
3011    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Modal"], {
3012      className: "edit-post-manage-blocks-modal",
3013      title: Object(external_this_wp_i18n_["__"])('Block Manager'),
3014      closeLabel: Object(external_this_wp_i18n_["__"])('Close'),
3015      onRequestClose: closeModal
3016    }, Object(external_this_wp_element_["createElement"])(manager, null));
3017  }
3018  /* harmony default export */ var manage_blocks_modal = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) {
3019    var _select = select('core/edit-post'),
3020        isModalActive = _select.isModalActive;
3021  
3022    return {
3023      isActive: isModalActive(manage_blocks_modal_MODAL_NAME)
3024    };
3025  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
3026    var _dispatch = dispatch('core/edit-post'),
3027        closeModal = _dispatch.closeModal;
3028  
3029    return {
3030      closeModal: closeModal
3031    };
3032  })])(ManageBlocksModal));
3033  
3034  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/section.js
3035  
3036  
3037  var section_Section = function Section(_ref) {
3038    var title = _ref.title,
3039        children = _ref.children;
3040    return Object(external_this_wp_element_["createElement"])("section", {
3041      className: "edit-post-options-modal__section"
3042    }, Object(external_this_wp_element_["createElement"])("h2", {
3043      className: "edit-post-options-modal__section-title"
3044    }, title), children);
3045  };
3046  
3047  /* harmony default export */ var section = (section_Section);
3048  
3049  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/base.js
3050  
3051  
3052  /**
3053   * WordPress dependencies
3054   */
3055  
3056  
3057  function BaseOption(_ref) {
3058    var label = _ref.label,
3059        isChecked = _ref.isChecked,
3060        onChange = _ref.onChange,
3061        children = _ref.children;
3062    return Object(external_this_wp_element_["createElement"])("div", {
3063      className: "edit-post-options-modal__option"
3064    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["CheckboxControl"], {
3065      label: label,
3066      checked: isChecked,
3067      onChange: onChange
3068    }), children);
3069  }
3070  
3071  /* harmony default export */ var base = (BaseOption);
3072  
3073  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-custom-fields.js
3074  
3075  
3076  
3077  /**
3078   * WordPress dependencies
3079   */
3080  
3081  
3082  
3083  
3084  /**
3085   * Internal dependencies
3086   */
3087  
3088  
3089  function CustomFieldsConfirmation(_ref) {
3090    var willEnable = _ref.willEnable;
3091  
3092    var _useState = Object(external_this_wp_element_["useState"])(false),
3093        _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
3094        isReloading = _useState2[0],
3095        setIsReloading = _useState2[1];
3096  
3097    return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("p", {
3098      className: "edit-post-options-modal__custom-fields-confirmation-message"
3099    }, Object(external_this_wp_i18n_["__"])('A page reload is required for this change. Make sure your content is saved before reloading.')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
3100      className: "edit-post-options-modal__custom-fields-confirmation-button",
3101      isDefault: true,
3102      isBusy: isReloading,
3103      disabled: isReloading,
3104      onClick: function onClick() {
3105        setIsReloading(true);
3106        document.getElementById('toggle-custom-fields-form').submit();
3107      }
3108    }, willEnable ? Object(external_this_wp_i18n_["__"])('Enable & Reload') : Object(external_this_wp_i18n_["__"])('Disable & Reload')));
3109  }
3110  function EnableCustomFieldsOption(_ref2) {
3111    var label = _ref2.label,
3112        areCustomFieldsEnabled = _ref2.areCustomFieldsEnabled;
3113  
3114    var _useState3 = Object(external_this_wp_element_["useState"])(areCustomFieldsEnabled),
3115        _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
3116        isChecked = _useState4[0],
3117        setIsChecked = _useState4[1];
3118  
3119    return Object(external_this_wp_element_["createElement"])(base, {
3120      label: label,
3121      isChecked: isChecked,
3122      onChange: setIsChecked
3123    }, isChecked !== areCustomFieldsEnabled && Object(external_this_wp_element_["createElement"])(CustomFieldsConfirmation, {
3124      willEnable: isChecked
3125    }));
3126  }
3127  /* harmony default export */ var enable_custom_fields = (Object(external_this_wp_data_["withSelect"])(function (select) {
3128    return {
3129      areCustomFieldsEnabled: !!select('core/editor').getEditorSettings().enableCustomFields
3130    };
3131  })(EnableCustomFieldsOption));
3132  
3133  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-panel.js
3134  /**
3135   * WordPress dependencies
3136   */
3137  
3138  
3139  /**
3140   * Internal dependencies
3141   */
3142  
3143  
3144  /* harmony default export */ var enable_panel = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref) {
3145    var panelName = _ref.panelName;
3146  
3147    var _select = select('core/edit-post'),
3148        isEditorPanelEnabled = _select.isEditorPanelEnabled,
3149        isEditorPanelRemoved = _select.isEditorPanelRemoved;
3150  
3151    return {
3152      isRemoved: isEditorPanelRemoved(panelName),
3153      isChecked: isEditorPanelEnabled(panelName)
3154    };
3155  }), Object(external_this_wp_compose_["ifCondition"])(function (_ref2) {
3156    var isRemoved = _ref2.isRemoved;
3157    return !isRemoved;
3158  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) {
3159    var panelName = _ref3.panelName;
3160    return {
3161      onChange: function onChange() {
3162        return dispatch('core/edit-post').toggleEditorPanelEnabled(panelName);
3163      }
3164    };
3165  }))(base));
3166  
3167  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-plugin-document-setting-panel.js
3168  
3169  
3170  /**
3171   * WordPress dependencies
3172   */
3173  
3174  /**
3175   * Internal dependencies
3176   */
3177  
3178  
3179  
3180  var enable_plugin_document_setting_panel_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('EnablePluginDocumentSettingPanelOption'),
3181      Fill = enable_plugin_document_setting_panel_createSlotFill.Fill,
3182      enable_plugin_document_setting_panel_Slot = enable_plugin_document_setting_panel_createSlotFill.Slot;
3183  
3184  var enable_plugin_document_setting_panel_EnablePluginDocumentSettingPanelOption = function EnablePluginDocumentSettingPanelOption(_ref) {
3185    var label = _ref.label,
3186        panelName = _ref.panelName;
3187    return Object(external_this_wp_element_["createElement"])(Fill, null, Object(external_this_wp_element_["createElement"])(enable_panel, {
3188      label: label,
3189      panelName: panelName
3190    }));
3191  };
3192  
3193  enable_plugin_document_setting_panel_EnablePluginDocumentSettingPanelOption.Slot = enable_plugin_document_setting_panel_Slot;
3194  /* harmony default export */ var enable_plugin_document_setting_panel = (enable_plugin_document_setting_panel_EnablePluginDocumentSettingPanelOption);
3195  
3196  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-publish-sidebar.js
3197  /**
3198   * WordPress dependencies
3199   */
3200  
3201  
3202  
3203  /**
3204   * Internal dependencies
3205   */
3206  
3207  
3208  /* harmony default export */ var enable_publish_sidebar = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
3209    return {
3210      isChecked: select('core/editor').isPublishSidebarEnabled()
3211    };
3212  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
3213    var _dispatch = dispatch('core/editor'),
3214        enablePublishSidebar = _dispatch.enablePublishSidebar,
3215        disablePublishSidebar = _dispatch.disablePublishSidebar;
3216  
3217    return {
3218      onChange: function onChange(isEnabled) {
3219        return isEnabled ? enablePublishSidebar() : disablePublishSidebar();
3220      }
3221    };
3222  }), // In < medium viewports we override this option and always show the publish sidebar.
3223  // See the edit-post's header component for the specific logic.
3224  Object(external_this_wp_viewport_["ifViewportMatches"])('medium'))(base));
3225  
3226  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-feature.js
3227  /**
3228   * WordPress dependencies
3229   */
3230  
3231  
3232  /**
3233   * Internal dependencies
3234   */
3235  
3236  
3237  /* harmony default export */ var enable_feature = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref) {
3238    var feature = _ref.feature;
3239    return {
3240      isChecked: select('core/edit-post').isFeatureActive(feature)
3241    };
3242  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) {
3243    var feature = _ref2.feature;
3244  
3245    var _dispatch = dispatch('core/edit-post'),
3246        toggleFeature = _dispatch.toggleFeature;
3247  
3248    return {
3249      onChange: function onChange() {
3250        toggleFeature(feature);
3251      }
3252    };
3253  }))(base));
3254  
3255  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/index.js
3256  
3257  
3258  
3259  
3260  
3261  
3262  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/meta-boxes-section.js
3263  
3264  
3265  
3266  /**
3267   * External dependencies
3268   */
3269  
3270  /**
3271   * WordPress dependencies
3272   */
3273  
3274  
3275  
3276  /**
3277   * Internal dependencies
3278   */
3279  
3280  
3281  
3282  function MetaBoxesSection(_ref) {
3283    var areCustomFieldsRegistered = _ref.areCustomFieldsRegistered,
3284        metaBoxes = _ref.metaBoxes,
3285        sectionProps = Object(objectWithoutProperties["a" /* default */])(_ref, ["areCustomFieldsRegistered", "metaBoxes"]);
3286  
3287    // The 'Custom Fields' meta box is a special case that we handle separately.
3288    var thirdPartyMetaBoxes = Object(external_this_lodash_["filter"])(metaBoxes, function (_ref2) {
3289      var id = _ref2.id;
3290      return id !== 'postcustom';
3291    });
3292  
3293    if (!areCustomFieldsRegistered && thirdPartyMetaBoxes.length === 0) {
3294      return null;
3295    }
3296  
3297    return Object(external_this_wp_element_["createElement"])(section, sectionProps, areCustomFieldsRegistered && Object(external_this_wp_element_["createElement"])(enable_custom_fields, {
3298      label: Object(external_this_wp_i18n_["__"])('Custom Fields')
3299    }), Object(external_this_lodash_["map"])(thirdPartyMetaBoxes, function (_ref3) {
3300      var id = _ref3.id,
3301          title = _ref3.title;
3302      return Object(external_this_wp_element_["createElement"])(enable_panel, {
3303        key: id,
3304        label: title,
3305        panelName: "meta-box-".concat(id)
3306      });
3307    }));
3308  }
3309  /* harmony default export */ var meta_boxes_section = (Object(external_this_wp_data_["withSelect"])(function (select) {
3310    var _select = select('core/editor'),
3311        getEditorSettings = _select.getEditorSettings;
3312  
3313    var _select2 = select('core/edit-post'),
3314        getAllMetaBoxes = _select2.getAllMetaBoxes;
3315  
3316    return {
3317      // This setting should not live in the block editor's store.
3318      areCustomFieldsRegistered: getEditorSettings().enableCustomFields !== undefined,
3319      metaBoxes: getAllMetaBoxes()
3320    };
3321  })(MetaBoxesSection));
3322  
3323  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/index.js
3324  
3325  
3326  /**
3327   * External dependencies
3328   */
3329  
3330  /**
3331   * WordPress dependencies
3332   */
3333  
3334  
3335  
3336  
3337  
3338  
3339  /**
3340   * Internal dependencies
3341   */
3342  
3343  
3344  
3345  
3346  var options_modal_MODAL_NAME = 'edit-post/options';
3347  function OptionsModal(_ref) {
3348    var isModalActive = _ref.isModalActive,
3349        isViewable = _ref.isViewable,
3350        closeModal = _ref.closeModal;
3351  
3352    if (!isModalActive) {
3353      return null;
3354    }
3355  
3356    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Modal"], {
3357      className: "edit-post-options-modal",
3358      title: Object(external_this_wp_i18n_["__"])('Options'),
3359      closeLabel: Object(external_this_wp_i18n_["__"])('Close'),
3360      onRequestClose: closeModal
3361    }, Object(external_this_wp_element_["createElement"])(section, {
3362      title: Object(external_this_wp_i18n_["__"])('General')
3363    }, Object(external_this_wp_element_["createElement"])(enable_publish_sidebar, {
3364      label: Object(external_this_wp_i18n_["__"])('Pre-publish Checks')
3365    }), Object(external_this_wp_element_["createElement"])(enable_feature, {
3366      feature: "showInserterHelpPanel",
3367      label: Object(external_this_wp_i18n_["__"])('Inserter Help Panel')
3368    })), Object(external_this_wp_element_["createElement"])(section, {
3369      title: Object(external_this_wp_i18n_["__"])('Document Panels')
3370    }, Object(external_this_wp_element_["createElement"])(enable_plugin_document_setting_panel.Slot, null), isViewable && Object(external_this_wp_element_["createElement"])(enable_panel, {
3371      label: Object(external_this_wp_i18n_["__"])('Permalink'),
3372      panelName: "post-link"
3373    }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostTaxonomies"], {
3374      taxonomyWrapper: function taxonomyWrapper(content, taxonomy) {
3375        return Object(external_this_wp_element_["createElement"])(enable_panel, {
3376          label: Object(external_this_lodash_["get"])(taxonomy, ['labels', 'menu_name']),
3377          panelName: "taxonomy-panel-".concat(taxonomy.slug)
3378        });
3379      }
3380    }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostFeaturedImageCheck"], null, Object(external_this_wp_element_["createElement"])(enable_panel, {
3381      label: Object(external_this_wp_i18n_["__"])('Featured Image'),
3382      panelName: "featured-image"
3383    })), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostExcerptCheck"], null, Object(external_this_wp_element_["createElement"])(enable_panel, {
3384      label: Object(external_this_wp_i18n_["__"])('Excerpt'),
3385      panelName: "post-excerpt"
3386    })), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostTypeSupportCheck"], {
3387      supportKeys: ['comments', 'trackbacks']
3388    }, Object(external_this_wp_element_["createElement"])(enable_panel, {
3389      label: Object(external_this_wp_i18n_["__"])('Discussion'),
3390      panelName: "discussion-panel"
3391    })), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PageAttributesCheck"], null, Object(external_this_wp_element_["createElement"])(enable_panel, {
3392      label: Object(external_this_wp_i18n_["__"])('Page Attributes'),
3393      panelName: "page-attributes"
3394    }))), Object(external_this_wp_element_["createElement"])(meta_boxes_section, {
3395      title: Object(external_this_wp_i18n_["__"])('Advanced Panels')
3396    }));
3397  }
3398  /* harmony default export */ var options_modal = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
3399    var _select = select('core/editor'),
3400        getEditedPostAttribute = _select.getEditedPostAttribute;
3401  
3402    var _select2 = select('core'),
3403        getPostType = _select2.getPostType;
3404  
3405    var postType = getPostType(getEditedPostAttribute('type'));
3406    return {
3407      isModalActive: select('core/edit-post').isModalActive(options_modal_MODAL_NAME),
3408      isViewable: Object(external_this_lodash_["get"])(postType, ['viewable'], false)
3409    };
3410  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
3411    return {
3412      closeModal: function closeModal() {
3413        return dispatch('core/edit-post').closeModal();
3414      }
3415    };
3416  }))(OptionsModal));
3417  
3418  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/editor-regions/index.js
3419  
3420  
3421  /**
3422   * External dependencies
3423   */
3424  
3425  /**
3426   * WordPress dependencies
3427   */
3428  
3429  
3430  
3431  
3432  function EditorRegions(_ref) {
3433    var footer = _ref.footer,
3434        header = _ref.header,
3435        sidebar = _ref.sidebar,
3436        content = _ref.content,
3437        publish = _ref.publish,
3438        className = _ref.className;
3439    return Object(external_this_wp_element_["createElement"])("div", {
3440      className: classnames_default()(className, 'edit-post-editor-regions')
3441    }, !!header && Object(external_this_wp_element_["createElement"])("div", {
3442      className: "edit-post-editor-regions__header",
3443      role: "region"
3444      /* translators: accessibility text for the top bar landmark region. */
3445      ,
3446      "aria-label": Object(external_this_wp_i18n_["__"])('Editor top bar'),
3447      tabIndex: "-1"
3448    }, header), Object(external_this_wp_element_["createElement"])("div", {
3449      className: "edit-post-editor-regions__body"
3450    }, Object(external_this_wp_element_["createElement"])("div", {
3451      className: "edit-post-editor-regions__content",
3452      role: "region"
3453      /* translators: accessibility text for the content landmark region. */
3454      ,
3455      "aria-label": Object(external_this_wp_i18n_["__"])('Editor content'),
3456      tabIndex: "-1"
3457    }, content), !!publish && Object(external_this_wp_element_["createElement"])("div", {
3458      className: "edit-post-editor-regions__publish",
3459      role: "region"
3460      /* translators: accessibility text for the publish landmark region. */
3461      ,
3462      "aria-label": Object(external_this_wp_i18n_["__"])('Editor publish'),
3463      tabIndex: "-1"
3464    }, publish), !!sidebar && Object(external_this_wp_element_["createElement"])("div", {
3465      className: "edit-post-editor-regions__sidebar",
3466      role: "region",
3467      "aria-label": 'Editor settings',
3468      tabIndex: "-1"
3469    }, sidebar)), !!footer && Object(external_this_wp_element_["createElement"])("div", {
3470      className: "edit-post-editor-regions__footer",
3471      role: "region",
3472      "aria-label": 'Editor footer',
3473      tabIndex: "-1"
3474    }, footer));
3475  }
3476  
3477  /* harmony default export */ var editor_regions = (Object(external_this_wp_components_["navigateRegions"])(EditorRegions));
3478  
3479  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/fullscreen-mode/index.js
3480  
3481  
3482  
3483  
3484  
3485  
3486  /**
3487   * WordPress dependencies
3488   */
3489  
3490  
3491  var fullscreen_mode_FullscreenMode =
3492  /*#__PURE__*/
3493  function (_Component) {
3494    Object(inherits["a" /* default */])(FullscreenMode, _Component);
3495  
3496    function FullscreenMode() {
3497      Object(classCallCheck["a" /* default */])(this, FullscreenMode);
3498  
3499      return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(FullscreenMode).apply(this, arguments));
3500    }
3501  
3502    Object(createClass["a" /* default */])(FullscreenMode, [{
3503      key: "componentDidMount",
3504      value: function componentDidMount() {
3505        this.isSticky = false;
3506        this.sync(); // `is-fullscreen-mode` is set in PHP as a body class by Gutenberg, and this causes
3507        // `sticky-menu` to be applied by WordPress and prevents the admin menu being scrolled
3508        // even if `is-fullscreen-mode` is then removed. Let's remove `sticky-menu` here as
3509        // a consequence of the FullscreenMode setup
3510  
3511        if (document.body.classList.contains('sticky-menu')) {
3512          this.isSticky = true;
3513          document.body.classList.remove('sticky-menu');
3514        }
3515      }
3516    }, {
3517      key: "componentWillUnmount",
3518      value: function componentWillUnmount() {
3519        if (this.isSticky) {
3520          document.body.classList.add('sticky-menu');
3521        }
3522      }
3523    }, {
3524      key: "componentDidUpdate",
3525      value: function componentDidUpdate(prevProps) {
3526        if (this.props.isActive !== prevProps.isActive) {
3527          this.sync();
3528        }
3529      }
3530    }, {
3531      key: "sync",
3532      value: function sync() {
3533        var isActive = this.props.isActive;
3534  
3535        if (isActive) {
3536          document.body.classList.add('is-fullscreen-mode');
3537        } else {
3538          document.body.classList.remove('is-fullscreen-mode');
3539        }
3540      }
3541    }, {
3542      key: "render",
3543      value: function render() {
3544        return null;
3545      }
3546    }]);
3547  
3548    return FullscreenMode;
3549  }(external_this_wp_element_["Component"]);
3550  /* harmony default export */ var fullscreen_mode = (Object(external_this_wp_data_["withSelect"])(function (select) {
3551    return {
3552      isActive: select('core/edit-post').isFeatureActive('fullscreenMode')
3553    };
3554  })(fullscreen_mode_FullscreenMode));
3555  
3556  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/browser-url/index.js
3557  
3558  
3559  
3560  
3561  
3562  
3563  /**
3564   * WordPress dependencies
3565   */
3566  
3567  
3568  
3569  /**
3570   * Returns the Post's Edit URL.
3571   *
3572   * @param {number} postId Post ID.
3573   *
3574   * @return {string} Post edit URL.
3575   */
3576  
3577  function getPostEditURL(postId) {
3578    return Object(external_this_wp_url_["addQueryArgs"])('post.php', {
3579      post: postId,
3580      action: 'edit'
3581    });
3582  }
3583  /**
3584   * Returns the Post's Trashed URL.
3585   *
3586   * @param {number} postId    Post ID.
3587   * @param {string} postType Post Type.
3588   *
3589   * @return {string} Post trashed URL.
3590   */
3591  
3592  function getPostTrashedURL(postId, postType) {
3593    return Object(external_this_wp_url_["addQueryArgs"])('edit.php', {
3594      trashed: 1,
3595      post_type: postType,
3596      ids: postId
3597    });
3598  }
3599  var browser_url_BrowserURL =
3600  /*#__PURE__*/
3601  function (_Component) {
3602    Object(inherits["a" /* default */])(BrowserURL, _Component);
3603  
3604    function BrowserURL() {
3605      var _this;
3606  
3607      Object(classCallCheck["a" /* default */])(this, BrowserURL);
3608  
3609      _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BrowserURL).apply(this, arguments));
3610      _this.state = {
3611        historyId: null
3612      };
3613      return _this;
3614    }
3615  
3616    Object(createClass["a" /* default */])(BrowserURL, [{
3617      key: "componentDidUpdate",
3618      value: function componentDidUpdate(prevProps) {
3619        var _this$props = this.props,
3620            postId = _this$props.postId,
3621            postStatus = _this$props.postStatus,
3622            postType = _this$props.postType,
3623            isSavingPost = _this$props.isSavingPost;
3624        var historyId = this.state.historyId; // Posts are still dirty while saving so wait for saving to finish
3625        // to avoid the unsaved changes warning when trashing posts.
3626  
3627        if (postStatus === 'trash' && !isSavingPost) {
3628          this.setTrashURL(postId, postType);
3629          return;
3630        }
3631  
3632        if ((postId !== prevProps.postId || postId !== historyId) && postStatus !== 'auto-draft') {
3633          this.setBrowserURL(postId);
3634        }
3635      }
3636      /**
3637       * Navigates the browser to the post trashed URL to show a notice about the trashed post.
3638       *
3639       * @param {number} postId    Post ID.
3640       * @param {string} postType  Post Type.
3641       */
3642  
3643    }, {
3644      key: "setTrashURL",
3645      value: function setTrashURL(postId, postType) {
3646        window.location.href = getPostTrashedURL(postId, postType);
3647      }
3648      /**
3649       * Replaces the browser URL with a post editor link for the given post ID.
3650       *
3651       * Note it is important that, since this function may be called when the
3652       * editor first loads, the result generated `getPostEditURL` matches that
3653       * produced by the server. Otherwise, the URL will change unexpectedly.
3654       *
3655       * @param {number} postId Post ID for which to generate post editor URL.
3656       */
3657  
3658    }, {
3659      key: "setBrowserURL",
3660      value: function setBrowserURL(postId) {
3661        window.history.replaceState({
3662          id: postId
3663        }, 'Post ' + postId, getPostEditURL(postId));
3664        this.setState(function () {
3665          return {
3666            historyId: postId
3667          };
3668        });
3669      }
3670    }, {
3671      key: "render",
3672      value: function render() {
3673        return null;
3674      }
3675    }]);
3676  
3677    return BrowserURL;
3678  }(external_this_wp_element_["Component"]);
3679  /* harmony default export */ var browser_url = (Object(external_this_wp_data_["withSelect"])(function (select) {
3680    var _select = select('core/editor'),
3681        getCurrentPost = _select.getCurrentPost,
3682        isSavingPost = _select.isSavingPost;
3683  
3684    var _getCurrentPost = getCurrentPost(),
3685        id = _getCurrentPost.id,
3686        status = _getCurrentPost.status,
3687        type = _getCurrentPost.type;
3688  
3689    return {
3690      postId: id,
3691      postStatus: status,
3692      postType: type,
3693      isSavingPost: isSavingPost()
3694    };
3695  })(browser_url_BrowserURL));
3696  
3697  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/fullscreen-mode-close/index.js
3698  
3699  
3700  /**
3701   * External dependencies
3702   */
3703  
3704  /**
3705   * WordPress dependencies
3706   */
3707  
3708  
3709  
3710  
3711  
3712  
3713  function FullscreenModeClose(_ref) {
3714    var isActive = _ref.isActive,
3715        postType = _ref.postType;
3716  
3717    if (!isActive || !postType) {
3718      return null;
3719    }
3720  
3721    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], {
3722      className: "edit-post-fullscreen-mode-close__toolbar"
3723    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
3724      icon: "arrow-left-alt2",
3725      href: Object(external_this_wp_url_["addQueryArgs"])('edit.php', {
3726        post_type: postType.slug
3727      }),
3728      label: Object(external_this_lodash_["get"])(postType, ['labels', 'view_items'], Object(external_this_wp_i18n_["__"])('Back'))
3729    }));
3730  }
3731  
3732  /* harmony default export */ var fullscreen_mode_close = (Object(external_this_wp_data_["withSelect"])(function (select) {
3733    var _select = select('core/editor'),
3734        getCurrentPostType = _select.getCurrentPostType;
3735  
3736    var _select2 = select('core/edit-post'),
3737        isFeatureActive = _select2.isFeatureActive;
3738  
3739    var _select3 = select('core'),
3740        getPostType = _select3.getPostType;
3741  
3742    return {
3743      isActive: isFeatureActive('fullscreenMode'),
3744      postType: getPostType(getCurrentPostType())
3745    };
3746  })(FullscreenModeClose));
3747  
3748  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/header-toolbar/index.js
3749  
3750  
3751  /**
3752   * WordPress dependencies
3753   */
3754  
3755  
3756  
3757  
3758  
3759  
3760  function HeaderToolbar() {
3761    var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) {
3762      return {
3763        hasFixedToolbar: select('core/edit-post').isFeatureActive('fixedToolbar'),
3764        // This setting (richEditingEnabled) should not live in the block editor's setting.
3765        showInserter: select('core/edit-post').getEditorMode() === 'visual' && select('core/editor').getEditorSettings().richEditingEnabled,
3766        isTextModeEnabled: select('core/edit-post').getEditorMode() === 'text'
3767      };
3768    }),
3769        hasFixedToolbar = _useSelect.hasFixedToolbar,
3770        showInserter = _useSelect.showInserter,
3771        isTextModeEnabled = _useSelect.isTextModeEnabled;
3772  
3773    var isLargeViewport = Object(external_this_wp_compose_["useViewportMatch"])('medium');
3774    var toolbarAriaLabel = hasFixedToolbar ?
3775    /* translators: accessibility text for the editor toolbar when Top Toolbar is on */
3776    Object(external_this_wp_i18n_["__"])('Document and block tools') :
3777    /* translators: accessibility text for the editor toolbar when Top Toolbar is off */
3778    Object(external_this_wp_i18n_["__"])('Document tools');
3779    return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["NavigableToolbar"], {
3780      className: "edit-post-header-toolbar",
3781      "aria-label": toolbarAriaLabel
3782    }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["Inserter"], {
3783      disabled: !showInserter,
3784      position: "bottom right",
3785      showInserterHelpPanel: true
3786    }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["EditorHistoryUndo"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["EditorHistoryRedo"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["TableOfContents"], {
3787      hasOutlineItemsDisabled: isTextModeEnabled
3788    }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockNavigationDropdown"], {
3789      isDisabled: isTextModeEnabled
3790    }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ToolSelector"], null), (hasFixedToolbar || !isLargeViewport) && Object(external_this_wp_element_["createElement"])("div", {
3791      className: "edit-post-header-toolbar__block-toolbar"
3792    }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockToolbar"], null)));
3793  }
3794  
3795  /* harmony default export */ var header_toolbar = (HeaderToolbar);
3796  
3797  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/mode-switcher/index.js
3798  
3799  
3800  
3801  /**
3802   * WordPress dependencies
3803   */
3804  
3805  
3806  
3807  
3808  /**
3809   * Internal dependencies
3810   */
3811  
3812  
3813  /**
3814   * Set of available mode options.
3815   *
3816   * @type {Array}
3817   */
3818  
3819  var MODES = [{
3820    value: 'visual',
3821    label: Object(external_this_wp_i18n_["__"])('Visual Editor')
3822  }, {
3823    value: 'text',
3824    label: Object(external_this_wp_i18n_["__"])('Code Editor')
3825  }];
3826  
3827  function ModeSwitcher(_ref) {
3828    var onSwitch = _ref.onSwitch,
3829        mode = _ref.mode;
3830    var choices = MODES.map(function (choice) {
3831      if (choice.value !== mode) {
3832        return Object(objectSpread["a" /* default */])({}, choice, {
3833          shortcut: keyboard_shortcuts.toggleEditorMode.display
3834        });
3835      }
3836  
3837      return choice;
3838    });
3839    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], {
3840      label: Object(external_this_wp_i18n_["__"])('Editor')
3841    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItemsChoice"], {
3842      choices: choices,
3843      value: mode,
3844      onSelect: onSwitch
3845    }));
3846  }
3847  
3848  /* harmony default export */ var mode_switcher = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) {
3849    return {
3850      isRichEditingEnabled: select('core/editor').getEditorSettings().richEditingEnabled,
3851      isCodeEditingEnabled: select('core/editor').getEditorSettings().codeEditingEnabled,
3852      mode: select('core/edit-post').getEditorMode()
3853    };
3854  }), Object(external_this_wp_compose_["ifCondition"])(function (_ref2) {
3855    var isRichEditingEnabled = _ref2.isRichEditingEnabled,
3856        isCodeEditingEnabled = _ref2.isCodeEditingEnabled;
3857    return isRichEditingEnabled && isCodeEditingEnabled;
3858  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
3859    return {
3860      onSwitch: function onSwitch(mode) {
3861        dispatch('core/edit-post').switchEditorMode(mode);
3862      }
3863    };
3864  })])(ModeSwitcher));
3865  
3866  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/plugins-more-menu-group/index.js
3867  
3868  
3869  /**
3870   * External dependencies
3871   */
3872  
3873  /**
3874   * WordPress dependencies
3875   */
3876  
3877  
3878  
3879  
3880  var plugins_more_menu_group_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('PluginsMoreMenuGroup'),
3881      PluginsMoreMenuGroup = plugins_more_menu_group_createSlotFill.Fill,
3882      plugins_more_menu_group_Slot = plugins_more_menu_group_createSlotFill.Slot;
3883  
3884  PluginsMoreMenuGroup.Slot = function (_ref) {
3885    var fillProps = _ref.fillProps;
3886    return Object(external_this_wp_element_["createElement"])(plugins_more_menu_group_Slot, {
3887      fillProps: fillProps
3888    }, function (fills) {
3889      return !Object(external_this_lodash_["isEmpty"])(fills) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], {
3890        label: Object(external_this_wp_i18n_["__"])('Plugins')
3891      }, fills);
3892    });
3893  };
3894  
3895  /* harmony default export */ var plugins_more_menu_group = (PluginsMoreMenuGroup);
3896  
3897  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/options-menu-item/index.js
3898  
3899  
3900  /**
3901   * WordPress dependencies
3902   */
3903  
3904  
3905  
3906  function OptionsMenuItem(_ref) {
3907    var openModal = _ref.openModal;
3908    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], {
3909      onClick: function onClick() {
3910        openModal('edit-post/options');
3911      }
3912    }, Object(external_this_wp_i18n_["__"])('Options'));
3913  }
3914  /* harmony default export */ var options_menu_item = (Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
3915    var _dispatch = dispatch('core/edit-post'),
3916        openModal = _dispatch.openModal;
3917  
3918    return {
3919      openModal: openModal
3920    };
3921  })(OptionsMenuItem));
3922  
3923  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/feature-toggle/index.js
3924  
3925  
3926  /**
3927   * External dependencies
3928   */
3929  
3930  /**
3931   * WordPress dependencies
3932   */
3933  
3934  
3935  
3936  
3937  
3938  
3939  function FeatureToggle(_ref) {
3940    var onToggle = _ref.onToggle,
3941        isActive = _ref.isActive,
3942        label = _ref.label,
3943        info = _ref.info,
3944        messageActivated = _ref.messageActivated,
3945        messageDeactivated = _ref.messageDeactivated,
3946        speak = _ref.speak;
3947  
3948    var speakMessage = function speakMessage() {
3949      if (isActive) {
3950        speak(messageDeactivated || Object(external_this_wp_i18n_["__"])('Feature deactivated'));
3951      } else {
3952        speak(messageActivated || Object(external_this_wp_i18n_["__"])('Feature activated'));
3953      }
3954    };
3955  
3956    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], {
3957      icon: isActive && 'yes',
3958      isSelected: isActive,
3959      onClick: Object(external_this_lodash_["flow"])(onToggle, speakMessage),
3960      role: "menuitemcheckbox",
3961      info: info
3962    }, label);
3963  }
3964  
3965  /* harmony default export */ var feature_toggle = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref2) {
3966    var feature = _ref2.feature;
3967    return {
3968      isActive: select('core/edit-post').isFeatureActive(feature)
3969    };
3970  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) {
3971    return {
3972      onToggle: function onToggle() {
3973        dispatch('core/edit-post').toggleFeature(ownProps.feature);
3974      }
3975    };
3976  }), external_this_wp_components_["withSpokenMessages"]])(FeatureToggle));
3977  
3978  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/writing-menu/index.js
3979  
3980  
3981  /**
3982   * WordPress dependencies
3983   */
3984  
3985  
3986  
3987  /**
3988   * Internal dependencies
3989   */
3990  
3991  
3992  
3993  function WritingMenu() {
3994    var isLargeViewport = Object(external_this_wp_compose_["useViewportMatch"])('medium');
3995  
3996    if (!isLargeViewport) {
3997      return null;
3998    }
3999  
4000    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], {
4001      label: Object(external_this_wp_i18n_["_x"])('View', 'noun')
4002    }, Object(external_this_wp_element_["createElement"])(feature_toggle, {
4003      feature: "fixedToolbar",
4004      label: Object(external_this_wp_i18n_["__"])('Top Toolbar'),
4005      info: Object(external_this_wp_i18n_["__"])('Access all block and document tools in a single place'),
4006      messageActivated: Object(external_this_wp_i18n_["__"])('Top toolbar activated'),
4007      messageDeactivated: Object(external_this_wp_i18n_["__"])('Top toolbar deactivated')
4008    }), Object(external_this_wp_element_["createElement"])(feature_toggle, {
4009      feature: "focusMode",
4010      label: Object(external_this_wp_i18n_["__"])('Spotlight Mode'),
4011      info: Object(external_this_wp_i18n_["__"])('Focus on one block at a time'),
4012      messageActivated: Object(external_this_wp_i18n_["__"])('Spotlight mode activated'),
4013      messageDeactivated: Object(external_this_wp_i18n_["__"])('Spotlight mode deactivated')
4014    }), Object(external_this_wp_element_["createElement"])(feature_toggle, {
4015      feature: "fullscreenMode",
4016      label: Object(external_this_wp_i18n_["__"])('Fullscreen Mode'),
4017      info: Object(external_this_wp_i18n_["__"])('Work without distraction'),
4018      messageActivated: Object(external_this_wp_i18n_["__"])('Fullscreen mode activated'),
4019      messageDeactivated: Object(external_this_wp_i18n_["__"])('Fullscreen mode deactivated')
4020    }));
4021  }
4022  
4023  /* harmony default export */ var writing_menu = (WritingMenu);
4024  
4025  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/more-menu/index.js
4026  
4027  
4028  /**
4029   * WordPress dependencies
4030   */
4031  
4032  
4033  /**
4034   * Internal dependencies
4035   */
4036  
4037  
4038  
4039  
4040  
4041  
4042  var POPOVER_PROPS = {
4043    className: 'edit-post-more-menu__content',
4044    position: 'bottom left'
4045  };
4046  var TOGGLE_PROPS = {
4047    labelPosition: 'bottom'
4048  };
4049  
4050  var more_menu_MoreMenu = function MoreMenu() {
4051    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], {
4052      className: "edit-post-more-menu",
4053      icon: "ellipsis",
4054      label: Object(external_this_wp_i18n_["__"])('More tools & options'),
4055      popoverProps: POPOVER_PROPS,
4056      toggleProps: TOGGLE_PROPS
4057    }, function (_ref) {
4058      var onClose = _ref.onClose;
4059      return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(writing_menu, null), Object(external_this_wp_element_["createElement"])(mode_switcher, null), Object(external_this_wp_element_["createElement"])(plugins_more_menu_group.Slot, {
4060        fillProps: {
4061          onClose: onClose
4062        }
4063      }), Object(external_this_wp_element_["createElement"])(tools_more_menu_group.Slot, {
4064        fillProps: {
4065          onClose: onClose
4066        }
4067      }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, Object(external_this_wp_element_["createElement"])(options_menu_item, null)));
4068    });
4069  };
4070  
4071  /* harmony default export */ var more_menu = (more_menu_MoreMenu);
4072  
4073  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/pinned-plugins/index.js
4074  
4075  
4076  /**
4077   * External dependencies
4078   */
4079  
4080  /**
4081   * WordPress dependencies
4082   */
4083  
4084  
4085  
4086  var pinned_plugins_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('PinnedPlugins'),
4087      PinnedPlugins = pinned_plugins_createSlotFill.Fill,
4088      pinned_plugins_Slot = pinned_plugins_createSlotFill.Slot;
4089  
4090  PinnedPlugins.Slot = function (props) {
4091    return Object(external_this_wp_element_["createElement"])(pinned_plugins_Slot, props, function (fills) {
4092      return !Object(external_this_lodash_["isEmpty"])(fills) && Object(external_this_wp_element_["createElement"])("div", {
4093        className: "edit-post-pinned-plugins"
4094      }, fills);
4095    });
4096  };
4097  
4098  /* harmony default export */ var pinned_plugins = (PinnedPlugins);
4099  
4100  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/post-publish-button-or-toggle.js
4101  
4102  
4103  /**
4104   * External dependencies
4105   */
4106  
4107  /**
4108   * WordPress dependencies
4109   */
4110  
4111  
4112  
4113  
4114  function PostPublishButtonOrToggle(_ref) {
4115    var forceIsDirty = _ref.forceIsDirty,
4116        forceIsSaving = _ref.forceIsSaving,
4117        hasPublishAction = _ref.hasPublishAction,
4118        isBeingScheduled = _ref.isBeingScheduled,
4119        isPending = _ref.isPending,
4120        isPublished = _ref.isPublished,
4121        isPublishSidebarEnabled = _ref.isPublishSidebarEnabled,
4122        isPublishSidebarOpened = _ref.isPublishSidebarOpened,
4123        isScheduled = _ref.isScheduled,
4124        togglePublishSidebar = _ref.togglePublishSidebar;
4125    var IS_TOGGLE = 'toggle';
4126    var IS_BUTTON = 'button';
4127    var isSmallerThanMediumViewport = Object(external_this_wp_compose_["useViewportMatch"])('medium', '<');
4128    var component;
4129    /**
4130     * Conditions to show a BUTTON (publish directly) or a TOGGLE (open publish sidebar):
4131     *
4132     * 1) We want to show a BUTTON when the post status is at the _final stage_
4133     * for a particular role (see https://wordpress.org/support/article/post-status/):
4134     *
4135     * - is published
4136     * - is scheduled to be published
4137     * - is pending and can't be published (but only for viewports >= medium).
4138     *      Originally, we considered showing a button for pending posts that couldn't be published
4139     *      (for example, for an author with the contributor role). Some languages can have
4140     *      long translations for "Submit for review", so given the lack of UI real estate available
4141     *      we decided to take into account the viewport in that case.
4142     *       See: https://github.com/WordPress/gutenberg/issues/10475
4143     *
4144     * 2) Then, in small viewports, we'll show a TOGGLE.
4145     *
4146     * 3) Finally, we'll use the publish sidebar status to decide:
4147     *
4148     * - if it is enabled, we show a TOGGLE
4149     * - if it is disabled, we show a BUTTON
4150     */
4151  
4152    if (isPublished || isScheduled && isBeingScheduled || isPending && !hasPublishAction && !isSmallerThanMediumViewport) {
4153      component = IS_BUTTON;
4154    } else if (isSmallerThanMediumViewport) {
4155      component = IS_TOGGLE;
4156    } else if (isPublishSidebarEnabled) {
4157      component = IS_TOGGLE;
4158    } else {
4159      component = IS_BUTTON;
4160    }
4161  
4162    return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostPublishButton"], {
4163      forceIsDirty: forceIsDirty,
4164      forceIsSaving: forceIsSaving,
4165      isOpen: isPublishSidebarOpened,
4166      isToggle: component === IS_TOGGLE,
4167      onToggle: togglePublishSidebar
4168    });
4169  }
4170  /* harmony default export */ var post_publish_button_or_toggle = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
4171    return {
4172      hasPublishAction: Object(external_this_lodash_["get"])(select('core/editor').getCurrentPost(), ['_links', 'wp:action-publish'], false),
4173      isBeingScheduled: select('core/editor').isEditedPostBeingScheduled(),
4174      isPending: select('core/editor').isCurrentPostPending(),
4175      isPublished: select('core/editor').isCurrentPostPublished(),
4176      isPublishSidebarEnabled: select('core/editor').isPublishSidebarEnabled(),
4177      isPublishSidebarOpened: select('core/edit-post').isPublishSidebarOpened(),
4178      isScheduled: select('core/editor').isCurrentPostScheduled()
4179    };
4180  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
4181    var _dispatch = dispatch('core/edit-post'),
4182        togglePublishSidebar = _dispatch.togglePublishSidebar;
4183  
4184    return {
4185      togglePublishSidebar: togglePublishSidebar
4186    };
4187  }))(PostPublishButtonOrToggle));
4188  
4189  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/index.js
4190  
4191  
4192  /**
4193   * WordPress dependencies
4194   */
4195  
4196  
4197  
4198  
4199  
4200  /**
4201   * Internal dependencies
4202   */
4203  
4204  
4205  
4206  
4207  
4208  
4209  
4210  
4211  function Header(_ref) {
4212    var closeGeneralSidebar = _ref.closeGeneralSidebar,
4213        hasActiveMetaboxes = _ref.hasActiveMetaboxes,
4214        isEditorSidebarOpened = _ref.isEditorSidebarOpened,
4215        isPublishSidebarOpened = _ref.isPublishSidebarOpened,
4216        isSaving = _ref.isSaving,
4217        openGeneralSidebar = _ref.openGeneralSidebar;
4218    var toggleGeneralSidebar = isEditorSidebarOpened ? closeGeneralSidebar : openGeneralSidebar;
4219    return Object(external_this_wp_element_["createElement"])("div", {
4220      className: "edit-post-header"
4221    }, Object(external_this_wp_element_["createElement"])("div", {
4222      className: "edit-post-header__toolbar"
4223    }, Object(external_this_wp_element_["createElement"])(fullscreen_mode_close, null), Object(external_this_wp_element_["createElement"])(header_toolbar, null)), Object(external_this_wp_element_["createElement"])("div", {
4224      className: "edit-post-header__settings"
4225    }, !isPublishSidebarOpened && // This button isn't completely hidden by the publish sidebar.
4226    // We can't hide the whole toolbar when the publish sidebar is open because
4227    // we want to prevent mounting/unmounting the PostPublishButtonOrToggle DOM node.
4228    // We track that DOM node to return focus to the PostPublishButtonOrToggle
4229    // when the publish sidebar has been closed.
4230    Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostSavedState"], {
4231      forceIsDirty: hasActiveMetaboxes,
4232      forceIsSaving: isSaving
4233    }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostPreviewButton"], {
4234      forceIsAutosaveable: hasActiveMetaboxes,
4235      forcePreviewLink: isSaving ? null : undefined
4236    }), Object(external_this_wp_element_["createElement"])(post_publish_button_or_toggle, {
4237      forceIsDirty: hasActiveMetaboxes,
4238      forceIsSaving: isSaving
4239    }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
4240      icon: "admin-generic",
4241      label: Object(external_this_wp_i18n_["__"])('Settings'),
4242      onClick: toggleGeneralSidebar,
4243      isToggled: isEditorSidebarOpened,
4244      "aria-expanded": isEditorSidebarOpened,
4245      shortcut: keyboard_shortcuts.toggleSidebar
4246    }), Object(external_this_wp_element_["createElement"])(pinned_plugins.Slot, null), Object(external_this_wp_element_["createElement"])(more_menu, null)));
4247  }
4248  
4249  /* harmony default export */ var components_header = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
4250    return {
4251      hasActiveMetaboxes: select('core/edit-post').hasMetaBoxes(),
4252      isEditorSidebarOpened: select('core/edit-post').isEditorSidebarOpened(),
4253      isPublishSidebarOpened: select('core/edit-post').isPublishSidebarOpened(),
4254      isSaving: select('core/edit-post').isSavingMetaBoxes()
4255    };
4256  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, _ref2) {
4257    var select = _ref2.select;
4258  
4259    var _select = select('core/block-editor'),
4260        getBlockSelectionStart = _select.getBlockSelectionStart;
4261  
4262    var _dispatch = dispatch('core/edit-post'),
4263        _openGeneralSidebar = _dispatch.openGeneralSidebar,
4264        closeGeneralSidebar = _dispatch.closeGeneralSidebar;
4265  
4266    return {
4267      openGeneralSidebar: function openGeneralSidebar() {
4268        return _openGeneralSidebar(getBlockSelectionStart() ? 'edit-post/block' : 'edit-post/document');
4269      },
4270      closeGeneralSidebar: closeGeneralSidebar
4271    };
4272  }))(Header));
4273  
4274  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/index.js
4275  
4276  
4277  /**
4278   * External dependencies
4279   */
4280  
4281  /**
4282   * WordPress dependencies
4283   */
4284  
4285  
4286  
4287  
4288  
4289  var sidebar_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('Sidebar'),
4290      sidebar_Fill = sidebar_createSlotFill.Fill,
4291      sidebar_Slot = sidebar_createSlotFill.Slot;
4292  /**
4293   * Renders a sidebar with its content.
4294   *
4295   * @return {Object} The rendered sidebar.
4296   */
4297  
4298  
4299  function Sidebar(_ref) {
4300    var children = _ref.children,
4301        className = _ref.className;
4302    return Object(external_this_wp_element_["createElement"])("div", {
4303      className: classnames_default()('edit-post-sidebar', className)
4304    }, children);
4305  }
4306  
4307  Sidebar = Object(external_this_wp_components_["withFocusReturn"])({
4308    onFocusReturn: function onFocusReturn() {
4309      var button = document.querySelector('.edit-post-header__settings [aria-label="Settings"]');
4310  
4311      if (button) {
4312        button.focus();
4313        return false;
4314      }
4315    }
4316  })(Sidebar);
4317  
4318  function AnimatedSidebarFill(props) {
4319    return Object(external_this_wp_element_["createElement"])(sidebar_Fill, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Animate"], {
4320      type: "slide-in",
4321      options: {
4322        origin: 'left'
4323      }
4324    }, function () {
4325      return Object(external_this_wp_element_["createElement"])(Sidebar, props);
4326    }));
4327  }
4328  
4329  var WrappedSidebar = Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref2) {
4330    var name = _ref2.name;
4331    return {
4332      isActive: select('core/edit-post').getActiveGeneralSidebarName() === name
4333    };
4334  }), Object(external_this_wp_compose_["ifCondition"])(function (_ref3) {
4335    var isActive = _ref3.isActive;
4336    return isActive;
4337  }))(AnimatedSidebarFill);
4338  WrappedSidebar.Slot = sidebar_Slot;
4339  /* harmony default export */ var components_sidebar = (WrappedSidebar);
4340  
4341  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/sidebar-header/index.js
4342  
4343  
4344  /**
4345   * External dependencies
4346   */
4347  
4348  /**
4349   * WordPress dependencies
4350   */
4351  
4352  
4353  
4354  
4355  
4356  /**
4357   * Internal dependencies
4358   */
4359  
4360  
4361  
4362  var sidebar_header_SidebarHeader = function SidebarHeader(_ref) {
4363    var children = _ref.children,
4364        className = _ref.className,
4365        closeLabel = _ref.closeLabel,
4366        closeSidebar = _ref.closeSidebar,
4367        title = _ref.title;
4368    return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", {
4369      className: "components-panel__header edit-post-sidebar-header__small"
4370    }, Object(external_this_wp_element_["createElement"])("span", {
4371      className: "edit-post-sidebar-header__title"
4372    }, title || Object(external_this_wp_i18n_["__"])('(no title)')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
4373      onClick: closeSidebar,
4374      icon: "no-alt",
4375      label: closeLabel
4376    })), Object(external_this_wp_element_["createElement"])("div", {
4377      className: classnames_default()('components-panel__header edit-post-sidebar-header', className)
4378    }, children, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
4379      onClick: closeSidebar,
4380      icon: "no-alt",
4381      label: closeLabel,
4382      shortcut: keyboard_shortcuts.toggleSidebar
4383    })));
4384  };
4385  
4386  /* harmony default export */ var sidebar_header = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
4387    return {
4388      title: select('core/editor').getEditedPostAttribute('title')
4389    };
4390  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
4391    return {
4392      closeSidebar: dispatch('core/edit-post').closeGeneralSidebar
4393    };
4394  }))(sidebar_header_SidebarHeader));
4395  
4396  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/settings-header/index.js
4397  
4398  
4399  
4400  /**
4401   * WordPress dependencies
4402   */
4403  
4404  
4405  
4406  /**
4407   * Internal dependencies
4408   */
4409  
4410  
4411  
4412  var settings_header_SettingsHeader = function SettingsHeader(_ref) {
4413    var openDocumentSettings = _ref.openDocumentSettings,
4414        openBlockSettings = _ref.openBlockSettings,
4415        sidebarName = _ref.sidebarName;
4416  
4417    var blockLabel = Object(external_this_wp_i18n_["__"])('Block');
4418  
4419    var _ref2 = sidebarName === 'edit-post/document' ? // translators: ARIA label for the Document sidebar tab, selected.
4420    [Object(external_this_wp_i18n_["__"])('Document (selected)'), 'is-active'] : // translators: ARIA label for the Document sidebar tab, not selected.
4421    [Object(external_this_wp_i18n_["__"])('Document'), ''],
4422        _ref3 = Object(slicedToArray["a" /* default */])(_ref2, 2),
4423        documentAriaLabel = _ref3[0],
4424        documentActiveClass = _ref3[1];
4425  
4426    var _ref4 = sidebarName === 'edit-post/block' ? // translators: ARIA label for the Settings Sidebar tab, selected.
4427    [Object(external_this_wp_i18n_["__"])('Block (selected)'), 'is-active'] : // translators: ARIA label for the Settings Sidebar tab, not selected.
4428    [Object(external_this_wp_i18n_["__"])('Block'), ''],
4429        _ref5 = Object(slicedToArray["a" /* default */])(_ref4, 2),
4430        blockAriaLabel = _ref5[0],
4431        blockActiveClass = _ref5[1];
4432  
4433    return Object(external_this_wp_element_["createElement"])(sidebar_header, {
4434      className: "edit-post-sidebar__panel-tabs",
4435      closeLabel: Object(external_this_wp_i18n_["__"])('Close settings')
4436    }, Object(external_this_wp_element_["createElement"])("ul", null, Object(external_this_wp_element_["createElement"])("li", null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
4437      onClick: openDocumentSettings,
4438      className: "edit-post-sidebar__panel-tab ".concat(documentActiveClass),
4439      "aria-label": documentAriaLabel,
4440      "data-label": Object(external_this_wp_i18n_["__"])('Document')
4441    }, Object(external_this_wp_i18n_["__"])('Document'))), Object(external_this_wp_element_["createElement"])("li", null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
4442      onClick: openBlockSettings,
4443      className: "edit-post-sidebar__panel-tab ".concat(blockActiveClass),
4444      "aria-label": blockAriaLabel,
4445      "data-label": blockLabel
4446    }, blockLabel))));
4447  };
4448  
4449  /* harmony default export */ var settings_header = (Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
4450    var _dispatch = dispatch('core/edit-post'),
4451        openGeneralSidebar = _dispatch.openGeneralSidebar;
4452  
4453    return {
4454      openDocumentSettings: function openDocumentSettings() {
4455        openGeneralSidebar('edit-post/document');
4456      },
4457      openBlockSettings: function openBlockSettings() {
4458        openGeneralSidebar('edit-post/block');
4459      }
4460    };
4461  })(settings_header_SettingsHeader));
4462  
4463  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-visibility/index.js
4464  
4465  
4466  /**
4467   * WordPress dependencies
4468   */
4469  
4470  
4471  
4472  function PostVisibility() {
4473    return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostVisibilityCheck"], {
4474      render: function render(_ref) {
4475        var canEdit = _ref.canEdit;
4476        return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelRow"], {
4477          className: "edit-post-post-visibility"
4478        }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Visibility')), !canEdit && Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostVisibilityLabel"], null)), canEdit && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], {
4479          position: "bottom left",
4480          contentClassName: "edit-post-post-visibility__dialog",
4481          renderToggle: function renderToggle(_ref2) {
4482            var isOpen = _ref2.isOpen,
4483                onToggle = _ref2.onToggle;
4484            return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
4485              "aria-expanded": isOpen,
4486              className: "edit-post-post-visibility__toggle",
4487              onClick: onToggle,
4488              isLink: true
4489            }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostVisibilityLabel"], null));
4490          },
4491          renderContent: function renderContent() {
4492            return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostVisibility"], null);
4493          }
4494        }));
4495      }
4496    });
4497  }
4498  /* harmony default export */ var post_visibility = (PostVisibility);
4499  
4500  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-trash/index.js
4501  
4502  
4503  /**
4504   * WordPress dependencies
4505   */
4506  
4507  
4508  function PostTrash() {
4509    return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostTrashCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelRow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostTrash"], null)));
4510  }
4511  
4512  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-schedule/index.js
4513  
4514  
4515  /**
4516   * WordPress dependencies
4517   */
4518  
4519  
4520  
4521  function PostSchedule() {
4522    return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostScheduleCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelRow"], {
4523      className: "edit-post-post-schedule"
4524    }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Publish')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], {
4525      position: "bottom left",
4526      contentClassName: "edit-post-post-schedule__dialog",
4527      renderToggle: function renderToggle(_ref) {
4528        var onToggle = _ref.onToggle,
4529            isOpen = _ref.isOpen;
4530        return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
4531          className: "edit-post-post-schedule__toggle",
4532          onClick: onToggle,
4533          "aria-expanded": isOpen,
4534          isLink: true
4535        }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostScheduleLabel"], null)));
4536      },
4537      renderContent: function renderContent() {
4538        return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostSchedule"], null);
4539      }
4540    })));
4541  }
4542  /* harmony default export */ var post_schedule = (PostSchedule);
4543  
4544  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-sticky/index.js
4545  
4546  
4547  /**
4548   * WordPress dependencies
4549   */
4550  
4551  
4552  function PostSticky() {
4553    return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostStickyCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelRow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostSticky"], null)));
4554  }
4555  /* harmony default export */ var post_sticky = (PostSticky);
4556  
4557  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-author/index.js
4558  
4559  
4560  /**
4561   * WordPress dependencies
4562   */
4563  
4564  
4565  function PostAuthor() {
4566    return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostAuthorCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelRow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostAuthor"], null)));
4567  }
4568  /* harmony default export */ var post_author = (PostAuthor);
4569  
4570  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-slug/index.js
4571  
4572  
4573  /**
4574   * WordPress dependencies
4575   */
4576  
4577  
4578  function PostSlug() {
4579    return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostSlugCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelRow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostSlug"], null)));
4580  }
4581  /* harmony default export */ var post_slug = (PostSlug);
4582  
4583  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-format/index.js
4584  
4585  
4586  /**
4587   * WordPress dependencies
4588   */
4589  
4590  
4591  function PostFormat() {
4592    return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostFormatCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelRow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostFormat"], null)));
4593  }
4594  /* harmony default export */ var post_format = (PostFormat);
4595  
4596  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-pending-status/index.js
4597  
4598  
4599  /**
4600   * WordPress dependencies
4601   */
4602  
4603  
4604  function PostPendingStatus() {
4605    return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostPendingStatusCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelRow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostPendingStatus"], null)));
4606  }
4607  /* harmony default export */ var post_pending_status = (PostPendingStatus);
4608  
4609  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-status-info/index.js
4610  
4611  
4612  /**
4613   * Defines as extensibility slot for the Status & Visibility panel.
4614   */
4615  
4616  /**
4617   * WordPress dependencies
4618   */
4619  
4620  
4621  var plugin_post_status_info_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('PluginPostStatusInfo'),
4622      plugin_post_status_info_Fill = plugin_post_status_info_createSlotFill.Fill,
4623      plugin_post_status_info_Slot = plugin_post_status_info_createSlotFill.Slot;
4624  /**
4625   * Renders a row in the Status & Visibility panel of the Document sidebar.
4626   * It should be noted that this is named and implemented around the function it serves
4627   * and not its location, which may change in future iterations.
4628   *
4629   * @param {Object} props Component properties.
4630   * @param {string} [props.className] An optional class name added to the row.
4631   *
4632   * @example <caption>ES5</caption>
4633   * ```js
4634   * // Using ES5 syntax
4635   * var __ = wp.i18n.__;
4636   * var PluginPostStatusInfo = wp.editPost.PluginPostStatusInfo;
4637   *
4638   * function MyPluginPostStatusInfo() {
4639   *     return wp.element.createElement(
4640   *         PluginPostStatusInfo,
4641   *         {
4642   *             className: 'my-plugin-post-status-info',
4643   *         },
4644   *         __( 'My post status info' )
4645   *     )
4646   * }
4647   * ```
4648   *
4649   * @example <caption>ESNext</caption>
4650   * ```jsx
4651   * // Using ESNext syntax
4652   * const { __ } = wp.i18n;
4653   * const { PluginPostStatusInfo } = wp.editPost;
4654   *
4655   * const MyPluginPostStatusInfo = () => (
4656   *     <PluginPostStatusInfo
4657   *         className="my-plugin-post-status-info"
4658   *     >
4659   *         { __( 'My post status info' ) }
4660   *     </PluginPostStatusInfo>
4661   * );
4662   * ```
4663   *
4664   * @return {WPComponent} The component to be rendered.
4665   */
4666  
4667  
4668  
4669  
4670  var plugin_post_status_info_PluginPostStatusInfo = function PluginPostStatusInfo(_ref) {
4671    var children = _ref.children,
4672        className = _ref.className;
4673    return Object(external_this_wp_element_["createElement"])(plugin_post_status_info_Fill, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelRow"], {
4674      className: className
4675    }, children));
4676  };
4677  
4678  plugin_post_status_info_PluginPostStatusInfo.Slot = plugin_post_status_info_Slot;
4679  /* harmony default export */ var plugin_post_status_info = (plugin_post_status_info_PluginPostStatusInfo);
4680  
4681  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-status/index.js
4682  
4683  
4684  /**
4685   * WordPress dependencies
4686   */
4687  
4688  
4689  
4690  
4691  /**
4692   * Internal dependencies
4693   */
4694  
4695  
4696  
4697  
4698  
4699  
4700  
4701  
4702  
4703  
4704  /**
4705   * Module Constants
4706   */
4707  
4708  var PANEL_NAME = 'post-status';
4709  
4710  function PostStatus(_ref) {
4711    var isOpened = _ref.isOpened,
4712        onTogglePanel = _ref.onTogglePanel;
4713    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
4714      className: "edit-post-post-status",
4715      title: Object(external_this_wp_i18n_["__"])('Status & Visibility'),
4716      opened: isOpened,
4717      onToggle: onTogglePanel
4718    }, Object(external_this_wp_element_["createElement"])(plugin_post_status_info.Slot, null, function (fills) {
4719      return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(post_visibility, null), Object(external_this_wp_element_["createElement"])(post_schedule, null), Object(external_this_wp_element_["createElement"])(post_format, null), Object(external_this_wp_element_["createElement"])(post_sticky, null), Object(external_this_wp_element_["createElement"])(post_pending_status, null), Object(external_this_wp_element_["createElement"])(post_slug, null), Object(external_this_wp_element_["createElement"])(post_author, null), fills, Object(external_this_wp_element_["createElement"])(PostTrash, null));
4720    }));
4721  }
4722  
4723  /* harmony default export */ var post_status = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) {
4724    // We use isEditorPanelRemoved to hide the panel if it was programatically removed. We do
4725    // not use isEditorPanelEnabled since this panel should not be disabled through the UI.
4726    var _select = select('core/edit-post'),
4727        isEditorPanelRemoved = _select.isEditorPanelRemoved,
4728        isEditorPanelOpened = _select.isEditorPanelOpened;
4729  
4730    return {
4731      isRemoved: isEditorPanelRemoved(PANEL_NAME),
4732      isOpened: isEditorPanelOpened(PANEL_NAME)
4733    };
4734  }), Object(external_this_wp_compose_["ifCondition"])(function (_ref2) {
4735    var isRemoved = _ref2.isRemoved;
4736    return !isRemoved;
4737  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
4738    return {
4739      onTogglePanel: function onTogglePanel() {
4740        return dispatch('core/edit-post').toggleEditorPanelOpened(PANEL_NAME);
4741      }
4742    };
4743  })])(PostStatus));
4744  
4745  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/last-revision/index.js
4746  
4747  
4748  /**
4749   * WordPress dependencies
4750   */
4751  
4752  
4753  
4754  function LastRevision() {
4755    return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostLastRevisionCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
4756      className: "edit-post-last-revision__panel"
4757    }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostLastRevision"], null)));
4758  }
4759  
4760  /* harmony default export */ var last_revision = (LastRevision);
4761  
4762  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-taxonomies/taxonomy-panel.js
4763  
4764  
4765  /**
4766   * External dependencies
4767   */
4768  
4769  /**
4770   * WordPress dependencies
4771   */
4772  
4773  
4774  
4775  
4776  
4777  function TaxonomyPanel(_ref) {
4778    var isEnabled = _ref.isEnabled,
4779        taxonomy = _ref.taxonomy,
4780        isOpened = _ref.isOpened,
4781        onTogglePanel = _ref.onTogglePanel,
4782        children = _ref.children;
4783  
4784    if (!isEnabled) {
4785      return null;
4786    }
4787  
4788    var taxonomyMenuName = Object(external_this_lodash_["get"])(taxonomy, ['labels', 'menu_name']);
4789  
4790    if (!taxonomyMenuName) {
4791      return null;
4792    }
4793  
4794    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
4795      title: taxonomyMenuName,
4796      opened: isOpened,
4797      onToggle: onTogglePanel
4798    }, children);
4799  }
4800  
4801  /* harmony default export */ var taxonomy_panel = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, ownProps) {
4802    var slug = Object(external_this_lodash_["get"])(ownProps.taxonomy, ['slug']);
4803    var panelName = slug ? "taxonomy-panel-".concat(slug) : '';
4804    return {
4805      panelName: panelName,
4806      isEnabled: slug ? select('core/edit-post').isEditorPanelEnabled(panelName) : false,
4807      isOpened: slug ? select('core/edit-post').isEditorPanelOpened(panelName) : false
4808    };
4809  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) {
4810    return {
4811      onTogglePanel: function onTogglePanel() {
4812        dispatch('core/edit-post').toggleEditorPanelOpened(ownProps.panelName);
4813      }
4814    };
4815  }))(TaxonomyPanel));
4816  
4817  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-taxonomies/index.js
4818  
4819  
4820  /**
4821   * WordPress dependencies
4822   */
4823  
4824  /**
4825   * Internal dependencies
4826   */
4827  
4828  
4829  
4830  function PostTaxonomies() {
4831    return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostTaxonomiesCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostTaxonomies"], {
4832      taxonomyWrapper: function taxonomyWrapper(content, taxonomy) {
4833        return Object(external_this_wp_element_["createElement"])(taxonomy_panel, {
4834          taxonomy: taxonomy
4835        }, content);
4836      }
4837    }));
4838  }
4839  
4840  /* harmony default export */ var post_taxonomies = (PostTaxonomies);
4841  
4842  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/featured-image/index.js
4843  
4844  
4845  /**
4846   * External dependencies
4847   */
4848  
4849  /**
4850   * WordPress dependencies
4851   */
4852  
4853  
4854  
4855  
4856  
4857  
4858  /**
4859   * Module Constants
4860   */
4861  
4862  var featured_image_PANEL_NAME = 'featured-image';
4863  
4864  function FeaturedImage(_ref) {
4865    var isEnabled = _ref.isEnabled,
4866        isOpened = _ref.isOpened,
4867        postType = _ref.postType,
4868        onTogglePanel = _ref.onTogglePanel;
4869  
4870    if (!isEnabled) {
4871      return null;
4872    }
4873  
4874    return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostFeaturedImageCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
4875      title: Object(external_this_lodash_["get"])(postType, ['labels', 'featured_image'], Object(external_this_wp_i18n_["__"])('Featured Image')),
4876      opened: isOpened,
4877      onToggle: onTogglePanel
4878    }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostFeaturedImage"], null)));
4879  }
4880  
4881  var applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select) {
4882    var _select = select('core/editor'),
4883        getEditedPostAttribute = _select.getEditedPostAttribute;
4884  
4885    var _select2 = select('core'),
4886        getPostType = _select2.getPostType;
4887  
4888    var _select3 = select('core/edit-post'),
4889        isEditorPanelEnabled = _select3.isEditorPanelEnabled,
4890        isEditorPanelOpened = _select3.isEditorPanelOpened;
4891  
4892    return {
4893      postType: getPostType(getEditedPostAttribute('type')),
4894      isEnabled: isEditorPanelEnabled(featured_image_PANEL_NAME),
4895      isOpened: isEditorPanelOpened(featured_image_PANEL_NAME)
4896    };
4897  });
4898  var applyWithDispatch = Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
4899    var _dispatch = dispatch('core/edit-post'),
4900        toggleEditorPanelOpened = _dispatch.toggleEditorPanelOpened;
4901  
4902    return {
4903      onTogglePanel: Object(external_this_lodash_["partial"])(toggleEditorPanelOpened, featured_image_PANEL_NAME)
4904    };
4905  });
4906  /* harmony default export */ var featured_image = (Object(external_this_wp_compose_["compose"])(applyWithSelect, applyWithDispatch)(FeaturedImage));
4907  
4908  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-excerpt/index.js
4909  
4910  
4911  /**
4912   * WordPress dependencies
4913   */
4914  
4915  
4916  
4917  
4918  
4919  /**
4920   * Module Constants
4921   */
4922  
4923  var post_excerpt_PANEL_NAME = 'post-excerpt';
4924  
4925  function PostExcerpt(_ref) {
4926    var isEnabled = _ref.isEnabled,
4927        isOpened = _ref.isOpened,
4928        onTogglePanel = _ref.onTogglePanel;
4929  
4930    if (!isEnabled) {
4931      return null;
4932    }
4933  
4934    return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostExcerptCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
4935      title: Object(external_this_wp_i18n_["__"])('Excerpt'),
4936      opened: isOpened,
4937      onToggle: onTogglePanel
4938    }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostExcerpt"], null)));
4939  }
4940  
4941  /* harmony default export */ var post_excerpt = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) {
4942    return {
4943      isEnabled: select('core/edit-post').isEditorPanelEnabled(post_excerpt_PANEL_NAME),
4944      isOpened: select('core/edit-post').isEditorPanelOpened(post_excerpt_PANEL_NAME)
4945    };
4946  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
4947    return {
4948      onTogglePanel: function onTogglePanel() {
4949        return dispatch('core/edit-post').toggleEditorPanelOpened(post_excerpt_PANEL_NAME);
4950      }
4951    };
4952  })])(PostExcerpt));
4953  
4954  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-link/index.js
4955  
4956  
4957  /**
4958   * External dependencies
4959   */
4960  
4961  /**
4962   * WordPress dependencies
4963   */
4964  
4965  
4966  
4967  
4968  
4969  
4970  
4971  /**
4972   * Module Constants
4973   */
4974  
4975  var post_link_PANEL_NAME = 'post-link';
4976  
4977  function PostLink(_ref) {
4978    var isOpened = _ref.isOpened,
4979        onTogglePanel = _ref.onTogglePanel,
4980        isEditable = _ref.isEditable,
4981        postLink = _ref.postLink,
4982        permalinkParts = _ref.permalinkParts,
4983        editPermalink = _ref.editPermalink,
4984        forceEmptyField = _ref.forceEmptyField,
4985        setState = _ref.setState,
4986        postTitle = _ref.postTitle,
4987        postSlug = _ref.postSlug,
4988        postID = _ref.postID,
4989        postTypeLabel = _ref.postTypeLabel;
4990    var prefix = permalinkParts.prefix,
4991        suffix = permalinkParts.suffix;
4992    var prefixElement, postNameElement, suffixElement;
4993    var currentSlug = Object(external_this_wp_url_["safeDecodeURIComponent"])(postSlug) || Object(external_this_wp_editor_["cleanForSlug"])(postTitle) || postID;
4994  
4995    if (isEditable) {
4996      prefixElement = prefix && Object(external_this_wp_element_["createElement"])("span", {
4997        className: "edit-post-post-link__link-prefix"
4998      }, prefix);
4999      postNameElement = currentSlug && Object(external_this_wp_element_["createElement"])("span", {
5000        className: "edit-post-post-link__link-post-name"
5001      }, currentSlug);
5002      suffixElement = suffix && Object(external_this_wp_element_["createElement"])("span", {
5003        className: "edit-post-post-link__link-suffix"
5004      }, suffix);
5005    }
5006  
5007    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
5008      title: Object(external_this_wp_i18n_["__"])('Permalink'),
5009      opened: isOpened,
5010      onToggle: onTogglePanel
5011    }, isEditable && Object(external_this_wp_element_["createElement"])("div", {
5012      className: "editor-post-link"
5013    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], {
5014      label: Object(external_this_wp_i18n_["__"])('URL Slug'),
5015      value: forceEmptyField ? '' : currentSlug,
5016      onChange: function onChange(newValue) {
5017        editPermalink(newValue); // When we delete the field the permalink gets
5018        // reverted to the original value.
5019        // The forceEmptyField logic allows the user to have
5020        // the field temporarily empty while typing.
5021  
5022        if (!newValue) {
5023          if (!forceEmptyField) {
5024            setState({
5025              forceEmptyField: true
5026            });
5027          }
5028  
5029          return;
5030        }
5031  
5032        if (forceEmptyField) {
5033          setState({
5034            forceEmptyField: false
5035          });
5036        }
5037      },
5038      onBlur: function onBlur(event) {
5039        editPermalink(Object(external_this_wp_editor_["cleanForSlug"])(event.target.value));
5040  
5041        if (forceEmptyField) {
5042          setState({
5043            forceEmptyField: false
5044          });
5045        }
5046      }
5047    }), Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_i18n_["__"])('The last part of the URL.'), ' ', Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], {
5048      href: "https://wordpress.org/support/article/writing-posts/#post-field-descriptions"
5049    }, Object(external_this_wp_i18n_["__"])('Read about permalinks')))), Object(external_this_wp_element_["createElement"])("p", {
5050      className: "edit-post-post-link__preview-label"
5051    }, postTypeLabel || Object(external_this_wp_i18n_["__"])('View Post')), Object(external_this_wp_element_["createElement"])("div", {
5052      className: "edit-post-post-link__preview-link-container"
5053    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], {
5054      className: "edit-post-post-link__link",
5055      href: postLink,
5056      target: "_blank"
5057    }, isEditable ? Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, prefixElement, postNameElement, suffixElement) : postLink)));
5058  }
5059  
5060  /* harmony default export */ var post_link = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) {
5061    var _select = select('core/editor'),
5062        isEditedPostNew = _select.isEditedPostNew,
5063        isPermalinkEditable = _select.isPermalinkEditable,
5064        getCurrentPost = _select.getCurrentPost,
5065        isCurrentPostPublished = _select.isCurrentPostPublished,
5066        getPermalinkParts = _select.getPermalinkParts,
5067        getEditedPostAttribute = _select.getEditedPostAttribute;
5068  
5069    var _select2 = select('core/edit-post'),
5070        isEditorPanelEnabled = _select2.isEditorPanelEnabled,
5071        isEditorPanelOpened = _select2.isEditorPanelOpened;
5072  
5073    var _select3 = select('core'),
5074        getPostType = _select3.getPostType;
5075  
5076    var _getCurrentPost = getCurrentPost(),
5077        link = _getCurrentPost.link,
5078        id = _getCurrentPost.id;
5079  
5080    var postTypeName = getEditedPostAttribute('type');
5081    var postType = getPostType(postTypeName);
5082    return {
5083      isNew: isEditedPostNew(),
5084      postLink: link,
5085      isEditable: isPermalinkEditable(),
5086      isPublished: isCurrentPostPublished(),
5087      isOpened: isEditorPanelOpened(post_link_PANEL_NAME),
5088      permalinkParts: getPermalinkParts(),
5089      isEnabled: isEditorPanelEnabled(post_link_PANEL_NAME),
5090      isViewable: Object(external_this_lodash_["get"])(postType, ['viewable'], false),
5091      postTitle: getEditedPostAttribute('title'),
5092      postSlug: getEditedPostAttribute('slug'),
5093      postID: id,
5094      postTypeLabel: Object(external_this_lodash_["get"])(postType, ['labels', 'view_item'])
5095    };
5096  }), Object(external_this_wp_compose_["ifCondition"])(function (_ref2) {
5097    var isEnabled = _ref2.isEnabled,
5098        isNew = _ref2.isNew,
5099        postLink = _ref2.postLink,
5100        isViewable = _ref2.isViewable,
5101        permalinkParts = _ref2.permalinkParts;
5102    return isEnabled && !isNew && postLink && isViewable && permalinkParts;
5103  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
5104    var _dispatch = dispatch('core/edit-post'),
5105        toggleEditorPanelOpened = _dispatch.toggleEditorPanelOpened;
5106  
5107    var _dispatch2 = dispatch('core/editor'),
5108        editPost = _dispatch2.editPost;
5109  
5110    return {
5111      onTogglePanel: function onTogglePanel() {
5112        return toggleEditorPanelOpened(post_link_PANEL_NAME);
5113      },
5114      editPermalink: function editPermalink(newSlug) {
5115        editPost({
5116          slug: newSlug
5117        });
5118      }
5119    };
5120  }), Object(external_this_wp_compose_["withState"])({
5121    forceEmptyField: false
5122  })])(PostLink));
5123  
5124  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/discussion-panel/index.js
5125  
5126  
5127  /**
5128   * WordPress dependencies
5129   */
5130  
5131  
5132  
5133  
5134  
5135  /**
5136   * Module Constants
5137   */
5138  
5139  var discussion_panel_PANEL_NAME = 'discussion-panel';
5140  
5141  function DiscussionPanel(_ref) {
5142    var isEnabled = _ref.isEnabled,
5143        isOpened = _ref.isOpened,
5144        onTogglePanel = _ref.onTogglePanel;
5145  
5146    if (!isEnabled) {
5147      return null;
5148    }
5149  
5150    return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostTypeSupportCheck"], {
5151      supportKeys: ['comments', 'trackbacks']
5152    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
5153      title: Object(external_this_wp_i18n_["__"])('Discussion'),
5154      opened: isOpened,
5155      onToggle: onTogglePanel
5156    }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostTypeSupportCheck"], {
5157      supportKeys: "comments"
5158    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelRow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostComments"], null))), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostTypeSupportCheck"], {
5159      supportKeys: "trackbacks"
5160    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelRow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostPingbacks"], null)))));
5161  }
5162  
5163  /* harmony default export */ var discussion_panel = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) {
5164    return {
5165      isEnabled: select('core/edit-post').isEditorPanelEnabled(discussion_panel_PANEL_NAME),
5166      isOpened: select('core/edit-post').isEditorPanelOpened(discussion_panel_PANEL_NAME)
5167    };
5168  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
5169    return {
5170      onTogglePanel: function onTogglePanel() {
5171        return dispatch('core/edit-post').toggleEditorPanelOpened(discussion_panel_PANEL_NAME);
5172      }
5173    };
5174  })])(DiscussionPanel));
5175  
5176  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/page-attributes/index.js
5177  
5178  
5179  /**
5180   * External dependencies
5181   */
5182  
5183  /**
5184   * WordPress dependencies
5185   */
5186  
5187  
5188  
5189  
5190  
5191  
5192  /**
5193   * Module Constants
5194   */
5195  
5196  var page_attributes_PANEL_NAME = 'page-attributes';
5197  function PageAttributes(_ref) {
5198    var isEnabled = _ref.isEnabled,
5199        isOpened = _ref.isOpened,
5200        onTogglePanel = _ref.onTogglePanel,
5201        postType = _ref.postType;
5202  
5203    if (!isEnabled || !postType) {
5204      return null;
5205    }
5206  
5207    return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PageAttributesCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
5208      title: Object(external_this_lodash_["get"])(postType, ['labels', 'attributes'], Object(external_this_wp_i18n_["__"])('Page Attributes')),
5209      opened: isOpened,
5210      onToggle: onTogglePanel
5211    }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PageTemplate"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PageAttributesParent"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelRow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PageAttributesOrder"], null))));
5212  }
5213  var page_attributes_applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select) {
5214    var _select = select('core/editor'),
5215        getEditedPostAttribute = _select.getEditedPostAttribute;
5216  
5217    var _select2 = select('core/edit-post'),
5218        isEditorPanelEnabled = _select2.isEditorPanelEnabled,
5219        isEditorPanelOpened = _select2.isEditorPanelOpened;
5220  
5221    var _select3 = select('core'),
5222        getPostType = _select3.getPostType;
5223  
5224    return {
5225      isEnabled: isEditorPanelEnabled(page_attributes_PANEL_NAME),
5226      isOpened: isEditorPanelOpened(page_attributes_PANEL_NAME),
5227      postType: getPostType(getEditedPostAttribute('type'))
5228    };
5229  });
5230  var page_attributes_applyWithDispatch = Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
5231    var _dispatch = dispatch('core/edit-post'),
5232        toggleEditorPanelOpened = _dispatch.toggleEditorPanelOpened;
5233  
5234    return {
5235      onTogglePanel: Object(external_this_lodash_["partial"])(toggleEditorPanelOpened, page_attributes_PANEL_NAME)
5236    };
5237  });
5238  /* harmony default export */ var page_attributes = (Object(external_this_wp_compose_["compose"])(page_attributes_applyWithSelect, page_attributes_applyWithDispatch)(PageAttributes));
5239  
5240  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/meta-boxes/meta-boxes-area/index.js
5241  
5242  
5243  
5244  
5245  
5246  
5247  
5248  
5249  /**
5250   * External dependencies
5251   */
5252  
5253  /**
5254   * WordPress dependencies
5255   */
5256  
5257  
5258  
5259  
5260  
5261  var meta_boxes_area_MetaBoxesArea =
5262  /*#__PURE__*/
5263  function (_Component) {
5264    Object(inherits["a" /* default */])(MetaBoxesArea, _Component);
5265  
5266    /**
5267     * @inheritdoc
5268     */
5269    function MetaBoxesArea() {
5270      var _this;
5271  
5272      Object(classCallCheck["a" /* default */])(this, MetaBoxesArea);
5273  
5274      _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MetaBoxesArea).apply(this, arguments));
5275      _this.bindContainerNode = _this.bindContainerNode.bind(Object(assertThisInitialized["a" /* default */])(_this));
5276      return _this;
5277    }
5278    /**
5279     * @inheritdoc
5280     */
5281  
5282  
5283    Object(createClass["a" /* default */])(MetaBoxesArea, [{
5284      key: "componentDidMount",
5285      value: function componentDidMount() {
5286        this.form = document.querySelector('.metabox-location-' + this.props.location);
5287  
5288        if (this.form) {
5289          this.container.appendChild(this.form);
5290        }
5291      }
5292      /**
5293       * Get the meta box location form from the original location.
5294       */
5295  
5296    }, {
5297      key: "componentWillUnmount",
5298      value: function componentWillUnmount() {
5299        if (this.form) {
5300          document.querySelector('#metaboxes').appendChild(this.form);
5301        }
5302      }
5303      /**
5304       * Binds the metabox area container node.
5305       *
5306       * @param {Element} node DOM Node.
5307       */
5308  
5309    }, {
5310      key: "bindContainerNode",
5311      value: function bindContainerNode(node) {
5312        this.container = node;
5313      }
5314      /**
5315       * @inheritdoc
5316       */
5317  
5318    }, {
5319      key: "render",
5320      value: function render() {
5321        var _this$props = this.props,
5322            location = _this$props.location,
5323            isSaving = _this$props.isSaving;
5324        var classes = classnames_default()('edit-post-meta-boxes-area', "is-".concat(location), {
5325          'is-loading': isSaving
5326        });
5327        return Object(external_this_wp_element_["createElement"])("div", {
5328          className: classes
5329        }, isSaving && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null), Object(external_this_wp_element_["createElement"])("div", {
5330          className: "edit-post-meta-boxes-area__container",
5331          ref: this.bindContainerNode
5332        }), Object(external_this_wp_element_["createElement"])("div", {
5333          className: "edit-post-meta-boxes-area__clear"
5334        }));
5335      }
5336    }]);
5337  
5338    return MetaBoxesArea;
5339  }(external_this_wp_element_["Component"]);
5340  
5341  /* harmony default export */ var meta_boxes_area = (Object(external_this_wp_data_["withSelect"])(function (select) {
5342    return {
5343      isSaving: select('core/edit-post').isSavingMetaBoxes()
5344    };
5345  })(meta_boxes_area_MetaBoxesArea));
5346  
5347  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/meta-boxes/meta-box-visibility.js
5348  
5349  
5350  
5351  
5352  
5353  
5354  /**
5355   * WordPress dependencies
5356   */
5357  
5358  
5359  
5360  var meta_box_visibility_MetaBoxVisibility =
5361  /*#__PURE__*/
5362  function (_Component) {
5363    Object(inherits["a" /* default */])(MetaBoxVisibility, _Component);
5364  
5365    function MetaBoxVisibility() {
5366      Object(classCallCheck["a" /* default */])(this, MetaBoxVisibility);
5367  
5368      return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MetaBoxVisibility).apply(this, arguments));
5369    }
5370  
5371    Object(createClass["a" /* default */])(MetaBoxVisibility, [{
5372      key: "componentDidMount",
5373      value: function componentDidMount() {
5374        this.updateDOM();
5375      }
5376    }, {
5377      key: "componentDidUpdate",
5378      value: function componentDidUpdate(prevProps) {
5379        if (this.props.isVisible !== prevProps.isVisible) {
5380          this.updateDOM();
5381        }
5382      }
5383    }, {
5384      key: "updateDOM",
5385      value: function updateDOM() {
5386        var _this$props = this.props,
5387            id = _this$props.id,
5388            isVisible = _this$props.isVisible;
5389        var element = document.getElementById(id);
5390  
5391        if (!element) {
5392          return;
5393        }
5394  
5395        if (isVisible) {
5396          element.classList.remove('is-hidden');
5397        } else {
5398          element.classList.add('is-hidden');
5399        }
5400      }
5401    }, {
5402      key: "render",
5403      value: function render() {
5404        return null;
5405      }
5406    }]);
5407  
5408    return MetaBoxVisibility;
5409  }(external_this_wp_element_["Component"]);
5410  
5411  /* harmony default export */ var meta_box_visibility = (Object(external_this_wp_data_["withSelect"])(function (select, _ref) {
5412    var id = _ref.id;
5413    return {
5414      isVisible: select('core/edit-post').isEditorPanelEnabled("meta-box-".concat(id))
5415    };
5416  })(meta_box_visibility_MetaBoxVisibility));
5417  
5418  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/meta-boxes/index.js
5419  
5420  
5421  /**
5422   * External dependencies
5423   */
5424  
5425  /**
5426   * WordPress dependencies
5427   */
5428  
5429  
5430  /**
5431   * Internal dependencies
5432   */
5433  
5434  
5435  
5436  
5437  function MetaBoxes(_ref) {
5438    var location = _ref.location,
5439        isVisible = _ref.isVisible,
5440        metaBoxes = _ref.metaBoxes;
5441    return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_lodash_["map"])(metaBoxes, function (_ref2) {
5442      var id = _ref2.id;
5443      return Object(external_this_wp_element_["createElement"])(meta_box_visibility, {
5444        key: id,
5445        id: id
5446      });
5447    }), isVisible && Object(external_this_wp_element_["createElement"])(meta_boxes_area, {
5448      location: location
5449    }));
5450  }
5451  
5452  /* harmony default export */ var meta_boxes = (Object(external_this_wp_data_["withSelect"])(function (select, _ref3) {
5453    var location = _ref3.location;
5454  
5455    var _select = select('core/edit-post'),
5456        isMetaBoxLocationVisible = _select.isMetaBoxLocationVisible,
5457        getMetaBoxesPerLocation = _select.getMetaBoxesPerLocation;
5458  
5459    return {
5460      metaBoxes: getMetaBoxesPerLocation(location),
5461      isVisible: isMetaBoxLocationVisible(location)
5462    };
5463  })(MetaBoxes));
5464  
5465  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-document-setting-panel/index.js
5466  
5467  
5468  /**
5469   * Defines as extensibility slot for the Settings sidebar
5470   */
5471  
5472  /**
5473   * WordPress dependencies
5474   */
5475  
5476  
5477  
5478  
5479  /**
5480   * Internal dependencies
5481   */
5482  
5483  
5484  
5485  var plugin_document_setting_panel_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('PluginDocumentSettingPanel'),
5486      plugin_document_setting_panel_Fill = plugin_document_setting_panel_createSlotFill.Fill,
5487      plugin_document_setting_panel_Slot = plugin_document_setting_panel_createSlotFill.Slot;
5488  
5489  
5490  
5491  var plugin_document_setting_panel_PluginDocumentSettingFill = function PluginDocumentSettingFill(_ref) {
5492    var isEnabled = _ref.isEnabled,
5493        panelName = _ref.panelName,
5494        opened = _ref.opened,
5495        onToggle = _ref.onToggle,
5496        className = _ref.className,
5497        title = _ref.title,
5498        icon = _ref.icon,
5499        children = _ref.children;
5500    return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(enable_plugin_document_setting_panel, {
5501      label: title,
5502      panelName: panelName
5503    }), Object(external_this_wp_element_["createElement"])(plugin_document_setting_panel_Fill, null, isEnabled && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
5504      className: className,
5505      title: title,
5506      icon: icon,
5507      opened: opened,
5508      onToggle: onToggle
5509    }, children)));
5510  };
5511  /**
5512   * Renders items below the Status & Availability panel in the Document Sidebar.
5513   *
5514   * @param {Object} props Component properties.
5515   * @param {string} [props.name] The machine-friendly name for the panel.
5516   * @param {string} [props.className] An optional class name added to the row.
5517   * @param {string} [props.title] The title of the panel
5518   * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
5519   *
5520   * @example <caption>ES5</caption>
5521   * ```js
5522   * // Using ES5 syntax
5523   * var el = wp.element.createElement;
5524   * var __ = wp.i18n.__;
5525   * var registerPlugin = wp.plugins.registerPlugin;
5526   * var PluginDocumentSettingPanel = wp.editPost.PluginDocumentSettingPanel;
5527   *
5528   * function MyDocumentSettingPlugin() {
5529   *     return el(
5530   *         PluginDocumentSettingPanel,
5531   *         {
5532   *             className: 'my-document-setting-plugin',
5533   *             title: 'My Panel',
5534   *         },
5535   *         __( 'My Document Setting Panel' )
5536   *     );
5537   * }
5538   *
5539   * registerPlugin( 'my-document-setting-plugin', {
5540   *         render: MyDocumentSettingPlugin
5541   * } );
5542   * ```
5543   *
5544   * @example <caption>ESNext</caption>
5545   * ```jsx
5546   * // Using ESNext syntax
5547   * const { registerPlugin } = wp.plugins;
5548   * const { PluginDocumentSettingPanel } = wp.editPost;
5549   *
5550   * const MyDocumentSettingTest = () => (
5551   *         <PluginDocumentSettingPanel className="my-document-setting-plugin" title="My Panel">
5552   *            <p>My Document Setting Panel</p>
5553   *        </PluginDocumentSettingPanel>
5554   *    );
5555   *
5556   *  registerPlugin( 'document-setting-test', { render: MyDocumentSettingTest } );
5557   * ```
5558   *
5559   * @return {WPComponent} The component to be rendered.
5560   */
5561  
5562  
5563  var PluginDocumentSettingPanel = Object(external_this_wp_compose_["compose"])(Object(external_this_wp_plugins_["withPluginContext"])(function (context, ownProps) {
5564    return {
5565      icon: ownProps.icon || context.icon,
5566      panelName: "".concat(context.name, "/").concat(ownProps.name)
5567    };
5568  }), Object(external_this_wp_data_["withSelect"])(function (select, _ref2) {
5569    var panelName = _ref2.panelName;
5570    return {
5571      opened: select('core/edit-post').isEditorPanelOpened(panelName),
5572      isEnabled: select('core/edit-post').isEditorPanelEnabled(panelName)
5573    };
5574  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) {
5575    var panelName = _ref3.panelName;
5576    return {
5577      onToggle: function onToggle() {
5578        return dispatch('core/edit-post').toggleEditorPanelOpened(panelName);
5579      }
5580    };
5581  }))(plugin_document_setting_panel_PluginDocumentSettingFill);
5582  PluginDocumentSettingPanel.Slot = plugin_document_setting_panel_Slot;
5583  /* harmony default export */ var plugin_document_setting_panel = (PluginDocumentSettingPanel);
5584  
5585  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/settings-sidebar/index.js
5586  
5587  
5588  /**
5589   * WordPress dependencies
5590   */
5591  
5592  
5593  
5594  
5595  /**
5596   * Internal dependencies
5597   */
5598  
5599  
5600  
5601  
5602  
5603  
5604  
5605  
5606  
5607  
5608  
5609  
5610  
5611  
5612  var settings_sidebar_SettingsSidebar = function SettingsSidebar(_ref) {
5613    var sidebarName = _ref.sidebarName;
5614    return Object(external_this_wp_element_["createElement"])(components_sidebar, {
5615      name: sidebarName
5616    }, Object(external_this_wp_element_["createElement"])(settings_header, {
5617      sidebarName: sidebarName
5618    }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Panel"], null, sidebarName === 'edit-post/document' && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(post_status, null), Object(external_this_wp_element_["createElement"])(plugin_document_setting_panel.Slot, null), Object(external_this_wp_element_["createElement"])(last_revision, null), Object(external_this_wp_element_["createElement"])(post_link, null), Object(external_this_wp_element_["createElement"])(post_taxonomies, null), Object(external_this_wp_element_["createElement"])(featured_image, null), Object(external_this_wp_element_["createElement"])(post_excerpt, null), Object(external_this_wp_element_["createElement"])(discussion_panel, null), Object(external_this_wp_element_["createElement"])(page_attributes, null), Object(external_this_wp_element_["createElement"])(meta_boxes, {
5619      location: "side"
5620    })), sidebarName === 'edit-post/block' && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockInspector"], null)));
5621  };
5622  
5623  /* harmony default export */ var settings_sidebar = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
5624    var _select = select('core/edit-post'),
5625        getActiveGeneralSidebarName = _select.getActiveGeneralSidebarName,
5626        isEditorSidebarOpened = _select.isEditorSidebarOpened;
5627  
5628    return {
5629      isEditorSidebarOpened: isEditorSidebarOpened(),
5630      sidebarName: getActiveGeneralSidebarName()
5631    };
5632  }), Object(external_this_wp_compose_["ifCondition"])(function (_ref2) {
5633    var isEditorSidebarOpened = _ref2.isEditorSidebarOpened;
5634    return isEditorSidebarOpened;
5635  }))(settings_sidebar_SettingsSidebar));
5636  
5637  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-publish-panel/index.js
5638  
5639  
5640  /**
5641   * WordPress dependencies
5642   */
5643  
5644  
5645  
5646  
5647  var plugin_post_publish_panel_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('PluginPostPublishPanel'),
5648      plugin_post_publish_panel_Fill = plugin_post_publish_panel_createSlotFill.Fill,
5649      plugin_post_publish_panel_Slot = plugin_post_publish_panel_createSlotFill.Slot;
5650  
5651  var plugin_post_publish_panel_PluginPostPublishPanelFill = function PluginPostPublishPanelFill(_ref) {
5652    var children = _ref.children,
5653        className = _ref.className,
5654        title = _ref.title,
5655        _ref$initialOpen = _ref.initialOpen,
5656        initialOpen = _ref$initialOpen === void 0 ? false : _ref$initialOpen,
5657        icon = _ref.icon;
5658    return Object(external_this_wp_element_["createElement"])(plugin_post_publish_panel_Fill, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
5659      className: className,
5660      initialOpen: initialOpen || !title,
5661      title: title,
5662      icon: icon
5663    }, children));
5664  };
5665  /**
5666   * Renders provided content to the post-publish panel in the publish flow
5667   * (side panel that opens after a user publishes the post).
5668   *
5669   * @param {Object} props Component properties.
5670   * @param {string} [props.className] An optional class name added to the panel.
5671   * @param {string} [props.title] Title displayed at the top of the panel.
5672   * @param {boolean} [props.initialOpen=false] Whether to have the panel initially opened. When no title is provided it is always opened.
5673   * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
5674   *
5675   * @example <caption>ES5</caption>
5676   * ```js
5677   * // Using ES5 syntax
5678   * var __ = wp.i18n.__;
5679   * var PluginPostPublishPanel = wp.editPost.PluginPostPublishPanel;
5680   *
5681   * function MyPluginPostPublishPanel() {
5682   *     return wp.element.createElement(
5683   *         PluginPostPublishPanel,
5684   *         {
5685   *             className: 'my-plugin-post-publish-panel',
5686   *             title: __( 'My panel title' ),
5687   *             initialOpen: true,
5688   *         },
5689   *         __( 'My panel content' )
5690   *     );
5691   * }
5692   * ```
5693   *
5694   * @example <caption>ESNext</caption>
5695   * ```jsx
5696   * // Using ESNext syntax
5697   * const { __ } = wp.i18n;
5698   * const { PluginPostPublishPanel } = wp.editPost;
5699   *
5700   * const MyPluginPostPublishPanel = () => (
5701   *     <PluginPostPublishPanel
5702   *         className="my-plugin-post-publish-panel"
5703   *         title={ __( 'My panel title' ) }
5704   *         initialOpen={ true }
5705   *     >
5706   *         { __( 'My panel content' ) }
5707   *     </PluginPostPublishPanel>
5708   * );
5709   * ```
5710   *
5711   * @return {WPComponent} The component to be rendered.
5712   */
5713  
5714  
5715  var PluginPostPublishPanel = Object(external_this_wp_compose_["compose"])(Object(external_this_wp_plugins_["withPluginContext"])(function (context, ownProps) {
5716    return {
5717      icon: ownProps.icon || context.icon
5718    };
5719  }))(plugin_post_publish_panel_PluginPostPublishPanelFill);
5720  PluginPostPublishPanel.Slot = plugin_post_publish_panel_Slot;
5721  /* harmony default export */ var plugin_post_publish_panel = (PluginPostPublishPanel);
5722  
5723  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-pre-publish-panel/index.js
5724  
5725  
5726  /**
5727   * WordPress dependencies
5728   */
5729  
5730  
5731  
5732  
5733  var plugin_pre_publish_panel_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('PluginPrePublishPanel'),
5734      plugin_pre_publish_panel_Fill = plugin_pre_publish_panel_createSlotFill.Fill,
5735      plugin_pre_publish_panel_Slot = plugin_pre_publish_panel_createSlotFill.Slot;
5736  
5737  var plugin_pre_publish_panel_PluginPrePublishPanelFill = function PluginPrePublishPanelFill(_ref) {
5738    var children = _ref.children,
5739        className = _ref.className,
5740        title = _ref.title,
5741        _ref$initialOpen = _ref.initialOpen,
5742        initialOpen = _ref$initialOpen === void 0 ? false : _ref$initialOpen,
5743        icon = _ref.icon;
5744    return Object(external_this_wp_element_["createElement"])(plugin_pre_publish_panel_Fill, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
5745      className: className,
5746      initialOpen: initialOpen || !title,
5747      title: title,
5748      icon: icon
5749    }, children));
5750  };
5751  /**
5752   * Renders provided content to the pre-publish side panel in the publish flow
5753   * (side panel that opens when a user first pushes "Publish" from the main editor).
5754   *
5755   * @param {Object}                props                                 Component props.
5756   * @param {string}                [props.className]                     An optional class name added to the panel.
5757   * @param {string}                [props.title]                         Title displayed at the top of the panel.
5758   * @param {boolean}               [props.initialOpen=false]             Whether to have the panel initially opened.
5759   *                                                                      When no title is provided it is always opened.
5760   * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/)
5761   *                                                                      icon slug string, or an SVG WP element, to be rendered when
5762   *                                                                      the sidebar is pinned to toolbar.
5763   *
5764   * @example <caption>ES5</caption>
5765   * ```js
5766   * // Using ES5 syntax
5767   * var __ = wp.i18n.__;
5768   * var PluginPrePublishPanel = wp.editPost.PluginPrePublishPanel;
5769   *
5770   * function MyPluginPrePublishPanel() {
5771   *     return wp.element.createElement(
5772   *         PluginPrePublishPanel,
5773   *         {
5774   *             className: 'my-plugin-pre-publish-panel',
5775   *             title: __( 'My panel title' ),
5776   *             initialOpen: true,
5777   *         },
5778   *         __( 'My panel content' )
5779   *     );
5780   * }
5781   * ```
5782   *
5783   * @example <caption>ESNext</caption>
5784   * ```jsx
5785   * // Using ESNext syntax
5786   * const { __ } = wp.i18n;
5787   * const { PluginPrePublishPanel } = wp.editPost;
5788   *
5789   * const MyPluginPrePublishPanel = () => (
5790   *     <PluginPrePublishPanel
5791   *         className="my-plugin-pre-publish-panel"
5792   *         title={ __( 'My panel title' ) }
5793   *         initialOpen={ true }
5794   *     >
5795   *         { __( 'My panel content' ) }
5796   *     </PluginPrePublishPanel>
5797   * );
5798   * ```
5799   *
5800   * @return {WPComponent} The component to be rendered.
5801   */
5802  
5803  
5804  var PluginPrePublishPanel = Object(external_this_wp_compose_["compose"])(Object(external_this_wp_plugins_["withPluginContext"])(function (context, ownProps) {
5805    return {
5806      icon: ownProps.icon || context.icon
5807    };
5808  }))(plugin_pre_publish_panel_PluginPrePublishPanelFill);
5809  PluginPrePublishPanel.Slot = plugin_pre_publish_panel_Slot;
5810  /* harmony default export */ var plugin_pre_publish_panel = (PluginPrePublishPanel);
5811  
5812  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/welcome-guide/images.js
5813  
5814  
5815  
5816  /**
5817   * WordPress dependencies
5818   */
5819  
5820  var images_CanvasImage = function CanvasImage(props) {
5821    return Object(external_this_wp_element_["createElement"])("img", Object(esm_extends["a" /* default */])({
5822      alt: "",
5823      src: "data:image/svg+xml,%3Csvg width='306' height='286' viewBox='0 0 306 286' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='306' height='286' rx='4' fill='%2366C6E4'/%3E%3Crect x='36' y='30' width='234' height='256' fill='white'/%3E%3Crect x='36' y='80' width='234' height='94' fill='%23E2E4E7'/%3E%3Cpath d='M140.237 121.47L142.109 125H157.255V133H140.237V121.47ZM159.382 119H155.128L157.255 123H154.064L151.937 119H149.809L151.937 123H148.746L146.618 119H144.491L146.618 123H143.428L141.3 119H140.237C139.067 119 138.12 119.9 138.12 121L138.109 133C138.109 134.1 139.067 135 140.237 135H157.255C158.425 135 159.382 134.1 159.382 133V119Z' fill='%23444444'/%3E%3Crect x='57' y='182' width='91.4727' height='59' fill='%23E2E4E7'/%3E%3Crect x='156.982' y='182' width='91.4727' height='59' fill='%23E2E4E7'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M112.309 203H93.1634C92.0998 203 91.0361 204 91.0361 205V219C91.0361 220.1 91.9934 221 93.1634 221H112.309C113.372 221 114.436 220 114.436 219V205C114.436 204 113.372 203 112.309 203ZM112.309 218.92C112.294 218.941 112.269 218.962 112.248 218.979L112.248 218.979C112.239 218.987 112.23 218.994 112.224 219H93.1634V205.08L93.2485 205H112.213C112.235 205.014 112.258 205.038 112.276 205.057C112.284 205.066 112.292 205.074 112.298 205.08V218.92H112.309ZM99.0134 212.5L101.672 215.51L105.395 211L110.182 217H95.2907L99.0134 212.5Z' fill='%2340464D'/%3E%3Cmask id='mask0' mask-type='alpha' maskUnits='userSpaceOnUse' x='91' y='203' width='24' height='18'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M112.309 203H93.1634C92.0998 203 91.0361 204 91.0361 205V219C91.0361 220.1 91.9934 221 93.1634 221H112.309C113.372 221 114.436 220 114.436 219V205C114.436 204 113.372 203 112.309 203ZM112.309 218.92C112.294 218.941 112.269 218.962 112.248 218.979L112.248 218.979C112.239 218.987 112.23 218.994 112.224 219H93.1634V205.08L93.2485 205H112.213C112.235 205.014 112.258 205.038 112.276 205.057C112.284 205.066 112.292 205.074 112.298 205.08V218.92H112.309ZM99.0134 212.5L101.672 215.51L105.395 211L110.182 217H95.2907L99.0134 212.5Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask0)'%3E%3Crect x='89.9727' y='200' width='25.5273' height='24' fill='%2340464D'/%3E%3C/g%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M212.291 203H193.145C192.082 203 191.018 204 191.018 205V219C191.018 220.1 191.975 221 193.145 221H212.291C213.354 221 214.418 220 214.418 219V205C214.418 204 213.354 203 212.291 203ZM212.291 218.92C212.276 218.941 212.251 218.962 212.23 218.979L212.23 218.979C212.221 218.987 212.212 218.994 212.206 219H193.145V205.08L193.23 205H212.195C212.217 205.014 212.24 205.038 212.258 205.057C212.266 205.066 212.274 205.074 212.28 205.08V218.92H212.291ZM198.995 212.5L201.654 215.51L205.377 211L210.164 217H195.273L198.995 212.5Z' fill='%2340464D'/%3E%3Cmask id='mask1' mask-type='alpha' maskUnits='userSpaceOnUse' x='191' y='203' width='24' height='18'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M212.291 203H193.145C192.082 203 191.018 204 191.018 205V219C191.018 220.1 191.975 221 193.145 221H212.291C213.354 221 214.418 220 214.418 219V205C214.418 204 213.354 203 212.291 203ZM212.291 218.92C212.276 218.941 212.251 218.962 212.23 218.979L212.23 218.979C212.221 218.987 212.212 218.994 212.206 219H193.145V205.08L193.23 205H212.195C212.217 205.014 212.24 205.038 212.258 205.057C212.266 205.066 212.274 205.074 212.28 205.08V218.92H212.291ZM198.995 212.5L201.654 215.51L205.377 211L210.164 217H195.273L198.995 212.5Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask1)'%3E%3Crect x='189.955' y='200' width='25.5273' height='24' fill='%2340464D'/%3E%3C/g%3E%3Crect x='57' y='38' width='191.455' height='34' fill='%23E2E4E7'/%3E%3Cpath d='M155.918 47.8V54.04H149.537V47.8H146.346V63.4H149.537V57.16H155.918V63.4H159.109V47.8' fill='%2340464D'/%3E%3Crect x='58' y='249' width='191' height='37' fill='%23E2E4E7'/%3E%3Cpath d='M160.127 261.4H150.606C149.546 261.4 148.576 261.64 147.696 262.12C146.802 262.612 146.1 263.272 145.59 264.1C145.066 264.928 144.811 265.84 144.811 266.824C144.811 267.808 145.066 268.72 145.59 269.548C146.1 270.376 146.802 271.036 147.696 271.516C148.576 272.008 149.546 272.248 150.606 272.248H151.155V279.4C151.155 279.724 151.282 280.012 151.525 280.252C151.78 280.48 152.086 280.6 152.431 280.6C152.788 280.6 153.082 280.48 153.337 280.252C153.592 280.012 153.72 279.724 153.72 279.4V265C153.72 264.676 153.835 264.388 154.09 264.148C154.345 263.92 154.652 263.8 154.996 263.8C155.341 263.8 155.647 263.92 155.903 264.148C156.145 264.388 156.273 264.676 156.273 265V279.4C156.273 279.724 156.4 280.012 156.656 280.252C156.911 280.48 157.205 280.6 157.562 280.6C157.907 280.6 158.213 280.48 158.468 280.252C158.711 280.012 158.838 279.724 158.838 279.4V263.8H160.127C160.472 263.8 160.766 263.68 161.021 263.44C161.276 263.212 161.404 262.924 161.404 262.6C161.404 262.276 161.276 261.988 161.021 261.748C160.766 261.52 160.472 261.4 160.127 261.4Z' fill='%2340464D'/%3E%3C/svg%3E%0A"
5824    }, props));
5825  };
5826  var images_EditorImage = function EditorImage(props) {
5827    return Object(external_this_wp_element_["createElement"])("img", Object(esm_extends["a" /* default */])({
5828      alt: "",
5829      src: "data:image/svg+xml,%3Csvg width='306' height='286' viewBox='0 0 306 286' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='306' height='286' rx='4' fill='%2366C6E4'/%3E%3Crect x='34.5' y='89.9424' width='237' height='113.423' fill='white' stroke='%238D96A0'/%3E%3Crect x='42.2383' y='98.5962' width='219.692' height='95.6618' fill='%23E2E4E7'/%3E%3Crect x='34.5' y='71.6346' width='27.0718' height='18.1324' fill='white' stroke='%238D96A0'/%3E%3Crect x='152.89' y='71.6346' width='18.5282' height='18.1324' fill='white' stroke='%238D96A0'/%3E%3Crect x='61.3516' y='71.6346' width='51.482' height='18.1324' fill='white' stroke='%238D96A0'/%3E%3Crect x='112.613' y='71.6346' width='40.4974' height='18.1324' fill='white' stroke='%238D96A0'/%3E%3Cpath d='M157.577 137.408H149.383C148.471 137.408 147.636 137.628 146.878 138.068C146.109 138.518 145.505 139.122 145.066 139.88C144.615 140.638 144.396 141.473 144.396 142.373C144.396 143.274 144.615 144.109 145.066 144.867C145.505 145.625 146.109 146.229 146.878 146.668C147.636 147.119 148.471 147.339 149.383 147.339H149.855V153.885C149.855 154.182 149.965 154.446 150.173 154.665C150.393 154.874 150.657 154.984 150.953 154.984C151.261 154.984 151.514 154.874 151.733 154.665C151.953 154.446 152.063 154.182 152.063 153.885V140.704C152.063 140.407 152.162 140.144 152.381 139.924C152.601 139.715 152.865 139.605 153.161 139.605C153.458 139.605 153.721 139.715 153.941 139.924C154.15 140.144 154.26 140.407 154.26 140.704V153.885C154.26 154.182 154.37 154.446 154.589 154.665C154.809 154.874 155.062 154.984 155.369 154.984C155.666 154.984 155.929 154.874 156.149 154.665C156.358 154.446 156.468 154.182 156.468 153.885V139.605H157.577C157.874 139.605 158.126 139.496 158.346 139.276C158.566 139.067 158.676 138.803 158.676 138.507C158.676 138.21 158.566 137.947 158.346 137.727C158.126 137.518 157.874 137.408 157.577 137.408Z' fill='%2340464D'/%3E%3Crect x='41.3232' y='77.1135' width='15.8667' height='7.17464' fill='%23E2E4E7'/%3E%3Crect x='66.9536' y='77.1135' width='7.32308' height='7.17464' fill='%23E2E4E7'/%3E%3Crect x='77.9385' y='77.1135' width='7.32308' height='7.17464' fill='%23E2E4E7'/%3E%3Crect x='88.9229' y='77.1135' width='7.32308' height='7.17464' fill='%23E2E4E7'/%3E%3Crect x='99.9077' y='77.1135' width='7.32308' height='7.17464' fill='%23E2E4E7'/%3E%3Crect x='118.215' y='77.1135' width='7.32308' height='7.17464' fill='%23E2E4E7'/%3E%3Crect x='129.2' y='77.1135' width='7.32308' height='7.17464' fill='%23E2E4E7'/%3E%3Crect x='140.185' y='77.1135' width='7.32308' height='7.17464' fill='%23E2E4E7'/%3E%3Crect x='158.492' y='77.1135' width='7.32308' height='7.17464' fill='%23E2E4E7'/%3E%3C/svg%3E%0A"
5830    }, props));
5831  };
5832  var images_BlockLibraryImage = function BlockLibraryImage(props) {
5833    return Object(external_this_wp_element_["createElement"])("img", Object(esm_extends["a" /* default */])({
5834      alt: "",
5835      src: "data:image/svg+xml,%3Csvg width='306' height='286' viewBox='0 0 306 286' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='306' height='286' rx='4' fill='%2366C6E4'/%3E%3Cmask id='mask0' mask-type='alpha' maskUnits='userSpaceOnUse' x='141' y='25' width='24' height='24'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152.765 25C146.294 25 141 30.2943 141 36.7651C141 43.2359 146.294 48.5302 152.765 48.5302C159.236 48.5302 164.53 43.2359 164.53 36.7651C164.53 30.2943 159.236 25 152.765 25ZM151.589 32.0591V35.5886H148.059V37.9416H151.589V41.4711H153.942V37.9416H157.471V35.5886H153.942V32.0591H151.589ZM143.353 36.7651C143.353 41.9417 147.588 46.1772 152.765 46.1772C157.942 46.1772 162.177 41.9417 162.177 36.7651C162.177 31.5885 157.942 27.353 152.765 27.353C147.588 27.353 143.353 31.5885 143.353 36.7651Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask0)'%3E%3Crect x='141' y='25' width='23.5253' height='23.5253' fill='white'/%3E%3C/g%3E%3Cg filter='url(%23filter0_d)'%3E%3Crect x='48' y='63' width='210' height='190' fill='white'/%3E%3C/g%3E%3Cmask id='mask1' mask-type='alpha' maskUnits='userSpaceOnUse' x='143' y='139' width='20' height='16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M143.75 141C143.75 140.17 144.42 139.5 145.25 139.5C146.08 139.5 146.75 140.17 146.75 141C146.75 141.83 146.08 142.5 145.25 142.5C144.42 142.5 143.75 141.83 143.75 141ZM143.75 147C143.75 146.17 144.42 145.5 145.25 145.5C146.08 145.5 146.75 146.17 146.75 147C146.75 147.83 146.08 148.5 145.25 148.5C144.42 148.5 143.75 147.83 143.75 147ZM145.25 151.5C144.42 151.5 143.75 152.18 143.75 153C143.75 153.82 144.43 154.5 145.25 154.5C146.07 154.5 146.75 153.82 146.75 153C146.75 152.18 146.08 151.5 145.25 151.5ZM162.25 154H148.25V152H162.25V154ZM148.25 148H162.25V146H148.25V148ZM148.25 142V140H162.25V142H148.25Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask1)'%3E%3Crect x='141' y='135' width='24' height='24' fill='%23444444'/%3E%3C/g%3E%3Cmask id='mask2' mask-type='alpha' maskUnits='userSpaceOnUse' x='139' y='54' width='28' height='11'%3E%3Crect x='139' y='54' width='28' height='11' fill='%23C4C4C4'/%3E%3C/mask%3E%3Cg mask='url(%23mask2)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M139 67L153 54L167 67H139Z' fill='white'/%3E%3C/g%3E%3Crect x='59' y='74' width='188' height='28' rx='3' stroke='%231486B8' stroke-width='2'/%3E%3Cpath d='M211 207.47L212.76 211H227V219H211V207.47ZM229 205H225L227 209H224L222 205H220L222 209H219L217 205H215L217 209H214L212 205H211C209.9 205 209.01 205.9 209.01 207L209 219C209 220.1 209.9 221 211 221H227C228.1 221 229 220.1 229 219V205Z' fill='%23444444'/%3E%3Cpath d='M94.0001 136.4H85.0481C84.0521 136.4 83.1401 136.64 82.3121 137.12C81.4721 137.612 80.8121 138.272 80.3321 139.1C79.8401 139.928 79.6001 140.84 79.6001 141.824C79.6001 142.808 79.8401 143.72 80.3321 144.548C80.8121 145.376 81.4721 146.036 82.3121 146.516C83.1401 147.008 84.0521 147.248 85.0481 147.248H85.5641V154.4C85.5641 154.724 85.6841 155.012 85.9121 155.252C86.1521 155.48 86.4401 155.6 86.7641 155.6C87.1001 155.6 87.3761 155.48 87.6161 155.252C87.8561 155.012 87.9761 154.724 87.9761 154.4V140C87.9761 139.676 88.0841 139.388 88.3241 139.148C88.5641 138.92 88.8521 138.8 89.1761 138.8C89.5001 138.8 89.7881 138.92 90.0281 139.148C90.2561 139.388 90.3761 139.676 90.3761 140V154.4C90.3761 154.724 90.4961 155.012 90.7361 155.252C90.9761 155.48 91.2521 155.6 91.5881 155.6C91.9121 155.6 92.2001 155.48 92.4401 155.252C92.6681 155.012 92.7881 154.724 92.7881 154.4V138.8H94.0001C94.3241 138.8 94.6001 138.68 94.8401 138.44C95.0801 138.212 95.2001 137.924 95.2001 137.6C95.2001 137.276 95.0801 136.988 94.8401 136.748C94.6001 136.52 94.3241 136.4 94.0001 136.4Z' fill='%23444444'/%3E%3Cmask id='mask3' mask-type='alpha' maskUnits='userSpaceOnUse' x='76' y='204' width='22' height='18'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M96 204H78C77 204 76 205 76 206V220C76 221.1 76.9 222 78 222H96C97 222 98 221 98 220V206C98 205 97 204 96 204ZM96 219.92C95.9861 219.941 95.9624 219.962 95.9426 219.979C95.9339 219.987 95.9261 219.994 95.92 220H78V206.08L78.08 206H95.91C95.9309 206.014 95.9518 206.038 95.9694 206.057C95.977 206.066 95.9839 206.074 95.99 206.08V219.92H96ZM83.5 213.5L86 216.51L89.5 212L94 218H80L83.5 213.5Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask3)'%3E%3Crect x='75' y='201' width='24' height='24' fill='%23444444'/%3E%3C/g%3E%3Cpath d='M161 205V217H149V205H161ZM161 203H149C147.9 203 147 203.9 147 205V217C147 218.1 147.9 219 149 219H161C162.1 219 163 218.1 163 217V205C163 203.9 162.1 203 161 203ZM152.5 212.67L154.19 214.93L156.67 211.83L160 216H150L152.5 212.67ZM143 207V221C143 222.1 143.9 223 145 223H159V221H145V207H143Z' fill='%23444444'/%3E%3Cmask id='mask4' mask-type='alpha' maskUnits='userSpaceOnUse' x='210' y='140' width='18' height='12'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M215.62 152H210.38L212.38 148H210V140H218V147.24L215.62 152ZM220.38 152H225.62L228 147.24V140H220V148H222.38L220.38 152ZM224.38 150H223.62L225.62 146H222V142H226V146.76L224.38 150ZM214.38 150H213.62L215.62 146H212V142H216V146.76L214.38 150Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask4)'%3E%3Crect x='207' y='134' width='24' height='24' fill='%23444444'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d' x='18' y='36' width='270' height='250' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0'/%3E%3CfeOffset dy='3'/%3E%3CfeGaussianBlur stdDeviation='15'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.0980392 0 0 0 0 0.117647 0 0 0 0 0.137255 0 0 0 0.1 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A"
5836    }, props));
5837  };
5838  var images_InserterIconImage = function InserterIconImage(props) {
5839    return Object(external_this_wp_element_["createElement"])("img", Object(esm_extends["a" /* default */])({
5840      alt: Object(external_this_wp_i18n_["__"])('inserter'),
5841      src: "data:image/svg+xml;charset=utf8,%3Csvg width='18' height='18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.824 0C3.97 0 0 3.97 0 8.824c0 4.853 3.97 8.824 8.824 8.824 4.853 0 8.824-3.971 8.824-8.824S13.677 0 8.824 0zM7.94 5.294v2.647H5.294v1.765h2.647v2.647h1.765V9.706h2.647V7.941H9.706V5.294H7.941zm-6.176 3.53c0 3.882 3.176 7.059 7.059 7.059 3.882 0 7.059-3.177 7.059-7.06 0-3.882-3.177-7.058-7.06-7.058-3.882 0-7.058 3.176-7.058 7.059z' fill='%234A4A4A'/%3E%3Cmask id='a' maskUnits='userSpaceOnUse' x='0' y='0' width='18' height='18'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.824 0C3.97 0 0 3.97 0 8.824c0 4.853 3.97 8.824 8.824 8.824 4.853 0 8.824-3.971 8.824-8.824S13.677 0 8.824 0zM7.94 5.294v2.647H5.294v1.765h2.647v2.647h1.765V9.706h2.647V7.941H9.706V5.294H7.941zm-6.176 3.53c0 3.882 3.176 7.059 7.059 7.059 3.882 0 7.059-3.177 7.059-7.06 0-3.882-3.177-7.058-7.06-7.058-3.882 0-7.058 3.176-7.058 7.059z' fill='%23fff'/%3E%3C/mask%3E%3Cg mask='url(%23a)'%3E%3Cpath fill='%23444' d='M0 0h17.644v17.644H0z'/%3E%3C/g%3E%3C/svg%3E"
5842    }, props));
5843  };
5844  
5845  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/welcome-guide/index.js
5846  
5847  
5848  /**
5849   * WordPress dependencies
5850   */
5851  
5852  
5853  
5854  
5855  /**
5856   * Internal dependencies
5857   */
5858  
5859  
5860  function WelcomeGuide() {
5861    var areTipsEnabled = Object(external_this_wp_data_["useSelect"])(function (select) {
5862      return select('core/nux').areTipsEnabled();
5863    });
5864  
5865    var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/nux'),
5866        disableTips = _useDispatch.disableTips;
5867  
5868    if (!areTipsEnabled) {
5869      return null;
5870    }
5871  
5872    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Guide"], {
5873      className: "edit-post-welcome-guide",
5874      finishButtonText: Object(external_this_wp_i18n_["__"])('Get started'),
5875      onFinish: disableTips
5876    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["GuidePage"], {
5877      className: "edit-post-welcome-guide__page"
5878    }, Object(external_this_wp_element_["createElement"])("h1", {
5879      className: "edit-post-welcome-guide__heading"
5880    }, Object(external_this_wp_i18n_["__"])('Welcome to the Block Editor')), Object(external_this_wp_element_["createElement"])(images_CanvasImage, {
5881      className: "edit-post-welcome-guide__image"
5882    }), Object(external_this_wp_element_["createElement"])("p", {
5883      className: "edit-post-welcome-guide__text"
5884    }, Object(external_this_wp_i18n_["__"])('In the WordPress editor, each paragraph, image, or video is presented as a distinct “block” of content.'))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["GuidePage"], {
5885      className: "edit-post-welcome-guide__page"
5886    }, Object(external_this_wp_element_["createElement"])("h1", {
5887      className: "edit-post-welcome-guide__heading"
5888    }, Object(external_this_wp_i18n_["__"])('Make each block your own')), Object(external_this_wp_element_["createElement"])(images_EditorImage, {
5889      className: "edit-post-welcome-guide__image"
5890    }), Object(external_this_wp_element_["createElement"])("p", {
5891      className: "edit-post-welcome-guide__text"
5892    }, Object(external_this_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.'))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["GuidePage"], {
5893      className: "edit-post-welcome-guide__page"
5894    }, Object(external_this_wp_element_["createElement"])("h1", {
5895      className: "edit-post-welcome-guide__heading"
5896    }, Object(external_this_wp_i18n_["__"])('Get to know the Block Library')), Object(external_this_wp_element_["createElement"])(images_BlockLibraryImage, {
5897      className: "edit-post-welcome-guide__image"
5898    }), Object(external_this_wp_element_["createElement"])("p", {
5899      className: "edit-post-welcome-guide__text"
5900    }, Object(external_this_wp_element_["__experimentalCreateInterpolateElement"])(Object(external_this_wp_i18n_["__"])('All of the blocks available to you live in the Block Library. You’ll find it wherever you see the <InserterIconImage /> icon.'), {
5901      InserterIconImage: Object(external_this_wp_element_["createElement"])(images_InserterIconImage, {
5902        className: "edit-post-welcome-guide__inserter-icon"
5903      })
5904    }))));
5905  }
5906  
5907  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/layout/index.js
5908  
5909  
5910  /**
5911   * External dependencies
5912   */
5913  
5914  /**
5915   * WordPress dependencies
5916   */
5917  
5918  
5919  
5920  
5921  
5922  
5923  
5924  
5925  /**
5926   * Internal dependencies
5927   */
5928  
5929  
5930  
5931  
5932  
5933  
5934  
5935  
5936  
5937  
5938  
5939  
5940  
5941  
5942  
5943  
5944  
5945  
5946  function Layout() {
5947    var isMobileViewport = Object(external_this_wp_compose_["useViewportMatch"])('small', '<');
5948  
5949    var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/edit-post'),
5950        closePublishSidebar = _useDispatch.closePublishSidebar,
5951        togglePublishSidebar = _useDispatch.togglePublishSidebar;
5952  
5953    var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) {
5954      return {
5955        hasFixedToolbar: select('core/edit-post').isFeatureActive('fixedToolbar'),
5956        editorSidebarOpened: select('core/edit-post').isEditorSidebarOpened(),
5957        pluginSidebarOpened: select('core/edit-post').isPluginSidebarOpened(),
5958        publishSidebarOpened: select('core/edit-post').isPublishSidebarOpened(),
5959        mode: select('core/edit-post').getEditorMode(),
5960        isRichEditingEnabled: select('core/editor').getEditorSettings().richEditingEnabled,
5961        hasActiveMetaboxes: select('core/edit-post').hasMetaBoxes(),
5962        isSaving: select('core/edit-post').isSavingMetaBoxes()
5963      };
5964    }),
5965        mode = _useSelect.mode,
5966        isRichEditingEnabled = _useSelect.isRichEditingEnabled,
5967        editorSidebarOpened = _useSelect.editorSidebarOpened,
5968        pluginSidebarOpened = _useSelect.pluginSidebarOpened,
5969        publishSidebarOpened = _useSelect.publishSidebarOpened,
5970        hasActiveMetaboxes = _useSelect.hasActiveMetaboxes,
5971        isSaving = _useSelect.isSaving,
5972        hasFixedToolbar = _useSelect.hasFixedToolbar;
5973  
5974    var showPageTemplatePicker = Object(external_this_wp_blockEditor_["__experimentalUsePageTemplatePickerVisible"])();
5975  
5976    var sidebarIsOpened = editorSidebarOpened || pluginSidebarOpened || publishSidebarOpened;
5977    var className = classnames_default()('edit-post-layout', 'is-mode-' + mode, {
5978      'is-sidebar-opened': sidebarIsOpened,
5979      'has-fixed-toolbar': hasFixedToolbar,
5980      'has-metaboxes': hasActiveMetaboxes
5981    });
5982    return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(fullscreen_mode, null), Object(external_this_wp_element_["createElement"])(browser_url, null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["UnsavedChangesWarning"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["AutosaveMonitor"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["LocalAutosaveMonitor"], null), Object(external_this_wp_element_["createElement"])(components_keyboard_shortcuts, null), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FocusReturnProvider"], null, Object(external_this_wp_element_["createElement"])(editor_regions, {
5983      className: className,
5984      header: Object(external_this_wp_element_["createElement"])(components_header, null),
5985      sidebar: !publishSidebarOpened && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(settings_sidebar, null), Object(external_this_wp_element_["createElement"])(components_sidebar.Slot, null)),
5986      content: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["EditorNotices"], null), (mode === 'text' || !isRichEditingEnabled) && Object(external_this_wp_element_["createElement"])(text_editor, null), isRichEditingEnabled && mode === 'visual' && Object(external_this_wp_element_["createElement"])(visual_editor, null), Object(external_this_wp_element_["createElement"])("div", {
5987        className: "edit-post-layout__metaboxes"
5988      }, Object(external_this_wp_element_["createElement"])(meta_boxes, {
5989        location: "normal"
5990      }), Object(external_this_wp_element_["createElement"])(meta_boxes, {
5991        location: "advanced"
5992      })), isMobileViewport && sidebarIsOpened && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ScrollLock"], null)),
5993      footer: isRichEditingEnabled && mode === 'visual' && Object(external_this_wp_element_["createElement"])("div", {
5994        className: "edit-post-layout__footer"
5995      }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockBreadcrumb"], null)),
5996      publish: publishSidebarOpened ? Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostPublishPanel"], {
5997        onClose: closePublishSidebar,
5998        forceIsDirty: hasActiveMetaboxes,
5999        forceIsSaving: isSaving,
6000        PrePublishExtension: plugin_pre_publish_panel.Slot,
6001        PostPublishExtension: plugin_post_publish_panel.Slot
6002      }) : Object(external_this_wp_element_["createElement"])("div", {
6003        className: "edit-post-toggle-publish-panel"
6004      }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
6005        isDefault: true,
6006        className: "edit-post-toggle-publish-panel__button",
6007        onClick: togglePublishSidebar,
6008        "aria-expanded": false
6009      }, Object(external_this_wp_i18n_["__"])('Open publish panel')))
6010    }), Object(external_this_wp_element_["createElement"])(manage_blocks_modal, null), Object(external_this_wp_element_["createElement"])(options_modal, null), Object(external_this_wp_element_["createElement"])(keyboard_shortcut_help_modal, null), Object(external_this_wp_element_["createElement"])(WelcomeGuide, null), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"].Slot, null), Object(external_this_wp_element_["createElement"])(external_this_wp_plugins_["PluginArea"], null), showPageTemplatePicker && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalPageTemplatePicker"], null)));
6011  }
6012  
6013  /* harmony default export */ var layout = (Layout);
6014  
6015  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/editor-initialization/listener-hooks.js
6016  /**
6017   * WordPress dependencies
6018   */
6019  
6020  
6021  /**
6022   * Internal dependencies
6023   */
6024  
6025  
6026  /**
6027   * This listener hook monitors for block selection and triggers the appropriate
6028   * sidebar state.
6029   *
6030   * @param {number} postId  The current post id.
6031   */
6032  
6033  var listener_hooks_useBlockSelectionListener = function useBlockSelectionListener(postId) {
6034    var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) {
6035      return {
6036        hasBlockSelection: !!select('core/block-editor').getBlockSelectionStart(),
6037        isEditorSidebarOpened: select(STORE_KEY).isEditorSidebarOpened()
6038      };
6039    }, [postId]),
6040        hasBlockSelection = _useSelect.hasBlockSelection,
6041        isEditorSidebarOpened = _useSelect.isEditorSidebarOpened;
6042  
6043    var _useDispatch = Object(external_this_wp_data_["useDispatch"])(STORE_KEY),
6044        openGeneralSidebar = _useDispatch.openGeneralSidebar;
6045  
6046    Object(external_this_wp_element_["useEffect"])(function () {
6047      if (!isEditorSidebarOpened) {
6048        return;
6049      }
6050  
6051      if (hasBlockSelection) {
6052        openGeneralSidebar('edit-post/block');
6053      } else {
6054        openGeneralSidebar('edit-post/document');
6055      }
6056    }, [hasBlockSelection, isEditorSidebarOpened]);
6057  };
6058  /**
6059   * This listener hook is used to monitor viewport size and adjust the sidebar
6060   * accordingly.
6061   *
6062   * @param {number} postId  The current post id.
6063   */
6064  
6065  var listener_hooks_useAdjustSidebarListener = function useAdjustSidebarListener(postId) {
6066    var _useSelect2 = Object(external_this_wp_data_["useSelect"])(function (select) {
6067      return {
6068        isSmall: select('core/viewport').isViewportMatch('< medium'),
6069        activeGeneralSidebarName: select(STORE_KEY).getActiveGeneralSidebarName()
6070      };
6071    }, [postId]),
6072        isSmall = _useSelect2.isSmall,
6073        activeGeneralSidebarName = _useSelect2.activeGeneralSidebarName;
6074  
6075    var _useDispatch2 = Object(external_this_wp_data_["useDispatch"])(STORE_KEY),
6076        openGeneralSidebar = _useDispatch2.openGeneralSidebar,
6077        closeGeneralSidebar = _useDispatch2.closeGeneralSidebar;
6078  
6079    var previousIsSmall = Object(external_this_wp_element_["useRef"])(null);
6080    var sidebarToReOpenOnExpand = Object(external_this_wp_element_["useRef"])(null);
6081    Object(external_this_wp_element_["useEffect"])(function () {
6082      if (previousIsSmall.current === isSmall) {
6083        return;
6084      }
6085  
6086      previousIsSmall.current = isSmall;
6087  
6088      if (isSmall) {
6089        sidebarToReOpenOnExpand.current = activeGeneralSidebarName;
6090  
6091        if (activeGeneralSidebarName) {
6092          closeGeneralSidebar();
6093        }
6094      } else if (sidebarToReOpenOnExpand.current && !activeGeneralSidebarName) {
6095        openGeneralSidebar(sidebarToReOpenOnExpand.current);
6096        sidebarToReOpenOnExpand.current = null;
6097      }
6098    }, [isSmall, activeGeneralSidebarName]);
6099  };
6100  /**
6101   * This listener hook monitors any change in permalink and updates the view
6102   * post link in the admin bar.
6103   *
6104   * @param {number} postId
6105   */
6106  
6107  var listener_hooks_useUpdatePostLinkListener = function useUpdatePostLinkListener(postId) {
6108    var _useSelect3 = Object(external_this_wp_data_["useSelect"])(function (select) {
6109      return {
6110        newPermalink: select('core/editor').getCurrentPost().link
6111      };
6112    }, [postId]),
6113        newPermalink = _useSelect3.newPermalink;
6114  
6115    var nodeToUpdate = Object(external_this_wp_element_["useRef"])();
6116    Object(external_this_wp_element_["useEffect"])(function () {
6117      nodeToUpdate.current = document.querySelector(VIEW_AS_PREVIEW_LINK_SELECTOR) || document.querySelector(VIEW_AS_LINK_SELECTOR);
6118    }, [postId]);
6119    Object(external_this_wp_element_["useEffect"])(function () {
6120      if (!newPermalink || !nodeToUpdate.current) {
6121        return;
6122      }
6123  
6124      nodeToUpdate.current.setAttribute('href', newPermalink);
6125    }, [newPermalink]);
6126  };
6127  
6128  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/editor-initialization/index.js
6129  /**
6130   * Internal dependencies
6131   */
6132  
6133  /**
6134   * Data component used for initializing the editor and re-initializes
6135   * when postId changes or on unmount.
6136   *
6137   * @param {number} postId  The id of the post.
6138   * @return {null} This is a data component so does not render any ui.
6139   */
6140  
6141  /* harmony default export */ var editor_initialization = (function (_ref) {
6142    var postId = _ref.postId;
6143    listener_hooks_useBlockSelectionListener(postId);
6144    listener_hooks_useAdjustSidebarListener(postId);
6145    listener_hooks_useUpdatePostLinkListener(postId);
6146    return null;
6147  });
6148  
6149  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/editor.js
6150  
6151  
6152  
6153  
6154  
6155  
6156  
6157  
6158  
6159  
6160  
6161  /**
6162   * External dependencies
6163   */
6164  
6165  
6166  /**
6167   * WordPress dependencies
6168   */
6169  
6170  
6171  
6172  
6173  
6174  
6175  /**
6176   * Internal dependencies
6177   */
6178  
6179  
6180  
6181  
6182  
6183  
6184  var editor_Editor =
6185  /*#__PURE__*/
6186  function (_Component) {
6187    Object(inherits["a" /* default */])(Editor, _Component);
6188  
6189    function Editor() {
6190      var _this;
6191  
6192      Object(classCallCheck["a" /* default */])(this, Editor);
6193  
6194      _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(Editor).apply(this, arguments));
6195      _this.getEditorSettings = memize_default()(_this.getEditorSettings, {
6196        maxSize: 1
6197      });
6198      return _this;
6199    }
6200  
6201    Object(createClass["a" /* default */])(Editor, [{
6202      key: "getEditorSettings",
6203      value: function getEditorSettings(settings, hasFixedToolbar, showInserterHelpPanel, focusMode, hiddenBlockTypes, blockTypes, preferredStyleVariations, __experimentalLocalAutosaveInterval, updatePreferredStyleVariations) {
6204        settings = Object(objectSpread["a" /* default */])({}, settings, {
6205          __experimentalPreferredStyleVariations: {
6206            value: preferredStyleVariations,
6207            onChange: updatePreferredStyleVariations
6208          },
6209          hasFixedToolbar: hasFixedToolbar,
6210          focusMode: focusMode,
6211          showInserterHelpPanel: showInserterHelpPanel,
6212          __experimentalLocalAutosaveInterval: __experimentalLocalAutosaveInterval
6213        }); // Omit hidden block types if exists and non-empty.
6214  
6215        if (Object(external_this_lodash_["size"])(hiddenBlockTypes) > 0) {
6216          // Defer to passed setting for `allowedBlockTypes` if provided as
6217          // anything other than `true` (where `true` is equivalent to allow
6218          // all block types).
6219          var defaultAllowedBlockTypes = true === settings.allowedBlockTypes ? Object(external_this_lodash_["map"])(blockTypes, 'name') : settings.allowedBlockTypes || [];
6220          settings.allowedBlockTypes = external_this_lodash_["without"].apply(void 0, [defaultAllowedBlockTypes].concat(Object(toConsumableArray["a" /* default */])(hiddenBlockTypes)));
6221        }
6222  
6223        return settings;
6224      }
6225    }, {
6226      key: "render",
6227      value: function render() {
6228        var _this$props = this.props,
6229            settings = _this$props.settings,
6230            hasFixedToolbar = _this$props.hasFixedToolbar,
6231            focusMode = _this$props.focusMode,
6232            post = _this$props.post,
6233            postId = _this$props.postId,
6234            initialEdits = _this$props.initialEdits,
6235            onError = _this$props.onError,
6236            hiddenBlockTypes = _this$props.hiddenBlockTypes,
6237            blockTypes = _this$props.blockTypes,
6238            preferredStyleVariations = _this$props.preferredStyleVariations,
6239            __experimentalLocalAutosaveInterval = _this$props.__experimentalLocalAutosaveInterval,
6240            showInserterHelpPanel = _this$props.showInserterHelpPanel,
6241            updatePreferredStyleVariations = _this$props.updatePreferredStyleVariations,
6242            props = Object(objectWithoutProperties["a" /* default */])(_this$props, ["settings", "hasFixedToolbar", "focusMode", "post", "postId", "initialEdits", "onError", "hiddenBlockTypes", "blockTypes", "preferredStyleVariations", "__experimentalLocalAutosaveInterval", "showInserterHelpPanel", "updatePreferredStyleVariations"]);
6243  
6244        if (!post) {
6245          return null;
6246        }
6247  
6248        var editorSettings = this.getEditorSettings(settings, hasFixedToolbar, showInserterHelpPanel, focusMode, hiddenBlockTypes, blockTypes, preferredStyleVariations, __experimentalLocalAutosaveInterval, updatePreferredStyleVariations);
6249        return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["StrictMode"], null, Object(external_this_wp_element_["createElement"])(edit_post_settings.Provider, {
6250          value: settings
6251        }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SlotFillProvider"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropZoneProvider"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["EditorProvider"], Object(esm_extends["a" /* default */])({
6252          settings: editorSettings,
6253          post: post,
6254          initialEdits: initialEdits,
6255          useSubRegistry: false
6256        }, props), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["ErrorBoundary"], {
6257          onError: onError
6258        }, Object(external_this_wp_element_["createElement"])(editor_initialization, {
6259          postId: postId
6260        }), Object(external_this_wp_element_["createElement"])(layout, null), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], {
6261          shortcuts: prevent_event_discovery
6262        })), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostLockedModal"], null))))));
6263      }
6264    }]);
6265  
6266    return Editor;
6267  }(external_this_wp_element_["Component"]);
6268  
6269  /* harmony default export */ var editor = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref) {
6270    var postId = _ref.postId,
6271        postType = _ref.postType;
6272  
6273    var _select = select('core/edit-post'),
6274        isFeatureActive = _select.isFeatureActive,
6275        getPreference = _select.getPreference;
6276  
6277    var _select2 = select('core'),
6278        getEntityRecord = _select2.getEntityRecord;
6279  
6280    var _select3 = select('core/blocks'),
6281        getBlockTypes = _select3.getBlockTypes;
6282  
6283    return {
6284      showInserterHelpPanel: isFeatureActive('showInserterHelpPanel'),
6285      hasFixedToolbar: isFeatureActive('fixedToolbar'),
6286      focusMode: isFeatureActive('focusMode'),
6287      post: getEntityRecord('postType', postType, postId),
6288      preferredStyleVariations: getPreference('preferredStyleVariations'),
6289      hiddenBlockTypes: getPreference('hiddenBlockTypes'),
6290      blockTypes: getBlockTypes(),
6291      __experimentalLocalAutosaveInterval: getPreference('localAutosaveInterval')
6292    };
6293  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
6294    var _dispatch = dispatch('core/edit-post'),
6295        updatePreferredStyleVariations = _dispatch.updatePreferredStyleVariations;
6296  
6297    return {
6298      updatePreferredStyleVariations: updatePreferredStyleVariations
6299    };
6300  })])(editor_Editor));
6301  
6302  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js
6303  
6304  
6305  /**
6306   * External dependencies
6307   */
6308  
6309  /**
6310   * WordPress dependencies
6311   */
6312  
6313  
6314  
6315  /**
6316   * Internal dependencies
6317   */
6318  
6319  
6320  
6321  var plugin_block_settings_menu_item_isEverySelectedBlockAllowed = function isEverySelectedBlockAllowed(selected, allowed) {
6322    return Object(external_this_lodash_["difference"])(selected, allowed).length === 0;
6323  };
6324  /**
6325   * Plugins may want to add an item to the menu either for every block
6326   * or only for the specific ones provided in the `allowedBlocks` component property.
6327   *
6328   * If there are multiple blocks selected the item will be rendered if every block
6329   * is of one allowed type (not necessarily the same).
6330   *
6331   * @param {string[]} selectedBlocks Array containing the names of the blocks selected
6332   * @param {string[]} allowedBlocks Array containing the names of the blocks allowed
6333   * @return {boolean} Whether the item will be rendered or not.
6334   */
6335  
6336  
6337  var shouldRenderItem = function shouldRenderItem(selectedBlocks, allowedBlocks) {
6338    return !Array.isArray(allowedBlocks) || plugin_block_settings_menu_item_isEverySelectedBlockAllowed(selectedBlocks, allowedBlocks);
6339  };
6340  /**
6341   * Renders a new item in the block settings menu.
6342   *
6343   * @param {Object} props Component props.
6344   * @param {Array} [props.allowedBlocks] An array containing a list of block names for which the item should be shown. If not present, it'll be rendered for any block. If multiple blocks are selected, it'll be shown if and only if all of them are in the whitelist.
6345   * @param {WPBlockTypeIconRender} [props.icon] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element.
6346   * @param {string} props.label The menu item text.
6347   * @param {Function} props.onClick Callback function to be executed when the user click the menu item.
6348   *
6349   * @example <caption>ES5</caption>
6350   * ```js
6351   * // Using ES5 syntax
6352   * var __ = wp.i18n.__;
6353   * var PluginBlockSettingsMenuItem = wp.editPost.PluginBlockSettingsMenuItem;
6354   *
6355   * function doOnClick(){
6356   *     // To be called when the user clicks the menu item.
6357   * }
6358   *
6359   * function MyPluginBlockSettingsMenuItem() {
6360   *     return wp.element.createElement(
6361   *         PluginBlockSettingsMenuItem,
6362   *         {
6363   *             allowedBlocks: [ 'core/paragraph' ],
6364   *             icon: 'dashicon-name',
6365   *             label: __( 'Menu item text' ),
6366   *             onClick: doOnClick,
6367   *         }
6368   *     );
6369   * }
6370   * ```
6371   *
6372   * @example <caption>ESNext</caption>
6373   * ```jsx
6374   * // Using ESNext syntax
6375   * import { __ } from wp.i18n;
6376   * import { PluginBlockSettingsMenuItem } from wp.editPost;
6377   *
6378   * const doOnClick = ( ) => {
6379   *     // To be called when the user clicks the menu item.
6380   * };
6381   *
6382   * const MyPluginBlockSettingsMenuItem = () => (
6383   *     <PluginBlockSettingsMenuItem
6384   *         allowedBlocks=[ 'core/paragraph' ]
6385   *         icon='dashicon-name'
6386   *         label=__( 'Menu item text' )
6387   *         onClick={ doOnClick } />
6388   * );
6389   * ```
6390   *
6391   * @return {WPComponent} The component to be rendered.
6392   */
6393  
6394  
6395  var plugin_block_settings_menu_item_PluginBlockSettingsMenuItem = function PluginBlockSettingsMenuItem(_ref) {
6396    var allowedBlocks = _ref.allowedBlocks,
6397        icon = _ref.icon,
6398        label = _ref.label,
6399        onClick = _ref.onClick,
6400        small = _ref.small,
6401        role = _ref.role;
6402    return Object(external_this_wp_element_["createElement"])(plugin_block_settings_menu_group, null, function (_ref2) {
6403      var selectedBlocks = _ref2.selectedBlocks,
6404          onClose = _ref2.onClose;
6405  
6406      if (!shouldRenderItem(selectedBlocks, allowedBlocks)) {
6407        return null;
6408      }
6409  
6410      return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], {
6411        className: "editor-block-settings-menu__control block-editor-block-settings-menu__control",
6412        onClick: Object(external_this_wp_compose_["compose"])(onClick, onClose),
6413        icon: icon || 'admin-plugins',
6414        label: small ? label : undefined,
6415        role: role
6416      }, !small && label);
6417    });
6418  };
6419  
6420  /* harmony default export */ var plugin_block_settings_menu_item = (plugin_block_settings_menu_item_PluginBlockSettingsMenuItem);
6421  
6422  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/plugin-more-menu-item/index.js
6423  
6424  
6425  
6426  
6427  /**
6428   * External dependencies
6429   */
6430  
6431  /**
6432   * WordPress dependencies
6433   */
6434  
6435  
6436  
6437  
6438  /**
6439   * Internal dependencies
6440   */
6441  
6442  
6443  
6444  var plugin_more_menu_item_PluginMoreMenuItem = function PluginMoreMenuItem(_ref) {
6445    var _ref$onClick = _ref.onClick,
6446        onClick = _ref$onClick === void 0 ? external_this_lodash_["noop"] : _ref$onClick,
6447        props = Object(objectWithoutProperties["a" /* default */])(_ref, ["onClick"]);
6448  
6449    return Object(external_this_wp_element_["createElement"])(plugins_more_menu_group, null, function (fillProps) {
6450      return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], Object(esm_extends["a" /* default */])({}, props, {
6451        onClick: Object(external_this_wp_compose_["compose"])(onClick, fillProps.onClose)
6452      }));
6453    });
6454  };
6455  /**
6456   * Renders a menu item in `Plugins` group in `More Menu` drop down, and can be used to as a button or link depending on the props provided.
6457   * The text within the component appears as the menu item label.
6458   *
6459   * @param {Object} props Component properties.
6460   * @param {string} [props.href] When `href` is provided then the menu item is represented as an anchor rather than button. It corresponds to the `href` attribute of the anchor.
6461   * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered to the left of the menu item label.
6462   * @param {Function} [props.onClick=noop] The callback function to be executed when the user clicks the menu item.
6463   * @param {...*} [props.other] Any additional props are passed through to the underlying [MenuItem](/packages/components/src/menu-item/README.md) component.
6464   *
6465   * @example <caption>ES5</caption>
6466   * ```js
6467   * // Using ES5 syntax
6468   * var __ = wp.i18n.__;
6469   * var PluginMoreMenuItem = wp.editPost.PluginMoreMenuItem;
6470   *
6471   * function onButtonClick() {
6472   *     alert( 'Button clicked.' );
6473   * }
6474   *
6475   * function MyButtonMoreMenuItem() {
6476   *     return wp.element.createElement(
6477   *         PluginMoreMenuItem,
6478   *         {
6479   *             icon: 'smiley',
6480   *             onClick: onButtonClick
6481   *         },
6482   *         __( 'My button title' )
6483   *     )
6484   * }
6485   * ```
6486   *
6487   * @example <caption>ESNext</caption>
6488   * ```jsx
6489   * // Using ESNext syntax
6490   * const { __ } = wp.i18n;
6491   * const { PluginMoreMenuItem } = wp.editPost;
6492   *
6493   * function onButtonClick() {
6494   *     alert( 'Button clicked.' );
6495   * }
6496   *
6497   * const MyButtonMoreMenuItem = () => (
6498   *     <PluginMoreMenuItem
6499   *         icon="smiley"
6500   *         onClick={ onButtonClick }
6501   *     >
6502   *         { __( 'My button title' ) }
6503   *     </PluginMoreMenuItem>
6504   * );
6505   * ```
6506   *
6507   * @return {WPComponent} The component to be rendered.
6508   */
6509  
6510  
6511  /* harmony default export */ var plugin_more_menu_item = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_plugins_["withPluginContext"])(function (context, ownProps) {
6512    return {
6513      icon: ownProps.icon || context.icon
6514    };
6515  }))(plugin_more_menu_item_PluginMoreMenuItem));
6516  
6517  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-sidebar/index.js
6518  
6519  
6520  /**
6521   * WordPress dependencies
6522   */
6523  
6524  
6525  
6526  
6527  
6528  /**
6529   * Internal dependencies
6530   */
6531  
6532  
6533  
6534  
6535  
6536  function PluginSidebar(props) {
6537    var children = props.children,
6538        className = props.className,
6539        icon = props.icon,
6540        isActive = props.isActive,
6541        _props$isPinnable = props.isPinnable,
6542        isPinnable = _props$isPinnable === void 0 ? true : _props$isPinnable,
6543        isPinned = props.isPinned,
6544        sidebarName = props.sidebarName,
6545        title = props.title,
6546        togglePin = props.togglePin,
6547        toggleSidebar = props.toggleSidebar;
6548    return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, isPinnable && Object(external_this_wp_element_["createElement"])(pinned_plugins, null, isPinned && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
6549      icon: icon,
6550      label: title,
6551      onClick: toggleSidebar,
6552      isToggled: isActive,
6553      "aria-expanded": isActive
6554    })), Object(external_this_wp_element_["createElement"])(components_sidebar, {
6555      name: sidebarName
6556    }, Object(external_this_wp_element_["createElement"])(sidebar_header, {
6557      closeLabel: Object(external_this_wp_i18n_["__"])('Close plugin')
6558    }, Object(external_this_wp_element_["createElement"])("strong", null, title), isPinnable && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
6559      icon: isPinned ? 'star-filled' : 'star-empty',
6560      label: isPinned ? Object(external_this_wp_i18n_["__"])('Unpin from toolbar') : Object(external_this_wp_i18n_["__"])('Pin to toolbar'),
6561      onClick: togglePin,
6562      isToggled: isPinned,
6563      "aria-expanded": isPinned
6564    })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Panel"], {
6565      className: className
6566    }, children)));
6567  }
6568  /**
6569   * Renders a sidebar when activated. The contents within the `PluginSidebar` will appear as content within the sidebar.
6570   * If you wish to display the sidebar, you can with use the `PluginSidebarMoreMenuItem` component or the `wp.data.dispatch` API:
6571   *
6572   * ```js
6573   * wp.data.dispatch( 'core/edit-post' ).openGeneralSidebar( 'plugin-name/sidebar-name' );
6574   * ```
6575   *
6576   * @see PluginSidebarMoreMenuItem
6577   *
6578   * @param {Object} props Element props.
6579   * @param {string} props.name A string identifying the sidebar. Must be unique for every sidebar registered within the scope of your plugin.
6580   * @param {string} [props.className] An optional class name added to the sidebar body.
6581   * @param {string} props.title Title displayed at the top of the sidebar.
6582   * @param {boolean} [props.isPinnable=true] Whether to allow to pin sidebar to toolbar.
6583   * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
6584   *
6585   * @example <caption>ES5</caption>
6586   * ```js
6587   * // Using ES5 syntax
6588   * var __ = wp.i18n.__;
6589   * var el = wp.element.createElement;
6590   * var PanelBody = wp.components.PanelBody;
6591   * var PluginSidebar = wp.editPost.PluginSidebar;
6592   *
6593   * function MyPluginSidebar() {
6594   *     return el(
6595   *             PluginSidebar,
6596   *             {
6597   *                 name: 'my-sidebar',
6598   *                 title: 'My sidebar title',
6599   *                 icon: 'smiley',
6600   *             },
6601   *             el(
6602   *                 PanelBody,
6603   *                 {},
6604   *                 __( 'My sidebar content' )
6605   *             )
6606   *     );
6607   * }
6608   * ```
6609   *
6610   * @example <caption>ESNext</caption>
6611   * ```jsx
6612   * // Using ESNext syntax
6613   * const { __ } = wp.i18n;
6614   * const { PanelBody } = wp.components;
6615   * const { PluginSidebar } = wp.editPost;
6616   *
6617   * const MyPluginSidebar = () => (
6618   *     <PluginSidebar
6619   *         name="my-sidebar"
6620   *         title="My sidebar title"
6621   *         icon="smiley"
6622   *     >
6623   *         <PanelBody>
6624   *             { __( 'My sidebar content' ) }
6625   *         </PanelBody>
6626   *     </PluginSidebar>
6627   * );
6628   * ```
6629   *
6630   * @return {WPComponent} Plugin sidebar component.
6631   */
6632  
6633  
6634  /* harmony default export */ var plugin_sidebar = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_plugins_["withPluginContext"])(function (context, ownProps) {
6635    return {
6636      icon: ownProps.icon || context.icon,
6637      sidebarName: "".concat(context.name, "/").concat(ownProps.name)
6638    };
6639  }), Object(external_this_wp_data_["withSelect"])(function (select, _ref) {
6640    var sidebarName = _ref.sidebarName;
6641  
6642    var _select = select('core/edit-post'),
6643        getActiveGeneralSidebarName = _select.getActiveGeneralSidebarName,
6644        isPluginItemPinned = _select.isPluginItemPinned;
6645  
6646    return {
6647      isActive: getActiveGeneralSidebarName() === sidebarName,
6648      isPinned: isPluginItemPinned(sidebarName)
6649    };
6650  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) {
6651    var isActive = _ref2.isActive,
6652        sidebarName = _ref2.sidebarName;
6653  
6654    var _dispatch = dispatch('core/edit-post'),
6655        closeGeneralSidebar = _dispatch.closeGeneralSidebar,
6656        openGeneralSidebar = _dispatch.openGeneralSidebar,
6657        togglePinnedPluginItem = _dispatch.togglePinnedPluginItem;
6658  
6659    return {
6660      togglePin: function togglePin() {
6661        togglePinnedPluginItem(sidebarName);
6662      },
6663      toggleSidebar: function toggleSidebar() {
6664        if (isActive) {
6665          closeGeneralSidebar();
6666        } else {
6667          openGeneralSidebar(sidebarName);
6668        }
6669      }
6670    };
6671  }))(PluginSidebar));
6672  
6673  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/plugin-sidebar-more-menu-item/index.js
6674  
6675  
6676  /**
6677   * WordPress dependencies
6678   */
6679  
6680  
6681  
6682  /**
6683   * Internal dependencies
6684   */
6685  
6686  
6687  
6688  var plugin_sidebar_more_menu_item_PluginSidebarMoreMenuItem = function PluginSidebarMoreMenuItem(_ref) {
6689    var children = _ref.children,
6690        icon = _ref.icon,
6691        isSelected = _ref.isSelected,
6692        onClick = _ref.onClick;
6693    return Object(external_this_wp_element_["createElement"])(plugin_more_menu_item, {
6694      icon: isSelected ? 'yes' : icon,
6695      isSelected: isSelected,
6696      role: "menuitemcheckbox",
6697      onClick: onClick
6698    }, children);
6699  };
6700  /**
6701   * Renders a menu item in `Plugins` group in `More Menu` drop down,
6702   * and can be used to activate the corresponding `PluginSidebar` component.
6703   * The text within the component appears as the menu item label.
6704   *
6705   * @param {Object} props Component props.
6706   * @param {string} props.target A string identifying the target sidebar you wish to be activated by this menu item. Must be the same as the `name` prop you have given to that sidebar.
6707   * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered to the left of the menu item label.
6708   *
6709   * @example <caption>ES5</caption>
6710   * ```js
6711   * // Using ES5 syntax
6712   * var __ = wp.i18n.__;
6713   * var PluginSidebarMoreMenuItem = wp.editPost.PluginSidebarMoreMenuItem;
6714   *
6715   * function MySidebarMoreMenuItem() {
6716   *     return wp.element.createElement(
6717   *         PluginSidebarMoreMenuItem,
6718   *         {
6719   *             target: 'my-sidebar',
6720   *             icon: 'smiley',
6721   *         },
6722   *         __( 'My sidebar title' )
6723   *     )
6724   * }
6725   * ```
6726   *
6727   * @example <caption>ESNext</caption>
6728   * ```jsx
6729   * // Using ESNext syntax
6730   * const { __ } = wp.i18n;
6731   * const { PluginSidebarMoreMenuItem } = wp.editPost;
6732   *
6733   * const MySidebarMoreMenuItem = () => (
6734   *     <PluginSidebarMoreMenuItem
6735   *         target="my-sidebar"
6736   *         icon="smiley"
6737   *     >
6738   *         { __( 'My sidebar title' ) }
6739   *     </PluginSidebarMoreMenuItem>
6740   * );
6741   * ```
6742   *
6743   * @return {WPComponent} The component to be rendered.
6744   */
6745  
6746  
6747  /* harmony default export */ var plugin_sidebar_more_menu_item = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_plugins_["withPluginContext"])(function (context, ownProps) {
6748    return {
6749      icon: ownProps.icon || context.icon,
6750      sidebarName: "".concat(context.name, "/").concat(ownProps.target)
6751    };
6752  }), Object(external_this_wp_data_["withSelect"])(function (select, _ref2) {
6753    var sidebarName = _ref2.sidebarName;
6754  
6755    var _select = select('core/edit-post'),
6756        getActiveGeneralSidebarName = _select.getActiveGeneralSidebarName;
6757  
6758    return {
6759      isSelected: getActiveGeneralSidebarName() === sidebarName
6760    };
6761  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) {
6762    var isSelected = _ref3.isSelected,
6763        sidebarName = _ref3.sidebarName;
6764  
6765    var _dispatch = dispatch('core/edit-post'),
6766        closeGeneralSidebar = _dispatch.closeGeneralSidebar,
6767        openGeneralSidebar = _dispatch.openGeneralSidebar;
6768  
6769    var onClick = isSelected ? closeGeneralSidebar : function () {
6770      return openGeneralSidebar(sidebarName);
6771    };
6772    return {
6773      onClick: onClick
6774    };
6775  }))(plugin_sidebar_more_menu_item_PluginSidebarMoreMenuItem));
6776  
6777  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/index.js
6778  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reinitializeEditor", function() { return reinitializeEditor; });
6779  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeEditor", function() { return initializeEditor; });
6780  /* concated harmony reexport PluginBlockSettingsMenuItem */__webpack_require__.d(__webpack_exports__, "PluginBlockSettingsMenuItem", function() { return plugin_block_settings_menu_item; });
6781  /* concated harmony reexport PluginDocumentSettingPanel */__webpack_require__.d(__webpack_exports__, "PluginDocumentSettingPanel", function() { return plugin_document_setting_panel; });
6782  /* concated harmony reexport PluginMoreMenuItem */__webpack_require__.d(__webpack_exports__, "PluginMoreMenuItem", function() { return plugin_more_menu_item; });
6783  /* concated harmony reexport PluginPostPublishPanel */__webpack_require__.d(__webpack_exports__, "PluginPostPublishPanel", function() { return plugin_post_publish_panel; });
6784  /* concated harmony reexport PluginPostStatusInfo */__webpack_require__.d(__webpack_exports__, "PluginPostStatusInfo", function() { return plugin_post_status_info; });
6785  /* concated harmony reexport PluginPrePublishPanel */__webpack_require__.d(__webpack_exports__, "PluginPrePublishPanel", function() { return plugin_pre_publish_panel; });
6786  /* concated harmony reexport PluginSidebar */__webpack_require__.d(__webpack_exports__, "PluginSidebar", function() { return plugin_sidebar; });
6787  /* concated harmony reexport PluginSidebarMoreMenuItem */__webpack_require__.d(__webpack_exports__, "PluginSidebarMoreMenuItem", function() { return plugin_sidebar_more_menu_item; });
6788  
6789  
6790  /**
6791   * WordPress dependencies
6792   */
6793  
6794  
6795  
6796  
6797  
6798  
6799  
6800  
6801  /**
6802   * Internal dependencies
6803   */
6804  
6805  
6806  
6807  
6808  
6809  /**
6810   * Reinitializes the editor after the user chooses to reboot the editor after
6811   * an unhandled error occurs, replacing previously mounted editor element using
6812   * an initial state from prior to the crash.
6813   *
6814   * @param {Object}  postType     Post type of the post to edit.
6815   * @param {Object}  postId       ID of the post to edit.
6816   * @param {Element} target       DOM node in which editor is rendered.
6817   * @param {?Object} settings     Editor settings object.
6818   * @param {Object}  initialEdits Programmatic edits to apply initially, to be
6819   *                               considered as non-user-initiated (bypass for
6820   *                               unsaved changes prompt).
6821   */
6822  
6823  function reinitializeEditor(postType, postId, target, settings, initialEdits) {
6824    Object(external_this_wp_element_["unmountComponentAtNode"])(target);
6825    var reboot = reinitializeEditor.bind(null, postType, postId, target, settings, initialEdits);
6826    Object(external_this_wp_element_["render"])(Object(external_this_wp_element_["createElement"])(editor, {
6827      settings: settings,
6828      onError: reboot,
6829      postId: postId,
6830      postType: postType,
6831      initialEdits: initialEdits,
6832      recovery: true
6833    }), target);
6834  }
6835  /**
6836   * Initializes and returns an instance of Editor.
6837   *
6838   * The return value of this function is not necessary if we change where we
6839   * call initializeEditor(). This is due to metaBox timing.
6840   *
6841   * @param {string}  id           Unique identifier for editor instance.
6842   * @param {Object}  postType     Post type of the post to edit.
6843   * @param {Object}  postId       ID of the post to edit.
6844   * @param {?Object} settings     Editor settings object.
6845   * @param {Object}  initialEdits Programmatic edits to apply initially, to be
6846   *                               considered as non-user-initiated (bypass for
6847   *                               unsaved changes prompt).
6848   */
6849  
6850  function initializeEditor(id, postType, postId, settings, initialEdits) {
6851    var target = document.getElementById(id);
6852    var reboot = reinitializeEditor.bind(null, postType, postId, target, settings, initialEdits);
6853    Object(external_this_wp_blockLibrary_["registerCoreBlocks"])();
6854  
6855    if (false) {} // Show a console log warning if the browser is not in Standards rendering mode.
6856  
6857  
6858    var documentMode = document.compatMode === 'CSS1Compat' ? 'Standards' : 'Quirks';
6859  
6860    if (documentMode !== 'Standards') {
6861      // eslint-disable-next-line no-console
6862      console.warn("Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening <!DOCTYPE html>. Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins.");
6863    } // This is a temporary fix for a couple of issues specific to Webkit on iOS.
6864    // Without this hack the browser scrolls the mobile toolbar off-screen.
6865    // Once supported in Safari we can replace this in favor of preventScroll.
6866    // For details see issue #18632 and PR #18686
6867    // Specifically, we scroll `edit-post-editor-regions__body` to enable a fixed top toolbar.
6868    // But Mobile Safari forces the `html` element to scroll upwards, hiding the toolbar.
6869  
6870  
6871    var isIphone = window.navigator.userAgent.indexOf('iPhone') !== -1;
6872  
6873    if (isIphone) {
6874      window.addEventListener('scroll', function (event) {
6875        var editorScrollContainer = document.getElementsByClassName('edit-post-editor-regions__body')[0];
6876  
6877        if (event.target === document) {
6878          // Scroll element into view by scrolling the editor container by the same amount
6879          // that Mobile Safari tried to scroll the html element upwards.
6880          if (window.scrollY > 100) {
6881            editorScrollContainer.scrollTop = editorScrollContainer.scrollTop + window.scrollY;
6882          } //Undo unwanted scroll on html element
6883  
6884  
6885          window.scrollTo(0, 0);
6886        }
6887      });
6888    }
6889  
6890    Object(external_this_wp_element_["render"])(Object(external_this_wp_element_["createElement"])(editor, {
6891      settings: settings,
6892      onError: reboot,
6893      postId: postId,
6894      postType: postType,
6895      initialEdits: initialEdits
6896    }), target);
6897  }
6898  
6899  
6900  
6901  
6902  
6903  
6904  
6905  
6906  
6907  
6908  /***/ }),
6909  
6910  /***/ 37:
6911  /***/ (function(module, exports) {
6912  
6913  (function() { module.exports = this["wp"]["apiFetch"]; }());
6914  
6915  /***/ }),
6916  
6917  /***/ 38:
6918  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6919  
6920  "use strict";
6921  
6922  
6923  var LEAF_KEY, hasWeakMap;
6924  
6925  /**
6926   * Arbitrary value used as key for referencing cache object in WeakMap tree.
6927   *
6928   * @type {Object}
6929   */
6930  LEAF_KEY = {};
6931  
6932  /**
6933   * Whether environment supports WeakMap.
6934   *
6935   * @type {boolean}
6936   */
6937  hasWeakMap = typeof WeakMap !== 'undefined';
6938  
6939  /**
6940   * Returns the first argument as the sole entry in an array.
6941   *
6942   * @param {*} value Value to return.
6943   *
6944   * @return {Array} Value returned as entry in array.
6945   */
6946  function arrayOf( value ) {
6947      return [ value ];
6948  }
6949  
6950  /**
6951   * Returns true if the value passed is object-like, or false otherwise. A value
6952   * is object-like if it can support property assignment, e.g. object or array.
6953   *
6954   * @param {*} value Value to test.
6955   *
6956   * @return {boolean} Whether value is object-like.
6957   */
6958  function isObjectLike( value ) {
6959      return !! value && 'object' === typeof value;
6960  }
6961  
6962  /**
6963   * Creates and returns a new cache object.
6964   *
6965   * @return {Object} Cache object.
6966   */
6967  function createCache() {
6968      var cache = {
6969          clear: function() {
6970              cache.head = null;
6971          },
6972      };
6973  
6974      return cache;
6975  }
6976  
6977  /**
6978   * Returns true if entries within the two arrays are strictly equal by
6979   * reference from a starting index.
6980   *
6981   * @param {Array}  a         First array.
6982   * @param {Array}  b         Second array.
6983   * @param {number} fromIndex Index from which to start comparison.
6984   *
6985   * @return {boolean} Whether arrays are shallowly equal.
6986   */
6987  function isShallowEqual( a, b, fromIndex ) {
6988      var i;
6989  
6990      if ( a.length !== b.length ) {
6991          return false;
6992      }
6993  
6994      for ( i = fromIndex; i < a.length; i++ ) {
6995          if ( a[ i ] !== b[ i ] ) {
6996              return false;
6997          }
6998      }
6999  
7000      return true;
7001  }
7002  
7003  /**
7004   * Returns a memoized selector function. The getDependants function argument is
7005   * called before the memoized selector and is expected to return an immutable
7006   * reference or array of references on which the selector depends for computing
7007   * its own return value. The memoize cache is preserved only as long as those
7008   * dependant references remain the same. If getDependants returns a different
7009   * reference(s), the cache is cleared and the selector value regenerated.
7010   *
7011   * @param {Function} selector      Selector function.
7012   * @param {Function} getDependants Dependant getter returning an immutable
7013   *                                 reference or array of reference used in
7014   *                                 cache bust consideration.
7015   *
7016   * @return {Function} Memoized selector.
7017   */
7018  /* harmony default export */ __webpack_exports__["a"] = (function( selector, getDependants ) {
7019      var rootCache, getCache;
7020  
7021      // Use object source as dependant if getter not provided
7022      if ( ! getDependants ) {
7023          getDependants = arrayOf;
7024      }
7025  
7026      /**
7027       * Returns the root cache. If WeakMap is supported, this is assigned to the
7028       * root WeakMap cache set, otherwise it is a shared instance of the default
7029       * cache object.
7030       *
7031       * @return {(WeakMap|Object)} Root cache object.
7032       */
7033  	function getRootCache() {
7034          return rootCache;
7035      }
7036  
7037      /**
7038       * Returns the cache for a given dependants array. When possible, a WeakMap
7039       * will be used to create a unique cache for each set of dependants. This
7040       * is feasible due to the nature of WeakMap in allowing garbage collection
7041       * to occur on entries where the key object is no longer referenced. Since
7042       * WeakMap requires the key to be an object, this is only possible when the
7043       * dependant is object-like. The root cache is created as a hierarchy where
7044       * each top-level key is the first entry in a dependants set, the value a
7045       * WeakMap where each key is the next dependant, and so on. This continues
7046       * so long as the dependants are object-like. If no dependants are object-
7047       * like, then the cache is shared across all invocations.
7048       *
7049       * @see isObjectLike
7050       *
7051       * @param {Array} dependants Selector dependants.
7052       *
7053       * @return {Object} Cache object.
7054       */
7055  	function getWeakMapCache( dependants ) {
7056          var caches = rootCache,
7057              isUniqueByDependants = true,
7058              i, dependant, map, cache;
7059  
7060          for ( i = 0; i < dependants.length; i++ ) {
7061              dependant = dependants[ i ];
7062  
7063              // Can only compose WeakMap from object-like key.
7064              if ( ! isObjectLike( dependant ) ) {
7065                  isUniqueByDependants = false;
7066                  break;
7067              }
7068  
7069              // Does current segment of cache already have a WeakMap?
7070              if ( caches.has( dependant ) ) {
7071                  // Traverse into nested WeakMap.
7072                  caches = caches.get( dependant );
7073              } else {
7074                  // Create, set, and traverse into a new one.
7075                  map = new WeakMap();
7076                  caches.set( dependant, map );
7077                  caches = map;
7078              }
7079          }
7080  
7081          // We use an arbitrary (but consistent) object as key for the last item
7082          // in the WeakMap to serve as our running cache.
7083          if ( ! caches.has( LEAF_KEY ) ) {
7084              cache = createCache();
7085              cache.isUniqueByDependants = isUniqueByDependants;
7086              caches.set( LEAF_KEY, cache );
7087          }
7088  
7089          return caches.get( LEAF_KEY );
7090      }
7091  
7092      // Assign cache handler by availability of WeakMap
7093      getCache = hasWeakMap ? getWeakMapCache : getRootCache;
7094  
7095      /**
7096       * Resets root memoization cache.
7097       */
7098  	function clear() {
7099          rootCache = hasWeakMap ? new WeakMap() : createCache();
7100      }
7101  
7102      // eslint-disable-next-line jsdoc/check-param-names
7103      /**
7104       * The augmented selector call, considering first whether dependants have
7105       * changed before passing it to underlying memoize function.
7106       *
7107       * @param {Object} source    Source object for derivation.
7108       * @param {...*}   extraArgs Additional arguments to pass to selector.
7109       *
7110       * @return {*} Selector result.
7111       */
7112  	function callSelector( /* source, ...extraArgs */ ) {
7113          var len = arguments.length,
7114              cache, node, i, args, dependants;
7115  
7116          // Create copy of arguments (avoid leaking deoptimization).
7117          args = new Array( len );
7118          for ( i = 0; i < len; i++ ) {
7119              args[ i ] = arguments[ i ];
7120          }
7121  
7122          dependants = getDependants.apply( null, args );
7123          cache = getCache( dependants );
7124  
7125          // If not guaranteed uniqueness by dependants (primitive type or lack
7126          // of WeakMap support), shallow compare against last dependants and, if
7127          // references have changed, destroy cache to recalculate result.
7128          if ( ! cache.isUniqueByDependants ) {
7129              if ( cache.lastDependants && ! isShallowEqual( dependants, cache.lastDependants, 0 ) ) {
7130                  cache.clear();
7131              }
7132  
7133              cache.lastDependants = dependants;
7134          }
7135  
7136          node = cache.head;
7137          while ( node ) {
7138              // Check whether node arguments match arguments
7139              if ( ! isShallowEqual( node.args, args, 1 ) ) {
7140                  node = node.next;
7141                  continue;
7142              }
7143  
7144              // At this point we can assume we've found a match
7145  
7146              // Surface matched node to head if not already
7147              if ( node !== cache.head ) {
7148                  // Adjust siblings to point to each other.
7149                  node.prev.next = node.next;
7150                  if ( node.next ) {
7151                      node.next.prev = node.prev;
7152                  }
7153  
7154                  node.next = cache.head;
7155                  node.prev = null;
7156                  cache.head.prev = node;
7157                  cache.head = node;
7158              }
7159  
7160              // Return immediately
7161              return node.val;
7162          }
7163  
7164          // No cached value found. Continue to insertion phase:
7165  
7166          node = {
7167              // Generate the result from original function
7168              val: selector.apply( null, args ),
7169          };
7170  
7171          // Avoid including the source object in the cache.
7172          args[ 0 ] = null;
7173          node.args = args;
7174  
7175          // Don't need to check whether node is already head, since it would
7176          // have been returned above already if it was
7177  
7178          // Shift existing head down list
7179          if ( cache.head ) {
7180              cache.head.prev = node;
7181              node.next = cache.head;
7182          }
7183  
7184          cache.head = node;
7185  
7186          return node.val;
7187      }
7188  
7189      callSelector.getDependants = getDependants;
7190      callSelector.clear = clear;
7191      clear();
7192  
7193      return callSelector;
7194  });
7195  
7196  
7197  /***/ }),
7198  
7199  /***/ 4:
7200  /***/ (function(module, exports) {
7201  
7202  (function() { module.exports = this["wp"]["data"]; }());
7203  
7204  /***/ }),
7205  
7206  /***/ 40:
7207  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7208  
7209  "use strict";
7210  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; });
7211  function _objectWithoutPropertiesLoose(source, excluded) {
7212    if (source == null) return {};
7213    var target = {};
7214    var sourceKeys = Object.keys(source);
7215    var key, i;
7216  
7217    for (i = 0; i < sourceKeys.length; i++) {
7218      key = sourceKeys[i];
7219      if (excluded.indexOf(key) >= 0) continue;
7220      target[key] = source[key];
7221    }
7222  
7223    return target;
7224  }
7225  
7226  /***/ }),
7227  
7228  /***/ 42:
7229  /***/ (function(module, exports, __webpack_require__) {
7230  
7231  module.exports = function memize( fn, options ) {
7232      var size = 0,
7233          maxSize, head, tail;
7234  
7235      if ( options && options.maxSize ) {
7236          maxSize = options.maxSize;
7237      }
7238  
7239  	function memoized( /* ...args */ ) {
7240          var node = head,
7241              len = arguments.length,
7242              args, i;
7243  
7244          searchCache: while ( node ) {
7245              // Perform a shallow equality test to confirm that whether the node
7246              // under test is a candidate for the arguments passed. Two arrays
7247              // are shallowly equal if their length matches and each entry is
7248              // strictly equal between the two sets. Avoid abstracting to a
7249              // function which could incur an arguments leaking deoptimization.
7250  
7251              // Check whether node arguments match arguments length
7252              if ( node.args.length !== arguments.length ) {
7253                  node = node.next;
7254                  continue;
7255              }
7256  
7257              // Check whether node arguments match arguments values
7258              for ( i = 0; i < len; i++ ) {
7259                  if ( node.args[ i ] !== arguments[ i ] ) {
7260                      node = node.next;
7261                      continue searchCache;
7262                  }
7263              }
7264  
7265              // At this point we can assume we've found a match
7266  
7267              // Surface matched node to head if not already
7268              if ( node !== head ) {
7269                  // As tail, shift to previous. Must only shift if not also
7270                  // head, since if both head and tail, there is no previous.
7271                  if ( node === tail ) {
7272                      tail = node.prev;
7273                  }
7274  
7275                  // Adjust siblings to point to each other. If node was tail,
7276                  // this also handles new tail's empty `next` assignment.
7277                  node.prev.next = node.next;
7278                  if ( node.next ) {
7279                      node.next.prev = node.prev;
7280                  }
7281  
7282                  node.next = head;
7283                  node.prev = null;
7284                  head.prev = node;
7285                  head = node;
7286              }
7287  
7288              // Return immediately
7289              return node.val;
7290          }
7291  
7292          // No cached value found. Continue to insertion phase:
7293  
7294          // Create a copy of arguments (avoid leaking deoptimization)
7295          args = new Array( len );
7296          for ( i = 0; i < len; i++ ) {
7297              args[ i ] = arguments[ i ];
7298          }
7299  
7300          node = {
7301              args: args,
7302  
7303              // Generate the result from original function
7304              val: fn.apply( null, args )
7305          };
7306  
7307          // Don't need to check whether node is already head, since it would
7308          // have been returned above already if it was
7309  
7310          // Shift existing head down list
7311          if ( head ) {
7312              head.prev = node;
7313              node.next = head;
7314          } else {
7315              // If no head, follows that there's no tail (at initial or reset)
7316              tail = node;
7317          }
7318  
7319          // Trim tail if we're reached max size and are pending cache insertion
7320          if ( size === maxSize ) {
7321              tail = tail.prev;
7322              tail.next = null;
7323          } else {
7324              size++;
7325          }
7326  
7327          head = node;
7328  
7329          return node.val;
7330      }
7331  
7332      memoized.clear = function() {
7333          head = null;
7334          tail = null;
7335          size = 0;
7336      };
7337  
7338      if ( false ) {}
7339  
7340      return memoized;
7341  };
7342  
7343  
7344  /***/ }),
7345  
7346  /***/ 44:
7347  /***/ (function(module, exports) {
7348  
7349  (function() { module.exports = this["wp"]["a11y"]; }());
7350  
7351  /***/ }),
7352  
7353  /***/ 49:
7354  /***/ (function(module, exports) {
7355  
7356  (function() { module.exports = this["wp"]["plugins"]; }());
7357  
7358  /***/ }),
7359  
7360  /***/ 5:
7361  /***/ (function(module, exports) {
7362  
7363  (function() { module.exports = this["wp"]["blockEditor"]; }());
7364  
7365  /***/ }),
7366  
7367  /***/ 50:
7368  /***/ (function(module, exports) {
7369  
7370  (function() { module.exports = this["wp"]["viewport"]; }());
7371  
7372  /***/ }),
7373  
7374  /***/ 6:
7375  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7376  
7377  "use strict";
7378  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; });
7379  function _assertThisInitialized(self) {
7380    if (self === void 0) {
7381      throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
7382    }
7383  
7384    return self;
7385  }
7386  
7387  /***/ }),
7388  
7389  /***/ 62:
7390  /***/ (function(module, exports) {
7391  
7392  (function() { module.exports = this["wp"]["coreData"]; }());
7393  
7394  /***/ }),
7395  
7396  /***/ 7:
7397  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7398  
7399  "use strict";
7400  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; });
7401  /* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
7402  
7403  function _objectSpread(target) {
7404    for (var i = 1; i < arguments.length; i++) {
7405      var source = arguments[i] != null ? arguments[i] : {};
7406      var ownKeys = Object.keys(Object(source));
7407  
7408      if (typeof Object.getOwnPropertySymbols === 'function') {
7409        ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
7410          return Object.getOwnPropertyDescriptor(source, sym).enumerable;
7411        }));
7412      }
7413  
7414      ownKeys.forEach(function (key) {
7415        Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]);
7416      });
7417    }
7418  
7419    return target;
7420  }
7421  
7422  /***/ }),
7423  
7424  /***/ 70:
7425  /***/ (function(module, exports, __webpack_require__) {
7426  
7427  "use strict";
7428  
7429  
7430  function flattenIntoMap( map, effects ) {
7431      var i;
7432      if ( Array.isArray( effects ) ) {
7433          for ( i = 0; i < effects.length; i++ ) {
7434              flattenIntoMap( map, effects[ i ] );
7435          }
7436      } else {
7437          for ( i in effects ) {
7438              map[ i ] = ( map[ i ] || [] ).concat( effects[ i ] );
7439          }
7440      }
7441  }
7442  
7443  function refx( effects ) {
7444      var map = {},
7445          middleware;
7446  
7447      flattenIntoMap( map, effects );
7448  
7449      middleware = function( store ) {
7450          return function( next ) {
7451              return function( action ) {
7452                  var handlers = map[ action.type ],
7453                      result = next( action ),
7454                      i, handlerAction;
7455  
7456                  if ( handlers ) {
7457                      for ( i = 0; i < handlers.length; i++ ) {
7458                          handlerAction = handlers[ i ]( action, store );
7459                          if ( handlerAction ) {
7460                              store.dispatch( handlerAction );
7461                          }
7462                      }
7463                  }
7464  
7465                  return result;
7466              };
7467          };
7468      };
7469  
7470      middleware.effects = map;
7471  
7472      return middleware;
7473  }
7474  
7475  module.exports = refx;
7476  
7477  
7478  /***/ }),
7479  
7480  /***/ 8:
7481  /***/ (function(module, exports) {
7482  
7483  (function() { module.exports = this["wp"]["compose"]; }());
7484  
7485  /***/ }),
7486  
7487  /***/ 9:
7488  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7489  
7490  "use strict";
7491  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; });
7492  function _defineProperty(obj, key, value) {
7493    if (key in obj) {
7494      Object.defineProperty(obj, key, {
7495        value: value,
7496        enumerable: true,
7497        configurable: true,
7498        writable: true
7499      });
7500    } else {
7501      obj[key] = value;
7502    }
7503  
7504    return obj;
7505  }
7506  
7507  /***/ }),
7508  
7509  /***/ 98:
7510  /***/ (function(module, exports) {
7511  
7512  (function() { module.exports = this["wp"]["mediaUtils"]; }());
7513  
7514  /***/ })
7515  
7516  /******/ });