[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

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


Generated: Sun Sep 15 01:00:03 2019 Cross-referenced by PHPXref 0.7.1