[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> block-directory.js (source)

   1  this["wp"] = this["wp"] || {}; this["wp"]["blockDirectory"] =
   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 = 459);
  86  /******/ })
  87  /************************************************************************/
  88  /******/ ({
  89  
  90  /***/ 0:
  91  /***/ (function(module, exports) {
  92  
  93  (function() { module.exports = window["wp"]["element"]; }());
  94  
  95  /***/ }),
  96  
  97  /***/ 1:
  98  /***/ (function(module, exports) {
  99  
 100  (function() { module.exports = window["wp"]["i18n"]; }());
 101  
 102  /***/ }),
 103  
 104  /***/ 11:
 105  /***/ (function(module, exports) {
 106  
 107  (function() { module.exports = window["wp"]["compose"]; }());
 108  
 109  /***/ }),
 110  
 111  /***/ 12:
 112  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 113  
 114  "use strict";
 115  
 116  // EXPORTS
 117  __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _slicedToArray; });
 118  
 119  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
 120  var arrayWithHoles = __webpack_require__(38);
 121  
 122  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
 123  function _iterableToArrayLimit(arr, i) {
 124    var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
 125  
 126    if (_i == null) return;
 127    var _arr = [];
 128    var _n = true;
 129    var _d = false;
 130  
 131    var _s, _e;
 132  
 133    try {
 134      for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
 135        _arr.push(_s.value);
 136  
 137        if (i && _arr.length === i) break;
 138      }
 139    } catch (err) {
 140      _d = true;
 141      _e = err;
 142    } finally {
 143      try {
 144        if (!_n && _i["return"] != null) _i["return"]();
 145      } finally {
 146        if (_d) throw _e;
 147      }
 148    }
 149  
 150    return _arr;
 151  }
 152  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
 153  var unsupportedIterableToArray = __webpack_require__(28);
 154  
 155  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
 156  var nonIterableRest = __webpack_require__(39);
 157  
 158  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
 159  
 160  
 161  
 162  
 163  function _slicedToArray(arr, i) {
 164    return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(unsupportedIterableToArray["a" /* default */])(arr, i) || Object(nonIterableRest["a" /* default */])();
 165  }
 166  
 167  /***/ }),
 168  
 169  /***/ 133:
 170  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 171  
 172  "use strict";
 173  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
 174  /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14);
 175  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
 176  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);
 177  
 178  
 179  
 180  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
 181  
 182  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
 183  
 184  /**
 185   * WordPress dependencies
 186   */
 187  
 188  /** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */
 189  
 190  /**
 191   * Return an SVG icon.
 192   *
 193   * @param {IconProps} props icon is the SVG component to render
 194   *                          size is a number specifiying the icon size in pixels
 195   *                          Other props will be passed to wrapped SVG component
 196   *
 197   * @return {JSX.Element}  Icon component
 198   */
 199  
 200  function Icon(_ref) {
 201    var icon = _ref.icon,
 202        _ref$size = _ref.size,
 203        size = _ref$size === void 0 ? 24 : _ref$size,
 204        props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["icon", "size"]);
 205  
 206    return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(icon, _objectSpread({
 207      width: size,
 208      height: size
 209    }, props));
 210  }
 211  
 212  /* harmony default export */ __webpack_exports__["a"] = (Icon);
 213  
 214  
 215  /***/ }),
 216  
 217  /***/ 14:
 218  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 219  
 220  "use strict";
 221  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
 222  /* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45);
 223  
 224  function _objectWithoutProperties(source, excluded) {
 225    if (source == null) return {};
 226    var target = Object(_objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
 227    var key, i;
 228  
 229    if (Object.getOwnPropertySymbols) {
 230      var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
 231  
 232      for (i = 0; i < sourceSymbolKeys.length; i++) {
 233        key = sourceSymbolKeys[i];
 234        if (excluded.indexOf(key) >= 0) continue;
 235        if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
 236        target[key] = source[key];
 237      }
 238    }
 239  
 240    return target;
 241  }
 242  
 243  /***/ }),
 244  
 245  /***/ 15:
 246  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 247  
 248  "use strict";
 249  
 250  // EXPORTS
 251  __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toConsumableArray; });
 252  
 253  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
 254  var arrayLikeToArray = __webpack_require__(24);
 255  
 256  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
 257  
 258  function _arrayWithoutHoles(arr) {
 259    if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr);
 260  }
 261  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
 262  var iterableToArray = __webpack_require__(42);
 263  
 264  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
 265  var unsupportedIterableToArray = __webpack_require__(28);
 266  
 267  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
 268  function _nonIterableSpread() {
 269    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
 270  }
 271  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
 272  
 273  
 274  
 275  
 276  function _toConsumableArray(arr) {
 277    return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread();
 278  }
 279  
 280  /***/ }),
 281  
 282  /***/ 16:
 283  /***/ (function(module, exports) {
 284  
 285  (function() { module.exports = window["regeneratorRuntime"]; }());
 286  
 287  /***/ }),
 288  
 289  /***/ 2:
 290  /***/ (function(module, exports) {
 291  
 292  (function() { module.exports = window["lodash"]; }());
 293  
 294  /***/ }),
 295  
 296  /***/ 217:
 297  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 298  
 299  "use strict";
 300  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 301  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 302  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
 303  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 304  
 305  
 306  /**
 307   * WordPress dependencies
 308   */
 309  
 310  var blockDefault = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 311    xmlns: "http://www.w3.org/2000/svg",
 312    viewBox: "0 0 24 24"
 313  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 314    d: "M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"
 315  }));
 316  /* harmony default export */ __webpack_exports__["a"] = (blockDefault);
 317  
 318  
 319  /***/ }),
 320  
 321  /***/ 24:
 322  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 323  
 324  "use strict";
 325  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayLikeToArray; });
 326  function _arrayLikeToArray(arr, len) {
 327    if (len == null || len > arr.length) len = arr.length;
 328  
 329    for (var i = 0, arr2 = new Array(len); i < len; i++) {
 330      arr2[i] = arr[i];
 331    }
 332  
 333    return arr2;
 334  }
 335  
 336  /***/ }),
 337  
 338  /***/ 279:
 339  /***/ (function(module, exports) {
 340  
 341  (function() { module.exports = window["wp"]["editPost"]; }());
 342  
 343  /***/ }),
 344  
 345  /***/ 28:
 346  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 347  
 348  "use strict";
 349  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; });
 350  /* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24);
 351  
 352  function _unsupportedIterableToArray(o, minLen) {
 353    if (!o) return;
 354    if (typeof o === "string") return Object(_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
 355    var n = Object.prototype.toString.call(o).slice(8, -1);
 356    if (n === "Object" && o.constructor) n = o.constructor.name;
 357    if (n === "Map" || n === "Set") return Array.from(o);
 358    if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
 359  }
 360  
 361  /***/ }),
 362  
 363  /***/ 3:
 364  /***/ (function(module, exports) {
 365  
 366  (function() { module.exports = window["wp"]["components"]; }());
 367  
 368  /***/ }),
 369  
 370  /***/ 30:
 371  /***/ (function(module, exports) {
 372  
 373  (function() { module.exports = window["wp"]["hooks"]; }());
 374  
 375  /***/ }),
 376  
 377  /***/ 301:
 378  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 379  
 380  "use strict";
 381  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 382  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 383  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
 384  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 385  
 386  
 387  /**
 388   * WordPress dependencies
 389   */
 390  
 391  var starFilled = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 392    xmlns: "http://www.w3.org/2000/svg",
 393    viewBox: "0 0 24 24"
 394  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 395    d: "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"
 396  }));
 397  /* harmony default export */ __webpack_exports__["a"] = (starFilled);
 398  
 399  
 400  /***/ }),
 401  
 402  /***/ 302:
 403  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 404  
 405  "use strict";
 406  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 407  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 408  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
 409  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 410  
 411  
 412  /**
 413   * WordPress dependencies
 414   */
 415  
 416  var starEmpty = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 417    xmlns: "http://www.w3.org/2000/svg",
 418    viewBox: "0 0 24 24"
 419  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 420    fillRule: "evenodd",
 421    d: "M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",
 422    clipRule: "evenodd"
 423  }));
 424  /* harmony default export */ __webpack_exports__["a"] = (starEmpty);
 425  
 426  
 427  /***/ }),
 428  
 429  /***/ 31:
 430  /***/ (function(module, exports) {
 431  
 432  (function() { module.exports = window["wp"]["editor"]; }());
 433  
 434  /***/ }),
 435  
 436  /***/ 37:
 437  /***/ (function(module, exports) {
 438  
 439  (function() { module.exports = window["wp"]["coreData"]; }());
 440  
 441  /***/ }),
 442  
 443  /***/ 38:
 444  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 445  
 446  "use strict";
 447  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; });
 448  function _arrayWithHoles(arr) {
 449    if (Array.isArray(arr)) return arr;
 450  }
 451  
 452  /***/ }),
 453  
 454  /***/ 39:
 455  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 456  
 457  "use strict";
 458  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; });
 459  function _nonIterableRest() {
 460    throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
 461  }
 462  
 463  /***/ }),
 464  
 465  /***/ 4:
 466  /***/ (function(module, exports) {
 467  
 468  (function() { module.exports = window["wp"]["data"]; }());
 469  
 470  /***/ }),
 471  
 472  /***/ 42:
 473  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 474  
 475  "use strict";
 476  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
 477  function _iterableToArray(iter) {
 478    if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
 479  }
 480  
 481  /***/ }),
 482  
 483  /***/ 45:
 484  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 485  
 486  "use strict";
 487  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; });
 488  function _objectWithoutPropertiesLoose(source, excluded) {
 489    if (source == null) return {};
 490    var target = {};
 491    var sourceKeys = Object.keys(source);
 492    var key, i;
 493  
 494    for (i = 0; i < sourceKeys.length; i++) {
 495      key = sourceKeys[i];
 496      if (excluded.indexOf(key) >= 0) continue;
 497      target[key] = source[key];
 498    }
 499  
 500    return target;
 501  }
 502  
 503  /***/ }),
 504  
 505  /***/ 459:
 506  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 507  
 508  "use strict";
 509  // ESM COMPAT FLAG
 510  __webpack_require__.r(__webpack_exports__);
 511  
 512  // EXPORTS
 513  __webpack_require__.d(__webpack_exports__, "store", function() { return /* reexport */ store; });
 514  
 515  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-directory/build-module/store/selectors.js
 516  var selectors_namespaceObject = {};
 517  __webpack_require__.r(selectors_namespaceObject);
 518  __webpack_require__.d(selectors_namespaceObject, "isRequestingDownloadableBlocks", function() { return selectors_isRequestingDownloadableBlocks; });
 519  __webpack_require__.d(selectors_namespaceObject, "getDownloadableBlocks", function() { return selectors_getDownloadableBlocks; });
 520  __webpack_require__.d(selectors_namespaceObject, "getInstalledBlockTypes", function() { return getInstalledBlockTypes; });
 521  __webpack_require__.d(selectors_namespaceObject, "getNewBlockTypes", function() { return getNewBlockTypes; });
 522  __webpack_require__.d(selectors_namespaceObject, "getUnusedBlockTypes", function() { return getUnusedBlockTypes; });
 523  __webpack_require__.d(selectors_namespaceObject, "isInstalling", function() { return selectors_isInstalling; });
 524  __webpack_require__.d(selectors_namespaceObject, "getErrorNotices", function() { return getErrorNotices; });
 525  __webpack_require__.d(selectors_namespaceObject, "getErrorNoticeForBlock", function() { return selectors_getErrorNoticeForBlock; });
 526  
 527  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-directory/build-module/store/actions.js
 528  var actions_namespaceObject = {};
 529  __webpack_require__.r(actions_namespaceObject);
 530  __webpack_require__.d(actions_namespaceObject, "fetchDownloadableBlocks", function() { return fetchDownloadableBlocks; });
 531  __webpack_require__.d(actions_namespaceObject, "receiveDownloadableBlocks", function() { return receiveDownloadableBlocks; });
 532  __webpack_require__.d(actions_namespaceObject, "installBlockType", function() { return actions_installBlockType; });
 533  __webpack_require__.d(actions_namespaceObject, "uninstallBlockType", function() { return actions_uninstallBlockType; });
 534  __webpack_require__.d(actions_namespaceObject, "addInstalledBlockType", function() { return addInstalledBlockType; });
 535  __webpack_require__.d(actions_namespaceObject, "removeInstalledBlockType", function() { return removeInstalledBlockType; });
 536  __webpack_require__.d(actions_namespaceObject, "setIsInstalling", function() { return setIsInstalling; });
 537  __webpack_require__.d(actions_namespaceObject, "setErrorNotice", function() { return setErrorNotice; });
 538  __webpack_require__.d(actions_namespaceObject, "clearErrorNotice", function() { return clearErrorNotice; });
 539  
 540  // EXTERNAL MODULE: external ["wp","element"]
 541  var external_wp_element_ = __webpack_require__(0);
 542  
 543  // EXTERNAL MODULE: external ["wp","plugins"]
 544  var external_wp_plugins_ = __webpack_require__(73);
 545  
 546  // EXTERNAL MODULE: external ["wp","hooks"]
 547  var external_wp_hooks_ = __webpack_require__(30);
 548  
 549  // EXTERNAL MODULE: external ["wp","blocks"]
 550  var external_wp_blocks_ = __webpack_require__(9);
 551  
 552  // EXTERNAL MODULE: external ["wp","data"]
 553  var external_wp_data_ = __webpack_require__(4);
 554  
 555  // EXTERNAL MODULE: external ["wp","editor"]
 556  var external_wp_editor_ = __webpack_require__(31);
 557  
 558  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
 559  var defineProperty = __webpack_require__(5);
 560  
 561  // EXTERNAL MODULE: external ["wp","dataControls"]
 562  var external_wp_dataControls_ = __webpack_require__(49);
 563  
 564  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
 565  var toConsumableArray = __webpack_require__(15);
 566  
 567  // EXTERNAL MODULE: external "lodash"
 568  var external_lodash_ = __webpack_require__(2);
 569  
 570  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/store/reducer.js
 571  
 572  
 573  
 574  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
 575  
 576  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
 577  
 578  /**
 579   * External dependencies
 580   */
 581  
 582  /**
 583   * WordPress dependencies
 584   */
 585  
 586  
 587  /**
 588   * Reducer returning an array of downloadable blocks.
 589   *
 590   * @param {Object} state  Current state.
 591   * @param {Object} action Dispatched action.
 592   *
 593   * @return {Object} Updated state.
 594   */
 595  
 596  var reducer_downloadableBlocks = function downloadableBlocks() {
 597    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
 598    var action = arguments.length > 1 ? arguments[1] : undefined;
 599  
 600    switch (action.type) {
 601      case 'FETCH_DOWNLOADABLE_BLOCKS':
 602        return _objectSpread(_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.filterValue, {
 603          isRequesting: true
 604        }));
 605  
 606      case 'RECEIVE_DOWNLOADABLE_BLOCKS':
 607        return _objectSpread(_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.filterValue, {
 608          results: action.downloadableBlocks,
 609          isRequesting: false
 610        }));
 611    }
 612  
 613    return state;
 614  };
 615  /**
 616   * Reducer managing the installation and deletion of blocks.
 617   *
 618   * @param {Object} state  Current state.
 619   * @param {Object} action Dispatched action.
 620   *
 621   * @return {Object} Updated state.
 622   */
 623  
 624  var reducer_blockManagement = function blockManagement() {
 625    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
 626      installedBlockTypes: [],
 627      isInstalling: {}
 628    };
 629    var action = arguments.length > 1 ? arguments[1] : undefined;
 630  
 631    switch (action.type) {
 632      case 'ADD_INSTALLED_BLOCK_TYPE':
 633        return _objectSpread(_objectSpread({}, state), {}, {
 634          installedBlockTypes: [].concat(Object(toConsumableArray["a" /* default */])(state.installedBlockTypes), [action.item])
 635        });
 636  
 637      case 'REMOVE_INSTALLED_BLOCK_TYPE':
 638        return _objectSpread(_objectSpread({}, state), {}, {
 639          installedBlockTypes: state.installedBlockTypes.filter(function (blockType) {
 640            return blockType.name !== action.item.name;
 641          })
 642        });
 643  
 644      case 'SET_INSTALLING_BLOCK':
 645        return _objectSpread(_objectSpread({}, state), {}, {
 646          isInstalling: _objectSpread(_objectSpread({}, state.isInstalling), {}, Object(defineProperty["a" /* default */])({}, action.blockId, action.isInstalling))
 647        });
 648    }
 649  
 650    return state;
 651  };
 652  /**
 653   * Reducer returning an object of error notices.
 654   *
 655   * @param {Object} state  Current state.
 656   * @param {Object} action Dispatched action.
 657   *
 658   * @return {Object} Updated state.
 659   */
 660  
 661  var reducer_errorNotices = function errorNotices() {
 662    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
 663    var action = arguments.length > 1 ? arguments[1] : undefined;
 664  
 665    switch (action.type) {
 666      case 'SET_ERROR_NOTICE':
 667        return _objectSpread(_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.blockId, {
 668          message: action.message,
 669          isFatal: action.isFatal
 670        }));
 671  
 672      case 'CLEAR_ERROR_NOTICE':
 673        return Object(external_lodash_["omit"])(state, action.blockId);
 674    }
 675  
 676    return state;
 677  };
 678  /* harmony default export */ var reducer = (Object(external_wp_data_["combineReducers"])({
 679    downloadableBlocks: reducer_downloadableBlocks,
 680    blockManagement: reducer_blockManagement,
 681    errorNotices: reducer_errorNotices
 682  }));
 683  
 684  // EXTERNAL MODULE: external ["wp","blockEditor"]
 685  var external_wp_blockEditor_ = __webpack_require__(6);
 686  
 687  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/store/utils/has-block-type.js
 688  /**
 689   * Check if a block list contains a specific block type. Recursively searches
 690   * through `innerBlocks` if they exist.
 691   *
 692   * @param {Object} blockType A block object to search for.
 693   * @param {Object[]} blocks  The list of blocks to look through.
 694   *
 695   * @return {boolean} Whether the blockType is found.
 696   */
 697  function hasBlockType(blockType) {
 698    var blocks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
 699  
 700    if (!blocks.length) {
 701      return false;
 702    }
 703  
 704    if (blocks.some(function (_ref) {
 705      var name = _ref.name;
 706      return name === blockType.name;
 707    })) {
 708      return true;
 709    }
 710  
 711    for (var i = 0; i < blocks.length; i++) {
 712      if (hasBlockType(blockType, blocks[i].innerBlocks)) {
 713        return true;
 714      }
 715    }
 716  
 717    return false;
 718  }
 719  
 720  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/store/selectors.js
 721  /**
 722   * WordPress dependencies
 723   */
 724  
 725  
 726  /**
 727   * Internal dependencies
 728   */
 729  
 730  
 731  /**
 732   * Returns true if application is requesting for downloadable blocks.
 733   *
 734   * @param {Object} state       Global application state.
 735   * @param {string} filterValue Search string.
 736   *
 737   * @return {boolean} Whether a request is in progress for the blocks list.
 738   */
 739  
 740  function selectors_isRequestingDownloadableBlocks(state, filterValue) {
 741    if (!state.downloadableBlocks[filterValue] || !state.downloadableBlocks[filterValue].isRequesting) {
 742      return false;
 743    }
 744  
 745    return state.downloadableBlocks[filterValue].isRequesting;
 746  }
 747  /**
 748   * Returns the available uninstalled blocks.
 749   *
 750   * @param {Object} state       Global application state.
 751   * @param {string} filterValue Search string.
 752   *
 753   * @return {Array} Downloadable blocks.
 754   */
 755  
 756  function selectors_getDownloadableBlocks(state, filterValue) {
 757    if (!state.downloadableBlocks[filterValue] || !state.downloadableBlocks[filterValue].results) {
 758      return [];
 759    }
 760  
 761    return state.downloadableBlocks[filterValue].results;
 762  }
 763  /**
 764   * Returns the block types that have been installed on the server in this
 765   * session.
 766   *
 767   * @param {Object} state Global application state.
 768   *
 769   * @return {Array} Block type items
 770   */
 771  
 772  function getInstalledBlockTypes(state) {
 773    return state.blockManagement.installedBlockTypes;
 774  }
 775  /**
 776   * Returns block types that have been installed on the server and used in the
 777   * current post.
 778   *
 779   * @param {Object} state Global application state.
 780   *
 781   * @return {Array} Block type items.
 782   */
 783  
 784  var getNewBlockTypes = Object(external_wp_data_["createRegistrySelector"])(function (select) {
 785    return function (state) {
 786      var usedBlockTree = select(external_wp_blockEditor_["store"]).getBlocks();
 787      var installedBlockTypes = getInstalledBlockTypes(state);
 788      return installedBlockTypes.filter(function (blockType) {
 789        return hasBlockType(blockType, usedBlockTree);
 790      });
 791    };
 792  });
 793  /**
 794   * Returns the block types that have been installed on the server but are not
 795   * used in the current post.
 796   *
 797   * @param {Object} state Global application state.
 798   *
 799   * @return {Array} Block type items.
 800   */
 801  
 802  var getUnusedBlockTypes = Object(external_wp_data_["createRegistrySelector"])(function (select) {
 803    return function (state) {
 804      var usedBlockTree = select(external_wp_blockEditor_["store"]).getBlocks();
 805      var installedBlockTypes = getInstalledBlockTypes(state);
 806      return installedBlockTypes.filter(function (blockType) {
 807        return !hasBlockType(blockType, usedBlockTree);
 808      });
 809    };
 810  });
 811  /**
 812   * Returns true if a block plugin install is in progress.
 813   *
 814   * @param {Object} state   Global application state.
 815   * @param {string} blockId Id of the block.
 816   *
 817   * @return {boolean} Whether this block is currently being installed.
 818   */
 819  
 820  function selectors_isInstalling(state, blockId) {
 821    return state.blockManagement.isInstalling[blockId] || false;
 822  }
 823  /**
 824   * Returns all block error notices.
 825   *
 826   * @param {Object} state Global application state.
 827   *
 828   * @return {Object} Object with error notices.
 829   */
 830  
 831  function getErrorNotices(state) {
 832    return state.errorNotices;
 833  }
 834  /**
 835   * Returns the error notice for a given block.
 836   *
 837   * @param {Object} state   Global application state.
 838   * @param {string} blockId The ID of the block plugin. eg: my-block
 839   *
 840   * @return {string|boolean} The error text, or false if no error.
 841   */
 842  
 843  function selectors_getErrorNoticeForBlock(state, blockId) {
 844    return state.errorNotices[blockId];
 845  }
 846  
 847  // EXTERNAL MODULE: external "regeneratorRuntime"
 848  var external_regeneratorRuntime_ = __webpack_require__(16);
 849  var external_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_regeneratorRuntime_);
 850  
 851  // EXTERNAL MODULE: external ["wp","i18n"]
 852  var external_wp_i18n_ = __webpack_require__(1);
 853  
 854  // EXTERNAL MODULE: external ["wp","notices"]
 855  var external_wp_notices_ = __webpack_require__(51);
 856  
 857  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
 858  var asyncToGenerator = __webpack_require__(48);
 859  
 860  // EXTERNAL MODULE: external ["wp","apiFetch"]
 861  var external_wp_apiFetch_ = __webpack_require__(50);
 862  var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_);
 863  
 864  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/store/controls.js
 865  
 866  
 867  
 868  function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
 869  
 870  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
 871  
 872  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
 873  
 874  /**
 875   * WordPress dependencies
 876   */
 877  
 878  /**
 879   * Load an asset for a block.
 880   *
 881   * This function returns a Promise that will resolve once the asset is loaded,
 882   * or in the case of Stylesheets and Inline JavaScript, will resolve immediately.
 883   *
 884   * @param {HTMLElement} el A HTML Element asset to inject.
 885   *
 886   * @return {Promise} Promise which will resolve when the asset is loaded.
 887   */
 888  
 889  var loadAsset = function loadAsset(el) {
 890    return new Promise(function (resolve, reject) {
 891      /*
 892       * Reconstruct the passed element, this is required as inserting the Node directly
 893       * won't always fire the required onload events, even if the asset wasn't already loaded.
 894       */
 895      var newNode = document.createElement(el.nodeName);
 896      ['id', 'rel', 'src', 'href', 'type'].forEach(function (attr) {
 897        if (el[attr]) {
 898          newNode[attr] = el[attr];
 899        }
 900      }); // Append inline <script> contents.
 901  
 902      if (el.innerHTML) {
 903        newNode.appendChild(document.createTextNode(el.innerHTML));
 904      }
 905  
 906      newNode.onload = function () {
 907        return resolve(true);
 908      };
 909  
 910      newNode.onerror = function () {
 911        return reject(new Error('Error loading asset.'));
 912      };
 913  
 914      document.body.appendChild(newNode); // Resolve Stylesheets and Inline JavaScript immediately.
 915  
 916      if ('link' === newNode.nodeName.toLowerCase() || 'script' === newNode.nodeName.toLowerCase() && !newNode.src) {
 917        resolve();
 918      }
 919    });
 920  };
 921  /**
 922   * Load the asset files for a block
 923   *
 924   * @param {Array} assets A collection of URLs for the assets.
 925   *
 926   * @return {Object} Control descriptor.
 927   */
 928  
 929  function loadAssets(assets) {
 930    return {
 931      type: 'LOAD_ASSETS',
 932      assets: assets
 933    };
 934  }
 935  var controls = {
 936    LOAD_ASSETS: function LOAD_ASSETS() {
 937      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/external_regeneratorRuntime_default.a.mark(function _callee() {
 938        var response, data, doc, newAssets, _iterator, _step, newAsset;
 939  
 940        return external_regeneratorRuntime_default.a.wrap(function _callee$(_context) {
 941          while (1) {
 942            switch (_context.prev = _context.next) {
 943              case 0:
 944                _context.next = 2;
 945                return external_wp_apiFetch_default()({
 946                  url: document.location.href,
 947                  parse: false
 948                });
 949  
 950              case 2:
 951                response = _context.sent;
 952                _context.next = 5;
 953                return response.text();
 954  
 955              case 5:
 956                data = _context.sent;
 957                doc = new window.DOMParser().parseFromString(data, 'text/html');
 958                newAssets = Array.from(doc.querySelectorAll('link[rel="stylesheet"],script')).filter(function (asset) {
 959                  return asset.id && !document.getElementById(asset.id);
 960                });
 961                /*
 962                 * Load each asset in order, as they may depend upon an earlier loaded script.
 963                 * Stylesheets and Inline Scripts will resolve immediately upon insertion.
 964                 */
 965  
 966                _iterator = _createForOfIteratorHelper(newAssets);
 967                _context.prev = 9;
 968  
 969                _iterator.s();
 970  
 971              case 11:
 972                if ((_step = _iterator.n()).done) {
 973                  _context.next = 17;
 974                  break;
 975                }
 976  
 977                newAsset = _step.value;
 978                _context.next = 15;
 979                return loadAsset(newAsset);
 980  
 981              case 15:
 982                _context.next = 11;
 983                break;
 984  
 985              case 17:
 986                _context.next = 22;
 987                break;
 988  
 989              case 19:
 990                _context.prev = 19;
 991                _context.t0 = _context["catch"](9);
 992  
 993                _iterator.e(_context.t0);
 994  
 995              case 22:
 996                _context.prev = 22;
 997  
 998                _iterator.f();
 999  
1000                return _context.finish(22);
1001  
1002              case 25:
1003              case "end":
1004                return _context.stop();
1005            }
1006          }
1007        }, _callee, null, [[9, 19, 22, 25]]);
1008      }))();
1009    }
1010  };
1011  /* harmony default export */ var store_controls = (controls);
1012  
1013  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/store/utils/get-plugin-url.js
1014  /**
1015   * Get the plugin's direct API link out of a block-directory response.
1016   *
1017   * @param {Object} block The block object
1018   *
1019   * @return {string} The plugin URL, if exists.
1020   */
1021  function getPluginUrl(block) {
1022    if (!block) {
1023      return false;
1024    }
1025  
1026    var link = block.links['wp:plugin'] || block.links.self;
1027  
1028    if (link && link.length) {
1029      return link[0].href;
1030    }
1031  
1032    return false;
1033  }
1034  
1035  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/store/actions.js
1036  
1037  
1038  
1039  var _marked = /*#__PURE__*/external_regeneratorRuntime_default.a.mark(actions_installBlockType),
1040      _marked2 = /*#__PURE__*/external_regeneratorRuntime_default.a.mark(actions_uninstallBlockType);
1041  
1042  function actions_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
1043  
1044  function actions_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { actions_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { actions_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1045  
1046  /**
1047   * WordPress dependencies
1048   */
1049  
1050  
1051  
1052  
1053  
1054  /**
1055   * Internal dependencies
1056   */
1057  
1058  
1059  
1060  /**
1061   * Returns an action object used in signalling that the downloadable blocks
1062   * have been requested and are loading.
1063   *
1064   * @param {string} filterValue Search string.
1065   *
1066   * @return {Object} Action object.
1067   */
1068  
1069  function fetchDownloadableBlocks(filterValue) {
1070    return {
1071      type: 'FETCH_DOWNLOADABLE_BLOCKS',
1072      filterValue: filterValue
1073    };
1074  }
1075  /**
1076   * Returns an action object used in signalling that the downloadable blocks
1077   * have been updated.
1078   *
1079   * @param {Array}  downloadableBlocks Downloadable blocks.
1080   * @param {string} filterValue        Search string.
1081   *
1082   * @return {Object} Action object.
1083   */
1084  
1085  function receiveDownloadableBlocks(downloadableBlocks, filterValue) {
1086    return {
1087      type: 'RECEIVE_DOWNLOADABLE_BLOCKS',
1088      downloadableBlocks: downloadableBlocks,
1089      filterValue: filterValue
1090    };
1091  }
1092  /**
1093   * Action triggered to install a block plugin.
1094   *
1095   * @param {Object} block The block item returned by search.
1096   *
1097   * @return {boolean} Whether the block was successfully installed & loaded.
1098   */
1099  
1100  function actions_installBlockType(block) {
1101    var id, assets, success, url, links, response, registeredBlocks, message, isFatal, fatalAPIErrors;
1102    return external_regeneratorRuntime_default.a.wrap(function installBlockType$(_context) {
1103      while (1) {
1104        switch (_context.prev = _context.next) {
1105          case 0:
1106            id = block.id, assets = block.assets;
1107            success = false;
1108            _context.next = 4;
1109            return clearErrorNotice(id);
1110  
1111          case 4:
1112            _context.prev = 4;
1113            _context.next = 7;
1114            return setIsInstalling(block.id, true);
1115  
1116          case 7:
1117            // If we have a wp:plugin link, the plugin is installed but inactive.
1118            url = getPluginUrl(block);
1119            links = {};
1120  
1121            if (!url) {
1122              _context.next = 14;
1123              break;
1124            }
1125  
1126            _context.next = 12;
1127            return Object(external_wp_dataControls_["apiFetch"])({
1128              url: url,
1129              data: {
1130                status: 'active'
1131              },
1132              method: 'PUT'
1133            });
1134  
1135          case 12:
1136            _context.next = 18;
1137            break;
1138  
1139          case 14:
1140            _context.next = 16;
1141            return Object(external_wp_dataControls_["apiFetch"])({
1142              path: 'wp/v2/plugins',
1143              data: {
1144                slug: block.id,
1145                status: 'active'
1146              },
1147              method: 'POST'
1148            });
1149  
1150          case 16:
1151            response = _context.sent;
1152            // Add the `self` link for newly-installed blocks.
1153            links = response._links;
1154  
1155          case 18:
1156            _context.next = 20;
1157            return addInstalledBlockType(actions_objectSpread(actions_objectSpread({}, block), {}, {
1158              links: actions_objectSpread(actions_objectSpread({}, block.links), links)
1159            }));
1160  
1161          case 20:
1162            _context.next = 22;
1163            return loadAssets(assets);
1164  
1165          case 22:
1166            _context.next = 24;
1167            return external_wp_data_["controls"].select(external_wp_blocks_["store"].name, 'getBlockTypes');
1168  
1169          case 24:
1170            registeredBlocks = _context.sent;
1171  
1172            if (registeredBlocks.some(function (i) {
1173              return i.name === block.name;
1174            })) {
1175              _context.next = 27;
1176              break;
1177            }
1178  
1179            throw new Error(Object(external_wp_i18n_["__"])('Error registering block. Try reloading the page.'));
1180  
1181          case 27:
1182            _context.next = 29;
1183            return external_wp_data_["controls"].dispatch(external_wp_notices_["store"], 'createInfoNotice', Object(external_wp_i18n_["sprintf"])( // translators: %s is the block title.
1184            Object(external_wp_i18n_["__"])('Block %s installed and added.'), block.title), {
1185              speak: true,
1186              type: 'snackbar'
1187            });
1188  
1189          case 29:
1190            success = true;
1191            _context.next = 42;
1192            break;
1193  
1194          case 32:
1195            _context.prev = 32;
1196            _context.t0 = _context["catch"](4);
1197            message = _context.t0.message || Object(external_wp_i18n_["__"])('An error occurred.'); // Errors we throw are fatal
1198  
1199            isFatal = _context.t0 instanceof Error; // Specific API errors that are fatal
1200  
1201            fatalAPIErrors = {
1202              folder_exists: Object(external_wp_i18n_["__"])('This block is already installed. Try reloading the page.'),
1203              unable_to_connect_to_filesystem: Object(external_wp_i18n_["__"])('Error installing block. You can reload the page and try again.')
1204            };
1205  
1206            if (fatalAPIErrors[_context.t0.code]) {
1207              isFatal = true;
1208              message = fatalAPIErrors[_context.t0.code];
1209            }
1210  
1211            _context.next = 40;
1212            return setErrorNotice(id, message, isFatal);
1213  
1214          case 40:
1215            _context.next = 42;
1216            return external_wp_data_["controls"].dispatch(external_wp_notices_["store"], 'createErrorNotice', message, {
1217              speak: true,
1218              isDismissible: true
1219            });
1220  
1221          case 42:
1222            _context.next = 44;
1223            return setIsInstalling(block.id, false);
1224  
1225          case 44:
1226            return _context.abrupt("return", success);
1227  
1228          case 45:
1229          case "end":
1230            return _context.stop();
1231        }
1232      }
1233    }, _marked, null, [[4, 32]]);
1234  }
1235  /**
1236   * Action triggered to uninstall a block plugin.
1237   *
1238   * @param {Object} block The blockType object.
1239   */
1240  
1241  function actions_uninstallBlockType(block) {
1242    return external_regeneratorRuntime_default.a.wrap(function uninstallBlockType$(_context2) {
1243      while (1) {
1244        switch (_context2.prev = _context2.next) {
1245          case 0:
1246            _context2.prev = 0;
1247            _context2.next = 3;
1248            return Object(external_wp_dataControls_["apiFetch"])({
1249              url: getPluginUrl(block),
1250              data: {
1251                status: 'inactive'
1252              },
1253              method: 'PUT'
1254            });
1255  
1256          case 3:
1257            _context2.next = 5;
1258            return Object(external_wp_dataControls_["apiFetch"])({
1259              url: getPluginUrl(block),
1260              method: 'DELETE'
1261            });
1262  
1263          case 5:
1264            _context2.next = 7;
1265            return removeInstalledBlockType(block);
1266  
1267          case 7:
1268            _context2.next = 13;
1269            break;
1270  
1271          case 9:
1272            _context2.prev = 9;
1273            _context2.t0 = _context2["catch"](0);
1274            _context2.next = 13;
1275            return external_wp_data_["controls"].dispatch(external_wp_notices_["store"], 'createErrorNotice', _context2.t0.message || Object(external_wp_i18n_["__"])('An error occurred.'));
1276  
1277          case 13:
1278          case "end":
1279            return _context2.stop();
1280        }
1281      }
1282    }, _marked2, null, [[0, 9]]);
1283  }
1284  /**
1285   * Returns an action object used to add a block type to the "newly installed"
1286   * tracking list.
1287   *
1288   * @param {Object} item The block item with the block id and name.
1289   *
1290   * @return {Object} Action object.
1291   */
1292  
1293  function addInstalledBlockType(item) {
1294    return {
1295      type: 'ADD_INSTALLED_BLOCK_TYPE',
1296      item: item
1297    };
1298  }
1299  /**
1300   * Returns an action object used to remove a block type from the "newly installed"
1301   * tracking list.
1302   *
1303   * @param {string} item The block item with the block id and name.
1304   *
1305   * @return {Object} Action object.
1306   */
1307  
1308  function removeInstalledBlockType(item) {
1309    return {
1310      type: 'REMOVE_INSTALLED_BLOCK_TYPE',
1311      item: item
1312    };
1313  }
1314  /**
1315   * Returns an action object used to indicate install in progress.
1316   *
1317   * @param {string} blockId
1318   * @param {boolean} isInstalling
1319   *
1320   * @return {Object} Action object.
1321   */
1322  
1323  function setIsInstalling(blockId, isInstalling) {
1324    return {
1325      type: 'SET_INSTALLING_BLOCK',
1326      blockId: blockId,
1327      isInstalling: isInstalling
1328    };
1329  }
1330  /**
1331   * Sets an error notice to be displayed to the user for a given block.
1332   *
1333   * @param {string} blockId  The ID of the block plugin. eg: my-block
1334   * @param {string} message  The message shown in the notice.
1335   * @param {boolean} isFatal Whether the user can recover from the error.
1336   *
1337   * @return {Object} Action object.
1338   */
1339  
1340  function setErrorNotice(blockId, message) {
1341    var isFatal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
1342    return {
1343      type: 'SET_ERROR_NOTICE',
1344      blockId: blockId,
1345      message: message,
1346      isFatal: isFatal
1347    };
1348  }
1349  /**
1350   * Sets the error notice to empty for specific block.
1351   *
1352   * @param {string} blockId The ID of the block plugin. eg: my-block
1353   *
1354   * @return {Object} Action object.
1355   */
1356  
1357  function clearErrorNotice(blockId) {
1358    return {
1359      type: 'CLEAR_ERROR_NOTICE',
1360      blockId: blockId
1361    };
1362  }
1363  
1364  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/store/resolvers.js
1365  
1366  
1367  /**
1368   * External dependencies
1369   */
1370  
1371  /**
1372   * WordPress dependencies
1373   */
1374  
1375  
1376  /**
1377   * Internal dependencies
1378   */
1379  
1380  
1381  /* harmony default export */ var resolvers = ({
1382    getDownloadableBlocks: /*#__PURE__*/external_regeneratorRuntime_default.a.mark(function getDownloadableBlocks(filterValue) {
1383      var results, blocks;
1384      return external_regeneratorRuntime_default.a.wrap(function getDownloadableBlocks$(_context) {
1385        while (1) {
1386          switch (_context.prev = _context.next) {
1387            case 0:
1388              if (filterValue) {
1389                _context.next = 2;
1390                break;
1391              }
1392  
1393              return _context.abrupt("return");
1394  
1395            case 2:
1396              _context.prev = 2;
1397              _context.next = 5;
1398              return fetchDownloadableBlocks(filterValue);
1399  
1400            case 5:
1401              _context.next = 7;
1402              return Object(external_wp_dataControls_["apiFetch"])({
1403                path: "wp/v2/block-directory/search?term=".concat(filterValue)
1404              });
1405  
1406            case 7:
1407              results = _context.sent;
1408              blocks = results.map(function (result) {
1409                return Object(external_lodash_["mapKeys"])(result, function (value, key) {
1410                  return Object(external_lodash_["camelCase"])(key);
1411                });
1412              });
1413              _context.next = 11;
1414              return receiveDownloadableBlocks(blocks, filterValue);
1415  
1416            case 11:
1417              _context.next = 15;
1418              break;
1419  
1420            case 13:
1421              _context.prev = 13;
1422              _context.t0 = _context["catch"](2);
1423  
1424            case 15:
1425            case "end":
1426              return _context.stop();
1427          }
1428        }
1429      }, getDownloadableBlocks, null, [[2, 13]]);
1430    })
1431  });
1432  
1433  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/store/index.js
1434  
1435  
1436  function store_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
1437  
1438  function store_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { store_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { store_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1439  
1440  /**
1441   * WordPress dependencies
1442   */
1443  
1444  
1445  /**
1446   * Internal dependencies
1447   */
1448  
1449  
1450  
1451  
1452  
1453  
1454  /**
1455   * Module Constants
1456   */
1457  
1458  var STORE_NAME = 'core/block-directory';
1459  /**
1460   * Block editor data store configuration.
1461   *
1462   * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#registerStore
1463   *
1464   * @type {Object}
1465   */
1466  
1467  var storeConfig = {
1468    reducer: reducer,
1469    selectors: selectors_namespaceObject,
1470    actions: actions_namespaceObject,
1471    controls: store_objectSpread(store_objectSpread({}, external_wp_dataControls_["controls"]), store_controls),
1472    resolvers: resolvers
1473  };
1474  /**
1475   * Store definition for the block directory namespace.
1476   *
1477   * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
1478   *
1479   * @type {Object}
1480   */
1481  
1482  var store = Object(external_wp_data_["createReduxStore"])(STORE_NAME, storeConfig);
1483  Object(external_wp_data_["register"])(store);
1484  
1485  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/auto-block-uninstaller/index.js
1486  /**
1487   * WordPress dependencies
1488   */
1489  
1490  
1491  
1492  
1493  /**
1494   * Internal dependencies
1495   */
1496  
1497  
1498  function AutoBlockUninstaller() {
1499    var _useDispatch = Object(external_wp_data_["useDispatch"])(store),
1500        uninstallBlockType = _useDispatch.uninstallBlockType;
1501  
1502    var shouldRemoveBlockTypes = Object(external_wp_data_["useSelect"])(function (select) {
1503      var _select = select(external_wp_editor_["store"]),
1504          isAutosavingPost = _select.isAutosavingPost,
1505          isSavingPost = _select.isSavingPost;
1506  
1507      return isSavingPost() && !isAutosavingPost();
1508    }, []);
1509    var unusedBlockTypes = Object(external_wp_data_["useSelect"])(function (select) {
1510      return select(store).getUnusedBlockTypes();
1511    }, []);
1512    Object(external_wp_element_["useEffect"])(function () {
1513      if (shouldRemoveBlockTypes && unusedBlockTypes.length) {
1514        unusedBlockTypes.forEach(function (blockType) {
1515          uninstallBlockType(blockType);
1516          Object(external_wp_blocks_["unregisterBlockType"])(blockType.name);
1517        });
1518      }
1519    }, [shouldRemoveBlockTypes]);
1520    return null;
1521  }
1522  
1523  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
1524  var slicedToArray = __webpack_require__(12);
1525  
1526  // EXTERNAL MODULE: external ["wp","components"]
1527  var external_wp_components_ = __webpack_require__(3);
1528  
1529  // EXTERNAL MODULE: external ["wp","compose"]
1530  var external_wp_compose_ = __webpack_require__(11);
1531  
1532  // EXTERNAL MODULE: external ["wp","coreData"]
1533  var external_wp_coreData_ = __webpack_require__(37);
1534  
1535  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
1536  var esm_extends = __webpack_require__(8);
1537  
1538  // EXTERNAL MODULE: external ["wp","htmlEntities"]
1539  var external_wp_htmlEntities_ = __webpack_require__(57);
1540  
1541  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js
1542  var build_module_icon = __webpack_require__(133);
1543  
1544  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js
1545  var star_filled = __webpack_require__(301);
1546  
1547  // EXTERNAL MODULE: external ["wp","primitives"]
1548  var external_wp_primitives_ = __webpack_require__(7);
1549  
1550  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/star-half.js
1551  
1552  
1553  /**
1554   * WordPress dependencies
1555   */
1556  
1557  var starHalf = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
1558    xmlns: "http://www.w3.org/2000/svg",
1559    viewBox: "0 0 24 24"
1560  }, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
1561    d: "M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39v7.143z"
1562  }));
1563  /* harmony default export */ var star_half = (starHalf);
1564  
1565  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-empty.js
1566  var star_empty = __webpack_require__(302);
1567  
1568  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/block-ratings/stars.js
1569  
1570  
1571  /**
1572   * External dependencies
1573   */
1574  
1575  /**
1576   * WordPress dependencies
1577   */
1578  
1579  
1580  
1581  
1582  function Stars(_ref) {
1583    var rating = _ref.rating;
1584    var stars = Math.round(rating / 0.5) * 0.5;
1585    var fullStarCount = Math.floor(rating);
1586    var halfStarCount = Math.ceil(rating - fullStarCount);
1587    var emptyStarCount = 5 - (fullStarCount + halfStarCount);
1588    return Object(external_wp_element_["createElement"])("span", {
1589      "aria-label": Object(external_wp_i18n_["sprintf"])(
1590      /* translators: %s: number of stars. */
1591      Object(external_wp_i18n_["__"])('%s out of 5 stars'), stars)
1592    }, Object(external_lodash_["times"])(fullStarCount, function (i) {
1593      return Object(external_wp_element_["createElement"])(build_module_icon["a" /* default */], {
1594        key: "full_stars_".concat(i),
1595        className: "block-directory-block-ratings__star-full",
1596        icon: star_filled["a" /* default */],
1597        size: 16
1598      });
1599    }), Object(external_lodash_["times"])(halfStarCount, function (i) {
1600      return Object(external_wp_element_["createElement"])(build_module_icon["a" /* default */], {
1601        key: "half_stars_".concat(i),
1602        className: "block-directory-block-ratings__star-half-full",
1603        icon: star_half,
1604        size: 16
1605      });
1606    }), Object(external_lodash_["times"])(emptyStarCount, function (i) {
1607      return Object(external_wp_element_["createElement"])(build_module_icon["a" /* default */], {
1608        key: "empty_stars_".concat(i),
1609        className: "block-directory-block-ratings__star-empty",
1610        icon: star_empty["a" /* default */],
1611        size: 16
1612      });
1613    }));
1614  }
1615  
1616  /* harmony default export */ var block_ratings_stars = (Stars);
1617  
1618  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/block-ratings/index.js
1619  
1620  
1621  /**
1622   * Internal dependencies
1623   */
1624  
1625  var block_ratings_BlockRatings = function BlockRatings(_ref) {
1626    var rating = _ref.rating;
1627    return Object(external_wp_element_["createElement"])("span", {
1628      className: "block-directory-block-ratings"
1629    }, Object(external_wp_element_["createElement"])(block_ratings_stars, {
1630      rating: rating
1631    }));
1632  };
1633  /* harmony default export */ var block_ratings = (block_ratings_BlockRatings);
1634  
1635  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-block-icon/index.js
1636  
1637  
1638  /**
1639   * WordPress dependencies
1640   */
1641  
1642  
1643  function DownloadableBlockIcon(_ref) {
1644    var icon = _ref.icon;
1645    var className = 'block-directory-downloadable-block-icon';
1646    return icon.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/) !== null ? Object(external_wp_element_["createElement"])("img", {
1647      className: className,
1648      src: icon,
1649      alt: ""
1650    }) : Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockIcon"], {
1651      className: className,
1652      icon: icon,
1653      showColors: true
1654    });
1655  }
1656  
1657  /* harmony default export */ var downloadable_block_icon = (DownloadableBlockIcon);
1658  
1659  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-block-notice/index.js
1660  
1661  
1662  /**
1663   * WordPress dependencies
1664   */
1665  
1666  
1667  /**
1668   * Internal dependencies
1669   */
1670  
1671  
1672  var downloadable_block_notice_DownloadableBlockNotice = function DownloadableBlockNotice(_ref) {
1673    var block = _ref.block;
1674    var errorNotice = Object(external_wp_data_["useSelect"])(function (select) {
1675      return select(store).getErrorNoticeForBlock(block.id);
1676    }, [block]);
1677  
1678    if (!errorNotice) {
1679      return null;
1680    }
1681  
1682    return Object(external_wp_element_["createElement"])("div", {
1683      className: "block-directory-downloadable-block-notice"
1684    }, Object(external_wp_element_["createElement"])("div", {
1685      className: "block-directory-downloadable-block-notice__content"
1686    }, errorNotice.message, errorNotice.isFatal ? ' ' + Object(external_wp_i18n_["__"])('Try reloading the page.') : null));
1687  };
1688  /* harmony default export */ var downloadable_block_notice = (downloadable_block_notice_DownloadableBlockNotice);
1689  
1690  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-block-list-item/index.js
1691  
1692  
1693  
1694  /**
1695   * WordPress dependencies
1696   */
1697  
1698  
1699  
1700  
1701  
1702  
1703  /**
1704   * Internal dependencies
1705   */
1706  
1707  
1708  
1709  
1710   // Return the appropriate block item label, given the block data and status.
1711  
1712  function getDownloadableBlockLabel(_ref, _ref2) {
1713    var title = _ref.title,
1714        rating = _ref.rating,
1715        ratingCount = _ref.ratingCount;
1716    var hasNotice = _ref2.hasNotice,
1717        isInstalled = _ref2.isInstalled,
1718        isInstalling = _ref2.isInstalling;
1719    var stars = Math.round(rating / 0.5) * 0.5;
1720  
1721    if (!isInstalled && hasNotice) {
1722      /* translators: %1$s: block title */
1723      return Object(external_wp_i18n_["sprintf"])('Retry installing %s.', Object(external_wp_htmlEntities_["decodeEntities"])(title));
1724    }
1725  
1726    if (isInstalled) {
1727      /* translators: %1$s: block title */
1728      return Object(external_wp_i18n_["sprintf"])('Add %s.', Object(external_wp_htmlEntities_["decodeEntities"])(title));
1729    }
1730  
1731    if (isInstalling) {
1732      /* translators: %1$s: block title */
1733      return Object(external_wp_i18n_["sprintf"])('Installing %s.', Object(external_wp_htmlEntities_["decodeEntities"])(title));
1734    } // No ratings yet, just use the title.
1735  
1736  
1737    if (ratingCount < 1) {
1738      /* translators: %1$s: block title */
1739      return Object(external_wp_i18n_["sprintf"])('Install %s.', Object(external_wp_htmlEntities_["decodeEntities"])(title));
1740    }
1741  
1742    return Object(external_wp_i18n_["sprintf"])(
1743    /* translators: %1$s: block title, %2$s: average rating, %3$s: total ratings count. */
1744    Object(external_wp_i18n_["_n"])('Install %1$s. %2$s stars with %3$s review.', 'Install %1$s. %2$s stars with %3$s reviews.', ratingCount), Object(external_wp_htmlEntities_["decodeEntities"])(title), stars, ratingCount);
1745  }
1746  
1747  function DownloadableBlockListItem(_ref3) {
1748    var composite = _ref3.composite,
1749        item = _ref3.item,
1750        _onClick = _ref3.onClick;
1751    var author = item.author,
1752        description = item.description,
1753        icon = item.icon,
1754        rating = item.rating,
1755        title = item.title; // getBlockType returns a block object if this block exists, or null if not.
1756  
1757    var isInstalled = !!Object(external_wp_blocks_["getBlockType"])(item.name);
1758  
1759    var _useSelect = Object(external_wp_data_["useSelect"])(function (select) {
1760      var _select = select(store),
1761          getErrorNoticeForBlock = _select.getErrorNoticeForBlock,
1762          isBlockInstalling = _select.isInstalling;
1763  
1764      var notice = getErrorNoticeForBlock(item.id);
1765      var hasFatal = notice && notice.isFatal;
1766      return {
1767        hasNotice: !!notice,
1768        isInstalling: isBlockInstalling(item.id),
1769        isInstallable: !hasFatal
1770      };
1771    }, [item]),
1772        hasNotice = _useSelect.hasNotice,
1773        isInstalling = _useSelect.isInstalling,
1774        isInstallable = _useSelect.isInstallable;
1775  
1776    var statusText = '';
1777  
1778    if (isInstalled) {
1779      statusText = Object(external_wp_i18n_["__"])('Installed!');
1780    } else if (isInstalling) {
1781      statusText = Object(external_wp_i18n_["__"])('Installing…');
1782    }
1783  
1784    return Object(external_wp_element_["createElement"])(external_wp_components_["__unstableCompositeItem"], Object(esm_extends["a" /* default */])({
1785      role: "option",
1786      as: external_wp_components_["Button"]
1787    }, composite, {
1788      className: "block-directory-downloadable-block-list-item",
1789      onClick: function onClick(event) {
1790        event.preventDefault();
1791  
1792        _onClick();
1793      },
1794      isBusy: isInstalling,
1795      disabled: isInstalling || !isInstallable,
1796      label: getDownloadableBlockLabel(item, {
1797        hasNotice: hasNotice,
1798        isInstalled: isInstalled,
1799        isInstalling: isInstalling
1800      }),
1801      showTooltip: true,
1802      tooltipPosition: "top center"
1803    }), Object(external_wp_element_["createElement"])("div", {
1804      className: "block-directory-downloadable-block-list-item__icon"
1805    }, Object(external_wp_element_["createElement"])(downloadable_block_icon, {
1806      icon: icon,
1807      title: title
1808    }), isInstalling ? Object(external_wp_element_["createElement"])("span", {
1809      className: "block-directory-downloadable-block-list-item__spinner"
1810    }, Object(external_wp_element_["createElement"])(external_wp_components_["Spinner"], null)) : Object(external_wp_element_["createElement"])(block_ratings, {
1811      rating: rating
1812    })), Object(external_wp_element_["createElement"])("span", {
1813      className: "block-directory-downloadable-block-list-item__details"
1814    }, Object(external_wp_element_["createElement"])("span", {
1815      className: "block-directory-downloadable-block-list-item__title"
1816    }, Object(external_wp_element_["createInterpolateElement"])(Object(external_wp_i18n_["sprintf"])(
1817    /* translators: %1$s: block title, %2$s: author name. */
1818    Object(external_wp_i18n_["__"])('%1$s <span>by %2$s</span>'), Object(external_wp_htmlEntities_["decodeEntities"])(title), author), {
1819      span: Object(external_wp_element_["createElement"])("span", {
1820        className: "block-directory-downloadable-block-list-item__author"
1821      })
1822    })), hasNotice ? Object(external_wp_element_["createElement"])(downloadable_block_notice, {
1823      block: item
1824    }) : Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("span", {
1825      className: "block-directory-downloadable-block-list-item__desc"
1826    }, !!statusText ? statusText : Object(external_wp_htmlEntities_["decodeEntities"])(description)), isInstallable && !(isInstalled || isInstalling) && Object(external_wp_element_["createElement"])(external_wp_components_["VisuallyHidden"], null, Object(external_wp_i18n_["__"])('Install block')))));
1827  }
1828  
1829  /* harmony default export */ var downloadable_block_list_item = (DownloadableBlockListItem);
1830  
1831  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-blocks-list/index.js
1832  
1833  
1834  
1835  /**
1836   * External dependencies
1837   */
1838  
1839  /**
1840   * WordPress dependencies
1841   */
1842  
1843  
1844  
1845  
1846  
1847  /**
1848   * Internal dependencies
1849   */
1850  
1851  
1852  
1853  
1854  function DownloadableBlocksList(_ref) {
1855    var items = _ref.items,
1856        _ref$onHover = _ref.onHover,
1857        onHover = _ref$onHover === void 0 ? external_lodash_["noop"] : _ref$onHover,
1858        onSelect = _ref.onSelect;
1859    var composite = Object(external_wp_components_["__unstableUseCompositeState"])();
1860  
1861    var _useDispatch = Object(external_wp_data_["useDispatch"])(store),
1862        installBlockType = _useDispatch.installBlockType;
1863  
1864    if (!items.length) {
1865      return null;
1866    }
1867  
1868    return Object(external_wp_element_["createElement"])(external_wp_components_["__unstableComposite"], Object(esm_extends["a" /* default */])({}, composite, {
1869      role: "listbox",
1870      className: "block-directory-downloadable-blocks-list",
1871      "aria-label": Object(external_wp_i18n_["__"])('Blocks available for install')
1872    }), items.map(function (item) {
1873      return Object(external_wp_element_["createElement"])(downloadable_block_list_item, {
1874        key: item.id,
1875        composite: composite,
1876        onClick: function onClick() {
1877          // Check if the block is registered (`getBlockType`
1878          // will return an object). If so, insert the block.
1879          // This prevents installing existing plugins.
1880          if (Object(external_wp_blocks_["getBlockType"])(item.name)) {
1881            onSelect(item);
1882          } else {
1883            installBlockType(item).then(function (success) {
1884              if (success) {
1885                onSelect(item);
1886              }
1887            });
1888          }
1889  
1890          onHover(null);
1891        },
1892        onHover: onHover,
1893        item: item
1894      });
1895    }));
1896  }
1897  
1898  /* harmony default export */ var downloadable_blocks_list = (DownloadableBlocksList);
1899  
1900  // EXTERNAL MODULE: external ["wp","a11y"]
1901  var external_wp_a11y_ = __webpack_require__(46);
1902  
1903  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-blocks-panel/inserter-panel.js
1904  
1905  
1906  /**
1907   * WordPress dependencies
1908   */
1909  
1910  
1911  
1912  
1913  function DownloadableBlocksInserterPanel(_ref) {
1914    var children = _ref.children,
1915        downloadableItems = _ref.downloadableItems,
1916        hasLocalBlocks = _ref.hasLocalBlocks;
1917    var count = downloadableItems.length;
1918    Object(external_wp_element_["useEffect"])(function () {
1919      Object(external_wp_a11y_["speak"])(Object(external_wp_i18n_["sprintf"])(
1920      /* translators: %d: number of available blocks. */
1921      Object(external_wp_i18n_["_n"])('%d additional block is available to install.', '%d additional blocks are available to install.', count), count));
1922    }, [count]);
1923    return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, !hasLocalBlocks && Object(external_wp_element_["createElement"])("p", {
1924      className: "block-directory-downloadable-blocks-panel__no-local"
1925    }, Object(external_wp_i18n_["__"])('No results available from your installed blocks.')), Object(external_wp_element_["createElement"])("div", {
1926      className: "block-editor-inserter__quick-inserter-separator"
1927    }), Object(external_wp_element_["createElement"])("div", {
1928      className: "block-directory-downloadable-blocks-panel"
1929    }, Object(external_wp_element_["createElement"])("div", {
1930      className: "block-directory-downloadable-blocks-panel__header"
1931    }, Object(external_wp_element_["createElement"])("h2", {
1932      className: "block-directory-downloadable-blocks-panel__title"
1933    }, Object(external_wp_i18n_["__"])('Available to install')), Object(external_wp_element_["createElement"])("p", {
1934      className: "block-directory-downloadable-blocks-panel__description"
1935    }, Object(external_wp_i18n_["__"])('Select a block to install and add it to your post.'))), children));
1936  }
1937  
1938  /* harmony default export */ var inserter_panel = (DownloadableBlocksInserterPanel);
1939  
1940  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js
1941  var block_default = __webpack_require__(217);
1942  
1943  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-blocks-panel/no-results.js
1944  
1945  
1946  /**
1947   * WordPress dependencies
1948   */
1949  
1950  
1951  
1952  function DownloadableBlocksNoResults() {
1953    return Object(external_wp_element_["createElement"])("div", {
1954      className: "block-editor-inserter__no-results"
1955    }, Object(external_wp_element_["createElement"])(build_module_icon["a" /* default */], {
1956      className: "block-editor-inserter__no-results-icon",
1957      icon: block_default["a" /* default */]
1958    }), Object(external_wp_element_["createElement"])("p", null, Object(external_wp_i18n_["__"])('No results found.')));
1959  }
1960  
1961  /* harmony default export */ var no_results = (DownloadableBlocksNoResults);
1962  
1963  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-blocks-panel/index.js
1964  
1965  
1966  /**
1967   * WordPress dependencies
1968   */
1969  
1970  
1971  
1972  
1973  
1974  
1975  /**
1976   * Internal dependencies
1977   */
1978  
1979  
1980  
1981  
1982  
1983  
1984  function DownloadableBlocksPanel(_ref) {
1985    var downloadableItems = _ref.downloadableItems,
1986        onSelect = _ref.onSelect,
1987        onHover = _ref.onHover,
1988        hasLocalBlocks = _ref.hasLocalBlocks,
1989        hasPermission = _ref.hasPermission,
1990        isLoading = _ref.isLoading,
1991        isTyping = _ref.isTyping;
1992  
1993    if (typeof hasPermission === 'undefined' || isLoading || isTyping) {
1994      return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, hasPermission && !hasLocalBlocks && Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("p", {
1995        className: "block-directory-downloadable-blocks-panel__no-local"
1996      }, Object(external_wp_i18n_["__"])('No results available from your installed blocks.')), Object(external_wp_element_["createElement"])("div", {
1997        className: "block-editor-inserter__quick-inserter-separator"
1998      })), Object(external_wp_element_["createElement"])("div", {
1999        className: "block-directory-downloadable-blocks-panel has-blocks-loading"
2000      }, Object(external_wp_element_["createElement"])(external_wp_components_["Spinner"], null)));
2001    }
2002  
2003    if (false === hasPermission) {
2004      if (!hasLocalBlocks) {
2005        return Object(external_wp_element_["createElement"])(no_results, null);
2006      }
2007  
2008      return null;
2009    }
2010  
2011    return !!downloadableItems.length ? Object(external_wp_element_["createElement"])(inserter_panel, {
2012      downloadableItems: downloadableItems,
2013      hasLocalBlocks: hasLocalBlocks
2014    }, Object(external_wp_element_["createElement"])(downloadable_blocks_list, {
2015      items: downloadableItems,
2016      onSelect: onSelect,
2017      onHover: onHover
2018    })) : !hasLocalBlocks && Object(external_wp_element_["createElement"])(no_results, null);
2019  }
2020  
2021  /* harmony default export */ var downloadable_blocks_panel = (Object(external_wp_compose_["compose"])([Object(external_wp_data_["withSelect"])(function (select, _ref2) {
2022    var filterValue = _ref2.filterValue,
2023        _ref2$rootClientId = _ref2.rootClientId,
2024        rootClientId = _ref2$rootClientId === void 0 ? null : _ref2$rootClientId;
2025  
2026    var _select = select(store),
2027        getDownloadableBlocks = _select.getDownloadableBlocks,
2028        isRequestingDownloadableBlocks = _select.isRequestingDownloadableBlocks;
2029  
2030    var _select2 = select(external_wp_blockEditor_["store"]),
2031        canInsertBlockType = _select2.canInsertBlockType;
2032  
2033    var hasPermission = select(external_wp_coreData_["store"]).canUser('read', 'block-directory/search');
2034  
2035    function getInstallableBlocks(term) {
2036      return getDownloadableBlocks(term).filter(function (block) {
2037        return canInsertBlockType(block, rootClientId, true);
2038      });
2039    }
2040  
2041    var downloadableItems = hasPermission ? getInstallableBlocks(filterValue) : [];
2042    var isLoading = isRequestingDownloadableBlocks(filterValue);
2043    return {
2044      downloadableItems: downloadableItems,
2045      hasPermission: hasPermission,
2046      isLoading: isLoading
2047    };
2048  })])(DownloadableBlocksPanel));
2049  
2050  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/plugins/inserter-menu-downloadable-blocks-panel/index.js
2051  
2052  
2053  
2054  /**
2055   * External dependencies
2056   */
2057  
2058  /**
2059   * WordPress dependencies
2060   */
2061  
2062  
2063  
2064  /**
2065   * Internal dependencies
2066   */
2067  
2068  
2069  
2070  function InserterMenuDownloadableBlocksPanel() {
2071    var _useState = Object(external_wp_element_["useState"])(''),
2072        _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
2073        debouncedFilterValue = _useState2[0],
2074        setFilterValue = _useState2[1];
2075  
2076    var debouncedSetFilterValue = Object(external_lodash_["debounce"])(setFilterValue, 400);
2077    return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["__experimentalInserterMenuExtension"], null, function (_ref) {
2078      var onSelect = _ref.onSelect,
2079          onHover = _ref.onHover,
2080          filterValue = _ref.filterValue,
2081          hasItems = _ref.hasItems,
2082          rootClientId = _ref.rootClientId;
2083  
2084      if (debouncedFilterValue !== filterValue) {
2085        debouncedSetFilterValue(filterValue);
2086      }
2087  
2088      if (!debouncedFilterValue) {
2089        return null;
2090      }
2091  
2092      return Object(external_wp_element_["createElement"])(downloadable_blocks_panel, {
2093        onSelect: onSelect,
2094        onHover: onHover,
2095        rootClientId: rootClientId,
2096        filterValue: debouncedFilterValue,
2097        hasLocalBlocks: hasItems,
2098        isTyping: filterValue !== debouncedFilterValue
2099      });
2100    });
2101  }
2102  
2103  /* harmony default export */ var inserter_menu_downloadable_blocks_panel = (InserterMenuDownloadableBlocksPanel);
2104  
2105  // EXTERNAL MODULE: external ["wp","editPost"]
2106  var external_wp_editPost_ = __webpack_require__(279);
2107  
2108  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/compact-list/index.js
2109  
2110  
2111  /**
2112   * WordPress dependencies
2113   */
2114  
2115  /**
2116   * Internal dependencies
2117   */
2118  
2119  
2120  function CompactList(_ref) {
2121    var items = _ref.items;
2122  
2123    if (!items.length) {
2124      return null;
2125    }
2126  
2127    return Object(external_wp_element_["createElement"])("ul", {
2128      className: "block-directory-compact-list"
2129    }, items.map(function (_ref2) {
2130      var icon = _ref2.icon,
2131          id = _ref2.id,
2132          title = _ref2.title,
2133          author = _ref2.author;
2134      return Object(external_wp_element_["createElement"])("li", {
2135        key: id,
2136        className: "block-directory-compact-list__item"
2137      }, Object(external_wp_element_["createElement"])(downloadable_block_icon, {
2138        icon: icon,
2139        title: title
2140      }), Object(external_wp_element_["createElement"])("div", {
2141        className: "block-directory-compact-list__item-details"
2142      }, Object(external_wp_element_["createElement"])("div", {
2143        className: "block-directory-compact-list__item-title"
2144      }, title), Object(external_wp_element_["createElement"])("div", {
2145        className: "block-directory-compact-list__item-author"
2146      }, Object(external_wp_i18n_["sprintf"])(
2147      /* translators: %s: Name of the block author. */
2148      Object(external_wp_i18n_["__"])('By %s'), author))));
2149    }));
2150  }
2151  
2152  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/plugins/installed-blocks-pre-publish-panel/index.js
2153  
2154  
2155  /**
2156   * WordPress dependencies
2157   */
2158  
2159  
2160  
2161  
2162  /**
2163   * Internal dependencies
2164   */
2165  
2166  
2167  
2168  function InstalledBlocksPrePublishPanel() {
2169    var newBlockTypes = Object(external_wp_data_["useSelect"])(function (select) {
2170      return select(store).getNewBlockTypes();
2171    }, []);
2172  
2173    if (!newBlockTypes.length) {
2174      return null;
2175    }
2176  
2177    return Object(external_wp_element_["createElement"])(external_wp_editPost_["PluginPrePublishPanel"], {
2178      icon: block_default["a" /* default */],
2179      title: Object(external_wp_i18n_["sprintf"])( // translators: %d: number of blocks (number).
2180      Object(external_wp_i18n_["_n"])('Added: %d block', 'Added: %d blocks', newBlockTypes.length), newBlockTypes.length),
2181      initialOpen: true
2182    }, Object(external_wp_element_["createElement"])("p", {
2183      className: "installed-blocks-pre-publish-panel__copy"
2184    }, Object(external_wp_i18n_["_n"])('The following block has been added to your site.', 'The following blocks have been added to your site.', newBlockTypes.length)), Object(external_wp_element_["createElement"])(CompactList, {
2185      items: newBlockTypes
2186    }));
2187  }
2188  
2189  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
2190  var objectWithoutProperties = __webpack_require__(14);
2191  
2192  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/plugins/get-install-missing/install-button.js
2193  
2194  
2195  
2196  /**
2197   * WordPress dependencies
2198   */
2199  
2200  
2201  
2202  
2203  
2204  /**
2205   * Internal dependencies
2206   */
2207  
2208  
2209  function InstallButton(_ref) {
2210    var attributes = _ref.attributes,
2211        block = _ref.block,
2212        clientId = _ref.clientId;
2213    var isInstallingBlock = Object(external_wp_data_["useSelect"])(function (select) {
2214      return select(store).isInstalling(block.id);
2215    });
2216  
2217    var _useDispatch = Object(external_wp_data_["useDispatch"])(store),
2218        installBlockType = _useDispatch.installBlockType;
2219  
2220    var _useDispatch2 = Object(external_wp_data_["useDispatch"])(external_wp_blockEditor_["store"]),
2221        replaceBlock = _useDispatch2.replaceBlock;
2222  
2223    return Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
2224      onClick: function onClick() {
2225        return installBlockType(block).then(function (success) {
2226          if (success) {
2227            var blockType = Object(external_wp_blocks_["getBlockType"])(block.name);
2228  
2229            var _parse = Object(external_wp_blocks_["parse"])(attributes.originalContent),
2230                _parse2 = Object(slicedToArray["a" /* default */])(_parse, 1),
2231                originalBlock = _parse2[0];
2232  
2233            if (originalBlock) {
2234              replaceBlock(clientId, Object(external_wp_blocks_["createBlock"])(blockType.name, originalBlock.attributes, originalBlock.innerBlocks));
2235            }
2236          }
2237        });
2238      },
2239      disabled: isInstallingBlock,
2240      isBusy: isInstallingBlock,
2241      isPrimary: true
2242    }, Object(external_wp_i18n_["sprintf"])(
2243    /* translators: %s: block name */
2244    Object(external_wp_i18n_["__"])('Install %s'), block.title));
2245  }
2246  
2247  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/plugins/get-install-missing/index.js
2248  
2249  
2250  
2251  
2252  /**
2253   * WordPress dependencies
2254   */
2255  
2256  
2257  
2258  
2259  
2260  
2261  
2262  /**
2263   * Internal dependencies
2264   */
2265  
2266  
2267  
2268  
2269  var get_install_missing_getInstallMissing = function getInstallMissing(OriginalComponent) {
2270    return function (props) {
2271      var originalName = props.attributes.originalName; // Disable reason: This is a valid component, but it's mistaken for a callback.
2272      // eslint-disable-next-line react-hooks/rules-of-hooks
2273  
2274      var _useSelect = Object(external_wp_data_["useSelect"])(function (select) {
2275        var _select = select(store),
2276            getDownloadableBlocks = _select.getDownloadableBlocks;
2277  
2278        var blocks = getDownloadableBlocks('block:' + originalName).filter(function (_ref) {
2279          var name = _ref.name;
2280          return originalName === name;
2281        });
2282        return {
2283          hasPermission: select(external_wp_coreData_["store"]).canUser('read', 'block-directory/search'),
2284          block: blocks.length && blocks[0]
2285        };
2286      }, [originalName]),
2287          block = _useSelect.block,
2288          hasPermission = _useSelect.hasPermission; // The user can't install blocks, or the block isn't available for download.
2289  
2290  
2291      if (!hasPermission || !block) {
2292        return Object(external_wp_element_["createElement"])(OriginalComponent, props);
2293      }
2294  
2295      return Object(external_wp_element_["createElement"])(get_install_missing_ModifiedWarning, Object(esm_extends["a" /* default */])({}, props, {
2296        originalBlock: block
2297      }));
2298    };
2299  };
2300  
2301  var get_install_missing_ModifiedWarning = function ModifiedWarning(_ref2) {
2302    var originalBlock = _ref2.originalBlock,
2303        props = Object(objectWithoutProperties["a" /* default */])(_ref2, ["originalBlock"]);
2304  
2305    var _props$attributes = props.attributes,
2306        originalName = _props$attributes.originalName,
2307        originalUndelimitedContent = _props$attributes.originalUndelimitedContent;
2308  
2309    var _useDispatch = Object(external_wp_data_["useDispatch"])(external_wp_blockEditor_["store"]),
2310        replaceBlock = _useDispatch.replaceBlock;
2311  
2312    var convertToHTML = function convertToHTML() {
2313      replaceBlock(props.clientId, Object(external_wp_blocks_["createBlock"])('core/html', {
2314        content: originalUndelimitedContent
2315      }));
2316    };
2317  
2318    var hasContent = !!originalUndelimitedContent;
2319    var hasHTMLBlock = Object(external_wp_blocks_["getBlockType"])('core/html');
2320    var messageHTML = Object(external_wp_i18n_["sprintf"])(
2321    /* translators: %s: block name */
2322    Object(external_wp_i18n_["__"])('Your site doesn’t include support for the %s block. You can try installing the block or remove it entirely.'), originalBlock.title || originalName);
2323    var actions = [Object(external_wp_element_["createElement"])(InstallButton, {
2324      key: "install",
2325      block: originalBlock,
2326      attributes: props.attributes,
2327      clientId: props.clientId
2328    })];
2329  
2330    if (hasContent && hasHTMLBlock) {
2331      messageHTML = Object(external_wp_i18n_["sprintf"])(
2332      /* translators: %s: block name */
2333      Object(external_wp_i18n_["__"])('Your site doesn’t include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely.'), originalBlock.title || originalName);
2334      actions.push(Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
2335        key: "convert",
2336        onClick: convertToHTML,
2337        isLink: true
2338      }, Object(external_wp_i18n_["__"])('Keep as HTML')));
2339    }
2340  
2341    return Object(external_wp_element_["createElement"])("div", Object(external_wp_blockEditor_["useBlockProps"])(), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["Warning"], {
2342      actions: actions
2343    }, messageHTML), Object(external_wp_element_["createElement"])(external_wp_element_["RawHTML"], null, originalUndelimitedContent));
2344  };
2345  
2346  /* harmony default export */ var get_install_missing = (get_install_missing_getInstallMissing);
2347  
2348  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/plugins/index.js
2349  
2350  
2351  /**
2352   * WordPress dependencies
2353   */
2354  
2355  
2356  /**
2357   * Internal dependencies
2358   */
2359  
2360  
2361  
2362  
2363  
2364  Object(external_wp_plugins_["registerPlugin"])('block-directory', {
2365    render: function render() {
2366      return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(AutoBlockUninstaller, null), Object(external_wp_element_["createElement"])(inserter_menu_downloadable_blocks_panel, null), Object(external_wp_element_["createElement"])(InstalledBlocksPrePublishPanel, null));
2367    }
2368  });
2369  Object(external_wp_hooks_["addFilter"])('blocks.registerBlockType', 'block-directory/fallback', function (settings, name) {
2370    if (name !== 'core/missing') {
2371      return settings;
2372    }
2373  
2374    settings.edit = get_install_missing(settings.edit);
2375    return settings;
2376  });
2377  
2378  // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/index.js
2379  /**
2380   * Internal dependencies
2381   */
2382  
2383  
2384  
2385  
2386  /***/ }),
2387  
2388  /***/ 46:
2389  /***/ (function(module, exports) {
2390  
2391  (function() { module.exports = window["wp"]["a11y"]; }());
2392  
2393  /***/ }),
2394  
2395  /***/ 48:
2396  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2397  
2398  "use strict";
2399  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; });
2400  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
2401    try {
2402      var info = gen[key](arg);
2403      var value = info.value;
2404    } catch (error) {
2405      reject(error);
2406      return;
2407    }
2408  
2409    if (info.done) {
2410      resolve(value);
2411    } else {
2412      Promise.resolve(value).then(_next, _throw);
2413    }
2414  }
2415  
2416  function _asyncToGenerator(fn) {
2417    return function () {
2418      var self = this,
2419          args = arguments;
2420      return new Promise(function (resolve, reject) {
2421        var gen = fn.apply(self, args);
2422  
2423        function _next(value) {
2424          asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
2425        }
2426  
2427        function _throw(err) {
2428          asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
2429        }
2430  
2431        _next(undefined);
2432      });
2433    };
2434  }
2435  
2436  /***/ }),
2437  
2438  /***/ 49:
2439  /***/ (function(module, exports) {
2440  
2441  (function() { module.exports = window["wp"]["dataControls"]; }());
2442  
2443  /***/ }),
2444  
2445  /***/ 5:
2446  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2447  
2448  "use strict";
2449  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; });
2450  function _defineProperty(obj, key, value) {
2451    if (key in obj) {
2452      Object.defineProperty(obj, key, {
2453        value: value,
2454        enumerable: true,
2455        configurable: true,
2456        writable: true
2457      });
2458    } else {
2459      obj[key] = value;
2460    }
2461  
2462    return obj;
2463  }
2464  
2465  /***/ }),
2466  
2467  /***/ 50:
2468  /***/ (function(module, exports) {
2469  
2470  (function() { module.exports = window["wp"]["apiFetch"]; }());
2471  
2472  /***/ }),
2473  
2474  /***/ 51:
2475  /***/ (function(module, exports) {
2476  
2477  (function() { module.exports = window["wp"]["notices"]; }());
2478  
2479  /***/ }),
2480  
2481  /***/ 57:
2482  /***/ (function(module, exports) {
2483  
2484  (function() { module.exports = window["wp"]["htmlEntities"]; }());
2485  
2486  /***/ }),
2487  
2488  /***/ 6:
2489  /***/ (function(module, exports) {
2490  
2491  (function() { module.exports = window["wp"]["blockEditor"]; }());
2492  
2493  /***/ }),
2494  
2495  /***/ 7:
2496  /***/ (function(module, exports) {
2497  
2498  (function() { module.exports = window["wp"]["primitives"]; }());
2499  
2500  /***/ }),
2501  
2502  /***/ 73:
2503  /***/ (function(module, exports) {
2504  
2505  (function() { module.exports = window["wp"]["plugins"]; }());
2506  
2507  /***/ }),
2508  
2509  /***/ 8:
2510  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2511  
2512  "use strict";
2513  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; });
2514  function _extends() {
2515    _extends = Object.assign || function (target) {
2516      for (var i = 1; i < arguments.length; i++) {
2517        var source = arguments[i];
2518  
2519        for (var key in source) {
2520          if (Object.prototype.hasOwnProperty.call(source, key)) {
2521            target[key] = source[key];
2522          }
2523        }
2524      }
2525  
2526      return target;
2527    };
2528  
2529    return _extends.apply(this, arguments);
2530  }
2531  
2532  /***/ }),
2533  
2534  /***/ 9:
2535  /***/ (function(module, exports) {
2536  
2537  (function() { module.exports = window["wp"]["blocks"]; }());
2538  
2539  /***/ })
2540  
2541  /******/ });


Generated: Fri May 14 01:00:04 2021 Cross-referenced by PHPXref 0.7.1