[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

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


Generated: Sat Nov 23 20:47:33 2019 Cross-referenced by PHPXref 0.7