[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> format-library.js (source)

   1  this["wp"] = this["wp"] || {}; this["wp"]["formatLibrary"] =
   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 = 430);
  86  /******/ })
  87  /************************************************************************/
  88  /******/ ({
  89  
  90  /***/ 0:
  91  /***/ (function(module, exports) {
  92  
  93  (function() { module.exports = this["wp"]["element"]; }());
  94  
  95  /***/ }),
  96  
  97  /***/ 1:
  98  /***/ (function(module, exports) {
  99  
 100  (function() { module.exports = this["wp"]["i18n"]; }());
 101  
 102  /***/ }),
 103  
 104  /***/ 12:
 105  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 106  
 107  "use strict";
 108  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; });
 109  function _extends() {
 110    _extends = Object.assign || function (target) {
 111      for (var i = 1; i < arguments.length; i++) {
 112        var source = arguments[i];
 113  
 114        for (var key in source) {
 115          if (Object.prototype.hasOwnProperty.call(source, key)) {
 116            target[key] = source[key];
 117          }
 118        }
 119      }
 120  
 121      return target;
 122    };
 123  
 124    return _extends.apply(this, arguments);
 125  }
 126  
 127  /***/ }),
 128  
 129  /***/ 13:
 130  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 131  
 132  "use strict";
 133  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; });
 134  function _defineProperties(target, props) {
 135    for (var i = 0; i < props.length; i++) {
 136      var descriptor = props[i];
 137      descriptor.enumerable = descriptor.enumerable || false;
 138      descriptor.configurable = true;
 139      if ("value" in descriptor) descriptor.writable = true;
 140      Object.defineProperty(target, descriptor.key, descriptor);
 141    }
 142  }
 143  
 144  function _createClass(Constructor, protoProps, staticProps) {
 145    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
 146    if (staticProps) _defineProperties(Constructor, staticProps);
 147    return Constructor;
 148  }
 149  
 150  /***/ }),
 151  
 152  /***/ 14:
 153  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 154  
 155  "use strict";
 156  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; });
 157  function _classCallCheck(instance, Constructor) {
 158    if (!(instance instanceof Constructor)) {
 159      throw new TypeError("Cannot call a class as a function");
 160    }
 161  }
 162  
 163  /***/ }),
 164  
 165  /***/ 15:
 166  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 167  
 168  "use strict";
 169  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
 170  /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(34);
 171  /* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
 172  
 173  
 174  function _possibleConstructorReturn(self, call) {
 175    if (call && (Object(_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(call) === "object" || typeof call === "function")) {
 176      return call;
 177    }
 178  
 179    return Object(_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(self);
 180  }
 181  
 182  /***/ }),
 183  
 184  /***/ 159:
 185  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 186  
 187  "use strict";
 188  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 189  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 190  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
 191  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 192  
 193  
 194  /**
 195   * WordPress dependencies
 196   */
 197  
 198  var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 199    xmlns: "http://www.w3.org/2000/svg",
 200    viewBox: "-2 -2 24 24"
 201  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 202    d: "M17.74 2.76c1.68 1.69 1.68 4.41 0 6.1l-1.53 1.52c-1.12 1.12-2.7 1.47-4.14 1.09l2.62-2.61.76-.77.76-.76c.84-.84.84-2.2 0-3.04-.84-.85-2.2-.85-3.04 0l-.77.76-3.38 3.38c-.37-1.44-.02-3.02 1.1-4.14l1.52-1.53c1.69-1.68 4.42-1.68 6.1 0zM8.59 13.43l5.34-5.34c.42-.42.42-1.1 0-1.52-.44-.43-1.13-.39-1.53 0l-5.33 5.34c-.42.42-.42 1.1 0 1.52.44.43 1.13.39 1.52 0zm-.76 2.29l4.14-4.15c.38 1.44.03 3.02-1.09 4.14l-1.52 1.53c-1.69 1.68-4.41 1.68-6.1 0-1.68-1.68-1.68-4.42 0-6.1l1.53-1.52c1.12-1.12 2.7-1.47 4.14-1.1l-4.14 4.15c-.85.84-.85 2.2 0 3.05.84.84 2.2.84 3.04 0z"
 203  }));
 204  /* harmony default export */ __webpack_exports__["a"] = (link);
 205  
 206  
 207  /***/ }),
 208  
 209  /***/ 16:
 210  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 211  
 212  "use strict";
 213  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; });
 214  function _getPrototypeOf(o) {
 215    _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
 216      return o.__proto__ || Object.getPrototypeOf(o);
 217    };
 218    return _getPrototypeOf(o);
 219  }
 220  
 221  /***/ }),
 222  
 223  /***/ 17:
 224  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 225  
 226  "use strict";
 227  
 228  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
 229  function _setPrototypeOf(o, p) {
 230    _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
 231      o.__proto__ = p;
 232      return o;
 233    };
 234  
 235    return _setPrototypeOf(o, p);
 236  }
 237  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
 238  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _inherits; });
 239  
 240  function _inherits(subClass, superClass) {
 241    if (typeof superClass !== "function" && superClass !== null) {
 242      throw new TypeError("Super expression must either be null or a function");
 243    }
 244  
 245    subClass.prototype = Object.create(superClass && superClass.prototype, {
 246      constructor: {
 247        value: subClass,
 248        writable: true,
 249        configurable: true
 250      }
 251    });
 252    if (superClass) _setPrototypeOf(subClass, superClass);
 253  }
 254  
 255  /***/ }),
 256  
 257  /***/ 19:
 258  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 259  
 260  "use strict";
 261  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
 262  /* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43);
 263  
 264  function _objectWithoutProperties(source, excluded) {
 265    if (source == null) return {};
 266    var target = Object(_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
 267    var key, i;
 268  
 269    if (Object.getOwnPropertySymbols) {
 270      var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
 271  
 272      for (i = 0; i < sourceSymbolKeys.length; i++) {
 273        key = sourceSymbolKeys[i];
 274        if (excluded.indexOf(key) >= 0) continue;
 275        if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
 276        target[key] = source[key];
 277      }
 278    }
 279  
 280    return target;
 281  }
 282  
 283  /***/ }),
 284  
 285  /***/ 192:
 286  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 287  
 288  "use strict";
 289  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 290  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 291  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
 292  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 293  
 294  
 295  /**
 296   * WordPress dependencies
 297   */
 298  
 299  var keyboardReturn = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 300    xmlns: "http://www.w3.org/2000/svg",
 301    viewBox: "-2 -2 24 24"
 302  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 303    d: "M16 4h2v9H7v3l-5-4 5-4v3h9V4z"
 304  }));
 305  /* harmony default export */ __webpack_exports__["a"] = (keyboardReturn);
 306  
 307  
 308  /***/ }),
 309  
 310  /***/ 2:
 311  /***/ (function(module, exports) {
 312  
 313  (function() { module.exports = this["lodash"]; }());
 314  
 315  /***/ }),
 316  
 317  /***/ 20:
 318  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 319  
 320  "use strict";
 321  
 322  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
 323  var arrayWithHoles = __webpack_require__(38);
 324  
 325  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
 326  function _iterableToArrayLimit(arr, i) {
 327    if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
 328    var _arr = [];
 329    var _n = true;
 330    var _d = false;
 331    var _e = undefined;
 332  
 333    try {
 334      for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
 335        _arr.push(_s.value);
 336  
 337        if (i && _arr.length === i) break;
 338      }
 339    } catch (err) {
 340      _d = true;
 341      _e = err;
 342    } finally {
 343      try {
 344        if (!_n && _i["return"] != null) _i["return"]();
 345      } finally {
 346        if (_d) throw _e;
 347      }
 348    }
 349  
 350    return _arr;
 351  }
 352  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
 353  var unsupportedIterableToArray = __webpack_require__(27);
 354  
 355  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
 356  var nonIterableRest = __webpack_require__(39);
 357  
 358  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
 359  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; });
 360  
 361  
 362  
 363  
 364  function _slicedToArray(arr, i) {
 365    return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(unsupportedIterableToArray["a" /* default */])(arr, i) || Object(nonIterableRest["a" /* default */])();
 366  }
 367  
 368  /***/ }),
 369  
 370  /***/ 22:
 371  /***/ (function(module, exports) {
 372  
 373  (function() { module.exports = this["wp"]["keycodes"]; }());
 374  
 375  /***/ }),
 376  
 377  /***/ 24:
 378  /***/ (function(module, exports) {
 379  
 380  (function() { module.exports = this["wp"]["richText"]; }());
 381  
 382  /***/ }),
 383  
 384  /***/ 25:
 385  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 386  
 387  "use strict";
 388  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayLikeToArray; });
 389  function _arrayLikeToArray(arr, len) {
 390    if (len == null || len > arr.length) len = arr.length;
 391  
 392    for (var i = 0, arr2 = new Array(len); i < len; i++) {
 393      arr2[i] = arr[i];
 394    }
 395  
 396    return arr2;
 397  }
 398  
 399  /***/ }),
 400  
 401  /***/ 27:
 402  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 403  
 404  "use strict";
 405  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; });
 406  /* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25);
 407  
 408  function _unsupportedIterableToArray(o, minLen) {
 409    if (!o) return;
 410    if (typeof o === "string") return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
 411    var n = Object.prototype.toString.call(o).slice(8, -1);
 412    if (n === "Object" && o.constructor) n = o.constructor.name;
 413    if (n === "Map" || n === "Set") return Array.from(n);
 414    if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
 415  }
 416  
 417  /***/ }),
 418  
 419  /***/ 28:
 420  /***/ (function(module, exports) {
 421  
 422  (function() { module.exports = this["wp"]["dom"]; }());
 423  
 424  /***/ }),
 425  
 426  /***/ 290:
 427  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 428  
 429  "use strict";
 430  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 431  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 432  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
 433  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 434  
 435  
 436  /**
 437   * WordPress dependencies
 438   */
 439  
 440  var code = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 441    viewBox: "0 0 24 24",
 442    xmlns: "http://www.w3.org/2000/svg"
 443  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 444    d: "M9.4,16.6L4.8,12l4.6-4.6L8,6l-6,6l6,6L9.4,16.6z M14.6,16.6l4.6-4.6l-4.6-4.6L16,6l6,6l-6,6L14.6,16.6z"
 445  }));
 446  /* harmony default export */ __webpack_exports__["a"] = (code);
 447  
 448  
 449  /***/ }),
 450  
 451  /***/ 3:
 452  /***/ (function(module, exports) {
 453  
 454  (function() { module.exports = this["wp"]["components"]; }());
 455  
 456  /***/ }),
 457  
 458  /***/ 30:
 459  /***/ (function(module, exports) {
 460  
 461  (function() { module.exports = this["wp"]["url"]; }());
 462  
 463  /***/ }),
 464  
 465  /***/ 34:
 466  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 467  
 468  "use strict";
 469  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; });
 470  function _typeof(obj) {
 471    "@babel/helpers - typeof";
 472  
 473    if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
 474      _typeof = function _typeof(obj) {
 475        return typeof obj;
 476      };
 477    } else {
 478      _typeof = function _typeof(obj) {
 479        return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
 480      };
 481    }
 482  
 483    return _typeof(obj);
 484  }
 485  
 486  /***/ }),
 487  
 488  /***/ 38:
 489  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 490  
 491  "use strict";
 492  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; });
 493  function _arrayWithHoles(arr) {
 494    if (Array.isArray(arr)) return arr;
 495  }
 496  
 497  /***/ }),
 498  
 499  /***/ 39:
 500  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 501  
 502  "use strict";
 503  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; });
 504  function _nonIterableRest() {
 505    throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
 506  }
 507  
 508  /***/ }),
 509  
 510  /***/ 4:
 511  /***/ (function(module, exports) {
 512  
 513  (function() { module.exports = this["wp"]["data"]; }());
 514  
 515  /***/ }),
 516  
 517  /***/ 43:
 518  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 519  
 520  "use strict";
 521  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; });
 522  function _objectWithoutPropertiesLoose(source, excluded) {
 523    if (source == null) return {};
 524    var target = {};
 525    var sourceKeys = Object.keys(source);
 526    var key, i;
 527  
 528    for (i = 0; i < sourceKeys.length; i++) {
 529      key = sourceKeys[i];
 530      if (excluded.indexOf(key) >= 0) continue;
 531      target[key] = source[key];
 532    }
 533  
 534    return target;
 535  }
 536  
 537  /***/ }),
 538  
 539  /***/ 430:
 540  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 541  
 542  "use strict";
 543  __webpack_require__.r(__webpack_exports__);
 544  
 545  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
 546  var objectWithoutProperties = __webpack_require__(19);
 547  
 548  // EXTERNAL MODULE: external {"this":["wp","richText"]}
 549  var external_this_wp_richText_ = __webpack_require__(24);
 550  
 551  // EXTERNAL MODULE: external {"this":["wp","element"]}
 552  var external_this_wp_element_ = __webpack_require__(0);
 553  
 554  // EXTERNAL MODULE: external {"this":["wp","i18n"]}
 555  var external_this_wp_i18n_ = __webpack_require__(1);
 556  
 557  // EXTERNAL MODULE: external {"this":["wp","blockEditor"]}
 558  var external_this_wp_blockEditor_ = __webpack_require__(6);
 559  
 560  // EXTERNAL MODULE: external {"this":["wp","primitives"]}
 561  var external_this_wp_primitives_ = __webpack_require__(9);
 562  
 563  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-bold.js
 564  
 565  
 566  /**
 567   * WordPress dependencies
 568   */
 569  
 570  var formatBold = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], {
 571    xmlns: "http://www.w3.org/2000/svg",
 572    viewBox: "-2 -2 24 24"
 573  }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], {
 574    d: "M6 4v13h4.54c1.37 0 2.46-.33 3.26-1 .8-.66 1.2-1.58 1.2-2.77 0-.84-.17-1.51-.51-2.01s-.9-.85-1.67-1.03v-.09c.57-.1 1.02-.4 1.36-.9s.51-1.13.51-1.91c0-1.14-.39-1.98-1.17-2.5C12.75 4.26 11.5 4 9.78 4H6zm2.57 5.15V6.26h1.36c.73 0 1.27.11 1.61.32.34.22.51.58.51 1.07 0 .54-.16.92-.47 1.15s-.82.35-1.51.35h-1.5zm0 2.19h1.6c1.44 0 2.16.53 2.16 1.61 0 .6-.17 1.05-.51 1.34s-.86.43-1.57.43H8.57v-3.38z"
 575  }));
 576  /* harmony default export */ var format_bold = (formatBold);
 577  
 578  // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/bold/index.js
 579  
 580  
 581  /**
 582   * WordPress dependencies
 583   */
 584  
 585  
 586  
 587  
 588  var bold_name = 'core/bold';
 589  
 590  var title = Object(external_this_wp_i18n_["__"])('Bold');
 591  
 592  var bold = {
 593    name: bold_name,
 594    title: title,
 595    tagName: 'strong',
 596    className: null,
 597    edit: function edit(_ref) {
 598      var isActive = _ref.isActive,
 599          value = _ref.value,
 600          onChange = _ref.onChange,
 601          onFocus = _ref.onFocus;
 602  
 603      function onToggle() {
 604        onChange(Object(external_this_wp_richText_["toggleFormat"])(value, {
 605          type: bold_name
 606        }));
 607      }
 608  
 609      function onClick() {
 610        onToggle();
 611        onFocus();
 612      }
 613  
 614      return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], {
 615        type: "primary",
 616        character: "b",
 617        onUse: onToggle
 618      }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextToolbarButton"], {
 619        name: "bold",
 620        icon: format_bold,
 621        title: title,
 622        onClick: onClick,
 623        isActive: isActive,
 624        shortcutType: "primary",
 625        shortcutCharacter: "b"
 626      }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__unstableRichTextInputEvent"], {
 627        inputType: "formatBold",
 628        onInput: onToggle
 629      }));
 630    }
 631  };
 632  
 633  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/code.js
 634  var code = __webpack_require__(290);
 635  
 636  // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/code/index.js
 637  
 638  
 639  /**
 640   * WordPress dependencies
 641   */
 642  
 643  
 644  
 645  
 646  var code_name = 'core/code';
 647  
 648  var code_title = Object(external_this_wp_i18n_["__"])('Inline Code');
 649  
 650  var code_code = {
 651    name: code_name,
 652    title: code_title,
 653    tagName: 'code',
 654    className: null,
 655    __unstableInputRule: function __unstableInputRule(value) {
 656      var BACKTICK = '`';
 657      var _value = value,
 658          start = _value.start,
 659          text = _value.text;
 660      var characterBefore = text.slice(start - 1, start); // Quick check the text for the necessary character.
 661  
 662      if (characterBefore !== BACKTICK) {
 663        return value;
 664      }
 665  
 666      var textBefore = text.slice(0, start - 1);
 667      var indexBefore = textBefore.lastIndexOf(BACKTICK);
 668  
 669      if (indexBefore === -1) {
 670        return value;
 671      }
 672  
 673      var startIndex = indexBefore;
 674      var endIndex = start - 2;
 675  
 676      if (startIndex === endIndex) {
 677        return value;
 678      }
 679  
 680      value = Object(external_this_wp_richText_["remove"])(value, startIndex, startIndex + 1);
 681      value = Object(external_this_wp_richText_["remove"])(value, endIndex, endIndex + 1);
 682      value = Object(external_this_wp_richText_["applyFormat"])(value, {
 683        type: code_name
 684      }, startIndex, endIndex);
 685      return value;
 686    },
 687    edit: function edit(_ref) {
 688      var value = _ref.value,
 689          onChange = _ref.onChange,
 690          onFocus = _ref.onFocus,
 691          isActive = _ref.isActive;
 692  
 693      function onClick() {
 694        onChange(Object(external_this_wp_richText_["toggleFormat"])(value, {
 695          type: code_name
 696        }));
 697        onFocus();
 698      }
 699  
 700      return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextToolbarButton"], {
 701        icon: code["a" /* default */],
 702        title: code_title,
 703        onClick: onClick,
 704        isActive: isActive
 705      });
 706    }
 707  };
 708  
 709  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
 710  var defineProperty = __webpack_require__(5);
 711  
 712  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
 713  var classCallCheck = __webpack_require__(14);
 714  
 715  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
 716  var createClass = __webpack_require__(13);
 717  
 718  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
 719  var possibleConstructorReturn = __webpack_require__(15);
 720  
 721  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
 722  var getPrototypeOf = __webpack_require__(16);
 723  
 724  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
 725  var assertThisInitialized = __webpack_require__(7);
 726  
 727  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules
 728  var inherits = __webpack_require__(17);
 729  
 730  // EXTERNAL MODULE: external {"this":["wp","components"]}
 731  var external_this_wp_components_ = __webpack_require__(3);
 732  
 733  // EXTERNAL MODULE: external {"this":["wp","keycodes"]}
 734  var external_this_wp_keycodes_ = __webpack_require__(22);
 735  
 736  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-return.js
 737  var keyboard_return = __webpack_require__(192);
 738  
 739  // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/image/index.js
 740  
 741  
 742  
 743  
 744  
 745  
 746  
 747  
 748  
 749  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; }
 750  
 751  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; }
 752  
 753  /**
 754   * WordPress dependencies
 755   */
 756  
 757  
 758  
 759  
 760  
 761  
 762  
 763  var ALLOWED_MEDIA_TYPES = ['image'];
 764  var image_name = 'core/image';
 765  
 766  var image_title = Object(external_this_wp_i18n_["__"])('Inline image');
 767  
 768  var stopKeyPropagation = function stopKeyPropagation(event) {
 769    return event.stopPropagation();
 770  };
 771  
 772  function getRange() {
 773    var selection = window.getSelection();
 774    return selection.rangeCount ? selection.getRangeAt(0) : null;
 775  }
 776  
 777  var image_image = {
 778    name: image_name,
 779    title: image_title,
 780    keywords: [Object(external_this_wp_i18n_["__"])('photo'), Object(external_this_wp_i18n_["__"])('media')],
 781    object: true,
 782    tagName: 'img',
 783    className: null,
 784    attributes: {
 785      className: 'class',
 786      style: 'style',
 787      url: 'src',
 788      alt: 'alt'
 789    },
 790    edit:
 791    /*#__PURE__*/
 792    function (_Component) {
 793      Object(inherits["a" /* default */])(ImageEdit, _Component);
 794  
 795      function ImageEdit() {
 796        var _this;
 797  
 798        Object(classCallCheck["a" /* default */])(this, ImageEdit);
 799  
 800        _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ImageEdit).apply(this, arguments));
 801        _this.onChange = _this.onChange.bind(Object(assertThisInitialized["a" /* default */])(_this));
 802        _this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(_this));
 803        _this.openModal = _this.openModal.bind(Object(assertThisInitialized["a" /* default */])(_this));
 804        _this.closeModal = _this.closeModal.bind(Object(assertThisInitialized["a" /* default */])(_this));
 805        _this.anchorRef = null;
 806        _this.state = {
 807          modal: false
 808        };
 809        return _this;
 810      }
 811  
 812      Object(createClass["a" /* default */])(ImageEdit, [{
 813        key: "onChange",
 814        value: function onChange(width) {
 815          this.setState({
 816            width: width
 817          });
 818        }
 819      }, {
 820        key: "onKeyDown",
 821        value: function onKeyDown(event) {
 822          if ([external_this_wp_keycodes_["LEFT"], external_this_wp_keycodes_["DOWN"], external_this_wp_keycodes_["RIGHT"], external_this_wp_keycodes_["UP"], external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["ENTER"]].indexOf(event.keyCode) > -1) {
 823            // Stop the key event from propagating up to ObserveTyping.startTypingInTextField.
 824            event.stopPropagation();
 825          }
 826        }
 827      }, {
 828        key: "openModal",
 829        value: function openModal() {
 830          this.setState({
 831            modal: true
 832          });
 833        }
 834      }, {
 835        key: "closeModal",
 836        value: function closeModal() {
 837          this.setState({
 838            modal: false
 839          });
 840        }
 841      }, {
 842        key: "componentDidMount",
 843        value: function componentDidMount() {
 844          this.anchorRef = getRange();
 845        }
 846      }, {
 847        key: "componentDidUpdate",
 848        value: function componentDidUpdate(prevProps) {
 849          // When the popover is open or when the selected image changes,
 850          // update the anchorRef.
 851          if (!prevProps.isObjectActive && this.props.isObjectActive || prevProps.activeObjectAttributes.url !== this.props.activeObjectAttributes.url) {
 852            this.anchorRef = getRange();
 853          }
 854        }
 855      }, {
 856        key: "render",
 857        value: function render() {
 858          var _this2 = this;
 859  
 860          var _this$props = this.props,
 861              value = _this$props.value,
 862              onChange = _this$props.onChange,
 863              onFocus = _this$props.onFocus,
 864              isObjectActive = _this$props.isObjectActive,
 865              activeObjectAttributes = _this$props.activeObjectAttributes;
 866          return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextToolbarButton"], {
 867            icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
 868              xmlns: "http://www.w3.org/2000/svg",
 869              viewBox: "0 0 24 24"
 870            }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
 871              d: "M4 16h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2zM4 5h10v9H4V5zm14 9v2h4v-2h-4zM2 20h20v-2H2v2zm6.4-8.8L7 9.4 5 12h8l-2.6-3.4-2 2.6z"
 872            })),
 873            title: image_title,
 874            onClick: this.openModal,
 875            isActive: isObjectActive
 876          }), this.state.modal && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], {
 877            allowedTypes: ALLOWED_MEDIA_TYPES,
 878            onSelect: function onSelect(_ref) {
 879              var id = _ref.id,
 880                  url = _ref.url,
 881                  alt = _ref.alt,
 882                  width = _ref.width;
 883  
 884              _this2.closeModal();
 885  
 886              onChange(Object(external_this_wp_richText_["insertObject"])(value, {
 887                type: image_name,
 888                attributes: {
 889                  className: "wp-image-".concat(id),
 890                  style: "width: ".concat(Math.min(width, 150), "px;"),
 891                  url: url,
 892                  alt: alt
 893                }
 894              }));
 895              onFocus();
 896            },
 897            onClose: this.closeModal,
 898            render: function render(_ref2) {
 899              var open = _ref2.open;
 900              open();
 901              return null;
 902            }
 903          }), isObjectActive && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], {
 904            position: "bottom center",
 905            focusOnMount: false,
 906            anchorRef: this.anchorRef
 907          }, Object(external_this_wp_element_["createElement"])("form", {
 908            className: "block-editor-format-toolbar__image-container-content",
 909            onKeyPress: stopKeyPropagation,
 910            onKeyDown: this.onKeyDown,
 911            onSubmit: function onSubmit(event) {
 912              var newReplacements = value.replacements.slice();
 913              newReplacements[value.start] = {
 914                type: image_name,
 915                attributes: _objectSpread({}, activeObjectAttributes, {
 916                  style: "width: ".concat(_this2.state.width, "px;")
 917                })
 918              };
 919              onChange(_objectSpread({}, value, {
 920                replacements: newReplacements
 921              }));
 922              event.preventDefault();
 923            }
 924          }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], {
 925            className: "block-editor-format-toolbar__image-container-value",
 926            type: "number",
 927            label: Object(external_this_wp_i18n_["__"])('Width'),
 928            value: this.state.width,
 929            min: 1,
 930            onChange: this.onChange
 931          }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
 932            icon: keyboard_return["a" /* default */],
 933            label: Object(external_this_wp_i18n_["__"])('Apply'),
 934            type: "submit"
 935          }))));
 936        }
 937      }], [{
 938        key: "getDerivedStateFromProps",
 939        value: function getDerivedStateFromProps(props, state) {
 940          var style = props.activeObjectAttributes.style;
 941  
 942          if (style === state.previousStyle) {
 943            return null;
 944          }
 945  
 946          if (!style) {
 947            return {
 948              width: undefined,
 949              previousStyle: style
 950            };
 951          }
 952  
 953          return {
 954            width: style.replace(/\D/g, ''),
 955            previousStyle: style
 956          };
 957        }
 958      }]);
 959  
 960      return ImageEdit;
 961    }(external_this_wp_element_["Component"])
 962  };
 963  
 964  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-italic.js
 965  
 966  
 967  /**
 968   * WordPress dependencies
 969   */
 970  
 971  var formatItalic = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], {
 972    xmlns: "http://www.w3.org/2000/svg",
 973    viewBox: "-2 -2 24 24"
 974  }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], {
 975    d: "M14.78 6h-2.13l-2.8 9h2.12l-.62 2H4.6l.62-2h2.14l2.8-9H8.03l.62-2h6.75z"
 976  }));
 977  /* harmony default export */ var format_italic = (formatItalic);
 978  
 979  // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/italic/index.js
 980  
 981  
 982  /**
 983   * WordPress dependencies
 984   */
 985  
 986  
 987  
 988  
 989  var italic_name = 'core/italic';
 990  
 991  var italic_title = Object(external_this_wp_i18n_["__"])('Italic');
 992  
 993  var italic = {
 994    name: italic_name,
 995    title: italic_title,
 996    tagName: 'em',
 997    className: null,
 998    edit: function edit(_ref) {
 999      var isActive = _ref.isActive,
1000          value = _ref.value,
1001          onChange = _ref.onChange,
1002          onFocus = _ref.onFocus;
1003  
1004      function onToggle() {
1005        onChange(Object(external_this_wp_richText_["toggleFormat"])(value, {
1006          type: italic_name
1007        }));
1008      }
1009  
1010      function onClick() {
1011        onToggle();
1012        onFocus();
1013      }
1014  
1015      return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], {
1016        type: "primary",
1017        character: "i",
1018        onUse: onToggle
1019      }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextToolbarButton"], {
1020        name: "italic",
1021        icon: format_italic,
1022        title: italic_title,
1023        onClick: onClick,
1024        isActive: isActive,
1025        shortcutType: "primary",
1026        shortcutCharacter: "i"
1027      }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__unstableRichTextInputEvent"], {
1028        inputType: "formatItalic",
1029        onInput: onToggle
1030      }));
1031    }
1032  };
1033  
1034  // EXTERNAL MODULE: external {"this":["wp","url"]}
1035  var external_this_wp_url_ = __webpack_require__(30);
1036  
1037  // EXTERNAL MODULE: external {"this":["wp","htmlEntities"]}
1038  var external_this_wp_htmlEntities_ = __webpack_require__(58);
1039  
1040  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/link-off.js
1041  
1042  
1043  /**
1044   * WordPress dependencies
1045   */
1046  
1047  var linkOff = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], {
1048    xmlns: "http://www.w3.org/2000/svg",
1049    viewBox: "-2 -2 24 24"
1050  }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], {
1051    d: "M17.74 2.26c1.68 1.69 1.68 4.41 0 6.1l-1.53 1.52c-.32.33-.69.58-1.08.77L13 10l1.69-1.64.76-.77.76-.76c.84-.84.84-2.2 0-3.04-.84-.85-2.2-.85-3.04 0l-.77.76-.76.76L10 7l-.65-2.14c.19-.38.44-.75.77-1.07l1.52-1.53c1.69-1.68 4.42-1.68 6.1 0zM2 4l8 6-6-8zm4-2l4 8-2-8H6zM2 6l8 4-8-2V6zm7.36 7.69L10 13l.74 2.35-1.38 1.39c-1.69 1.68-4.41 1.68-6.1 0-1.68-1.68-1.68-4.42 0-6.1l1.39-1.38L7 10l-.69.64-1.52 1.53c-.85.84-.85 2.2 0 3.04.84.85 2.2.85 3.04 0zM18 16l-8-6 6 8zm-4 2l-4-8 2 8h2zm4-4l-8-4 8 2v2z"
1052  }));
1053  /* harmony default export */ var link_off = (linkOff);
1054  
1055  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js
1056  var library_link = __webpack_require__(159);
1057  
1058  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
1059  var slicedToArray = __webpack_require__(20);
1060  
1061  // EXTERNAL MODULE: external {"this":"lodash"}
1062  var external_this_lodash_ = __webpack_require__(2);
1063  
1064  // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/link/utils.js
1065  /**
1066   * External dependencies
1067   */
1068  
1069  /**
1070   * WordPress dependencies
1071   */
1072  
1073  
1074  /**
1075   * Check for issues with the provided href.
1076   *
1077   * @param {string} href The href.
1078   *
1079   * @return {boolean} Is the href invalid?
1080   */
1081  
1082  function isValidHref(href) {
1083    if (!href) {
1084      return false;
1085    }
1086  
1087    var trimmedHref = href.trim();
1088  
1089    if (!trimmedHref) {
1090      return false;
1091    } // Does the href start with something that looks like a URL protocol?
1092  
1093  
1094    if (/^\S+:/.test(trimmedHref)) {
1095      var protocol = Object(external_this_wp_url_["getProtocol"])(trimmedHref);
1096  
1097      if (!Object(external_this_wp_url_["isValidProtocol"])(protocol)) {
1098        return false;
1099      } // Add some extra checks for http(s) URIs, since these are the most common use-case.
1100      // This ensures URIs with an http protocol have exactly two forward slashes following the protocol.
1101  
1102  
1103      if (Object(external_this_lodash_["startsWith"])(protocol, 'http') && !/^https?:\/\/[^\/\s]/i.test(trimmedHref)) {
1104        return false;
1105      }
1106  
1107      var authority = Object(external_this_wp_url_["getAuthority"])(trimmedHref);
1108  
1109      if (!Object(external_this_wp_url_["isValidAuthority"])(authority)) {
1110        return false;
1111      }
1112  
1113      var path = Object(external_this_wp_url_["getPath"])(trimmedHref);
1114  
1115      if (path && !Object(external_this_wp_url_["isValidPath"])(path)) {
1116        return false;
1117      }
1118  
1119      var queryString = Object(external_this_wp_url_["getQueryString"])(trimmedHref);
1120  
1121      if (queryString && !Object(external_this_wp_url_["isValidQueryString"])(queryString)) {
1122        return false;
1123      }
1124  
1125      var fragment = Object(external_this_wp_url_["getFragment"])(trimmedHref);
1126  
1127      if (fragment && !Object(external_this_wp_url_["isValidFragment"])(fragment)) {
1128        return false;
1129      }
1130    } // Validate anchor links.
1131  
1132  
1133    if (Object(external_this_lodash_["startsWith"])(trimmedHref, '#') && !Object(external_this_wp_url_["isValidFragment"])(trimmedHref)) {
1134      return false;
1135    }
1136  
1137    return true;
1138  }
1139  /**
1140   * Generates the format object that will be applied to the link text.
1141   *
1142   * @param {Object}  options
1143   * @param {string}  options.url              The href of the link.
1144   * @param {boolean} options.opensInNewWindow Whether this link will open in a new window.
1145   * @param {Object}  options.text             The text that is being hyperlinked.
1146   *
1147   * @return {Object} The final format object.
1148   */
1149  
1150  function createLinkFormat(_ref) {
1151    var url = _ref.url,
1152        opensInNewWindow = _ref.opensInNewWindow;
1153    var format = {
1154      type: 'core/link',
1155      attributes: {
1156        url: url
1157      }
1158    };
1159  
1160    if (opensInNewWindow) {
1161      format.attributes.target = '_blank';
1162      format.attributes.rel = 'noreferrer noopener';
1163    }
1164  
1165    return format;
1166  }
1167  
1168  // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/link/inline.js
1169  
1170  
1171  
1172  
1173  function inline_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; }
1174  
1175  function inline_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { inline_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 { inline_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1176  
1177  /**
1178   * External dependencies
1179   */
1180  
1181  /**
1182   * WordPress dependencies
1183   */
1184  
1185  
1186  
1187  
1188  
1189  
1190  
1191  /**
1192   * Internal dependencies
1193   */
1194  
1195  
1196  
1197  function InlineLinkUI(_ref) {
1198    var isActive = _ref.isActive,
1199        activeAttributes = _ref.activeAttributes,
1200        addingLink = _ref.addingLink,
1201        value = _ref.value,
1202        onChange = _ref.onChange,
1203        speak = _ref.speak,
1204        stopAddingLink = _ref.stopAddingLink;
1205  
1206    /**
1207     * A unique key is generated when switching between editing and not editing
1208     * a link, based on:
1209     *
1210     * - This component may be rendered _either_ when a link is active _or_
1211     *   when adding or editing a link.
1212     * - It's only desirable to shift focus into the Popover when explicitly
1213     *   adding or editing a link, not when in the inline boundary of a link.
1214     * - Focus behavior can only be controlled on a Popover at the time it
1215     *   mounts, so a new instance of the component must be mounted to
1216     *   programmatically enact the focusOnMount behavior.
1217     *
1218     * @type {string}
1219     */
1220    var mountingKey = Object(external_this_wp_element_["useMemo"])(external_this_lodash_["uniqueId"], [addingLink]);
1221    /**
1222     * Pending settings to be applied to the next link. When inserting a new
1223     * link, toggle values cannot be applied immediately, because there is not
1224     * yet a link for them to apply to. Thus, they are maintained in a state
1225     * value until the time that the link can be inserted or edited.
1226     *
1227     * @type {[Object|undefined,Function]}
1228     */
1229  
1230    var _useState = Object(external_this_wp_element_["useState"])(),
1231        _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
1232        nextLinkValue = _useState2[0],
1233        setNextLinkValue = _useState2[1];
1234  
1235    var anchorRef = Object(external_this_wp_element_["useMemo"])(function () {
1236      var selection = window.getSelection();
1237  
1238      if (!selection.rangeCount) {
1239        return;
1240      }
1241  
1242      var range = selection.getRangeAt(0);
1243  
1244      if (addingLink && !isActive) {
1245        return range;
1246      }
1247  
1248      var element = range.startContainer; // If the caret is right before the element, select the next element.
1249  
1250      element = element.nextElementSibling || element;
1251  
1252      while (element.nodeType !== window.Node.ELEMENT_NODE) {
1253        element = element.parentNode;
1254      }
1255  
1256      return element.closest('a');
1257    }, [addingLink, value.start, value.end]);
1258  
1259    var linkValue = inline_objectSpread({
1260      url: activeAttributes.url,
1261      opensInNewTab: activeAttributes.target === '_blank'
1262    }, nextLinkValue);
1263  
1264    function onChangeLink(nextValue) {
1265      // Merge with values from state, both for the purpose of assigning the
1266      // next state value, and for use in constructing the new link format if
1267      // the link is ready to be applied.
1268      nextValue = inline_objectSpread({}, nextLinkValue, {}, nextValue); // LinkControl calls `onChange` immediately upon the toggling a setting.
1269  
1270      var didToggleSetting = linkValue.opensInNewTab !== nextValue.opensInNewTab && linkValue.url === nextValue.url; // If change handler was called as a result of a settings change during
1271      // link insertion, it must be held in state until the link is ready to
1272      // be applied.
1273  
1274      var didToggleSettingForNewLink = didToggleSetting && nextValue.url === undefined; // If link will be assigned, the state value can be considered flushed.
1275      // Otherwise, persist the pending changes.
1276  
1277      setNextLinkValue(didToggleSettingForNewLink ? nextValue : undefined);
1278  
1279      if (didToggleSettingForNewLink) {
1280        return;
1281      }
1282  
1283      var newUrl = Object(external_this_wp_url_["prependHTTP"])(nextValue.url);
1284      var format = createLinkFormat({
1285        url: newUrl,
1286        opensInNewWindow: nextValue.opensInNewTab
1287      });
1288  
1289      if (Object(external_this_wp_richText_["isCollapsed"])(value) && !isActive) {
1290        var toInsert = Object(external_this_wp_richText_["applyFormat"])(Object(external_this_wp_richText_["create"])({
1291          text: newUrl
1292        }), format, 0, newUrl.length);
1293        onChange(Object(external_this_wp_richText_["insert"])(value, toInsert));
1294      } else {
1295        onChange(Object(external_this_wp_richText_["applyFormat"])(value, format));
1296      } // Focus should only be shifted back to the formatted segment when the
1297      // URL is submitted.
1298  
1299  
1300      if (!didToggleSetting) {
1301        stopAddingLink();
1302      }
1303  
1304      if (!isValidHref(newUrl)) {
1305        speak(Object(external_this_wp_i18n_["__"])('Warning: the link has been inserted but may have errors. Please test it.'), 'assertive');
1306      } else if (isActive) {
1307        speak(Object(external_this_wp_i18n_["__"])('Link edited.'), 'assertive');
1308      } else {
1309        speak(Object(external_this_wp_i18n_["__"])('Link inserted.'), 'assertive');
1310      }
1311    }
1312  
1313    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], {
1314      key: mountingKey,
1315      anchorRef: anchorRef,
1316      focusOnMount: addingLink ? 'firstElement' : false,
1317      onClose: stopAddingLink,
1318      position: "bottom center"
1319    }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalLinkControl"], {
1320      value: linkValue,
1321      onChange: onChangeLink,
1322      forceIsEditingLink: addingLink
1323    }));
1324  }
1325  
1326  /* harmony default export */ var inline = (Object(external_this_wp_components_["withSpokenMessages"])(InlineLinkUI));
1327  
1328  // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/link/index.js
1329  
1330  
1331  
1332  
1333  
1334  
1335  
1336  
1337  /**
1338   * WordPress dependencies
1339   */
1340  
1341  
1342  
1343  
1344  
1345  
1346  
1347  
1348  /**
1349   * Internal dependencies
1350   */
1351  
1352  
1353  var link_name = 'core/link';
1354  
1355  var link_title = Object(external_this_wp_i18n_["__"])('Link');
1356  
1357  var link_link = {
1358    name: link_name,
1359    title: link_title,
1360    tagName: 'a',
1361    className: null,
1362    attributes: {
1363      url: 'href',
1364      target: 'target'
1365    },
1366    __unstablePasteRule: function __unstablePasteRule(value, _ref) {
1367      var html = _ref.html,
1368          plainText = _ref.plainText;
1369  
1370      if (Object(external_this_wp_richText_["isCollapsed"])(value)) {
1371        return value;
1372      }
1373  
1374      var pastedText = (html || plainText).replace(/<[^>]+>/g, '').trim(); // A URL was pasted, turn the selection into a link
1375  
1376      if (!Object(external_this_wp_url_["isURL"])(pastedText)) {
1377        return value;
1378      } // Allows us to ask for this information when we get a report.
1379  
1380  
1381      window.console.log('Created link:\n\n', pastedText);
1382      return Object(external_this_wp_richText_["applyFormat"])(value, {
1383        type: link_name,
1384        attributes: {
1385          url: Object(external_this_wp_htmlEntities_["decodeEntities"])(pastedText)
1386        }
1387      });
1388    },
1389    edit: Object(external_this_wp_components_["withSpokenMessages"])(
1390    /*#__PURE__*/
1391    function (_Component) {
1392      Object(inherits["a" /* default */])(LinkEdit, _Component);
1393  
1394      function LinkEdit() {
1395        var _this;
1396  
1397        Object(classCallCheck["a" /* default */])(this, LinkEdit);
1398  
1399        _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(LinkEdit).apply(this, arguments));
1400        _this.addLink = _this.addLink.bind(Object(assertThisInitialized["a" /* default */])(_this));
1401        _this.stopAddingLink = _this.stopAddingLink.bind(Object(assertThisInitialized["a" /* default */])(_this));
1402        _this.onRemoveFormat = _this.onRemoveFormat.bind(Object(assertThisInitialized["a" /* default */])(_this));
1403        _this.state = {
1404          addingLink: false
1405        };
1406        return _this;
1407      }
1408  
1409      Object(createClass["a" /* default */])(LinkEdit, [{
1410        key: "addLink",
1411        value: function addLink() {
1412          var _this$props = this.props,
1413              value = _this$props.value,
1414              onChange = _this$props.onChange;
1415          var text = Object(external_this_wp_richText_["getTextContent"])(Object(external_this_wp_richText_["slice"])(value));
1416  
1417          if (text && Object(external_this_wp_url_["isURL"])(text)) {
1418            onChange(Object(external_this_wp_richText_["applyFormat"])(value, {
1419              type: link_name,
1420              attributes: {
1421                url: text
1422              }
1423            }));
1424          } else if (text && Object(external_this_wp_url_["isEmail"])(text)) {
1425            onChange(Object(external_this_wp_richText_["applyFormat"])(value, {
1426              type: link_name,
1427              attributes: {
1428                url: "mailto:".concat(text)
1429              }
1430            }));
1431          } else {
1432            this.setState({
1433              addingLink: true
1434            });
1435          }
1436        }
1437      }, {
1438        key: "stopAddingLink",
1439        value: function stopAddingLink() {
1440          this.setState({
1441            addingLink: false
1442          });
1443          this.props.onFocus();
1444        }
1445      }, {
1446        key: "onRemoveFormat",
1447        value: function onRemoveFormat() {
1448          var _this$props2 = this.props,
1449              value = _this$props2.value,
1450              onChange = _this$props2.onChange,
1451              speak = _this$props2.speak;
1452          onChange(Object(external_this_wp_richText_["removeFormat"])(value, link_name));
1453          speak(Object(external_this_wp_i18n_["__"])('Link removed.'), 'assertive');
1454        }
1455      }, {
1456        key: "render",
1457        value: function render() {
1458          var _this$props3 = this.props,
1459              isActive = _this$props3.isActive,
1460              activeAttributes = _this$props3.activeAttributes,
1461              value = _this$props3.value,
1462              onChange = _this$props3.onChange;
1463          return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], {
1464            type: "primary",
1465            character: "k",
1466            onUse: this.addLink
1467          }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], {
1468            type: "primaryShift",
1469            character: "k",
1470            onUse: this.onRemoveFormat
1471          }), isActive && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextToolbarButton"], {
1472            name: "link",
1473            icon: link_off,
1474            title: Object(external_this_wp_i18n_["__"])('Unlink'),
1475            onClick: this.onRemoveFormat,
1476            isActive: isActive,
1477            shortcutType: "primaryShift",
1478            shortcutCharacter: "k"
1479          }), !isActive && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextToolbarButton"], {
1480            name: "link",
1481            icon: library_link["a" /* default */],
1482            title: link_title,
1483            onClick: this.addLink,
1484            isActive: isActive,
1485            shortcutType: "primary",
1486            shortcutCharacter: "k"
1487          }), (this.state.addingLink || isActive) && Object(external_this_wp_element_["createElement"])(inline, {
1488            addingLink: this.state.addingLink,
1489            stopAddingLink: this.stopAddingLink,
1490            isActive: isActive,
1491            activeAttributes: activeAttributes,
1492            value: value,
1493            onChange: onChange
1494          }));
1495        }
1496      }]);
1497  
1498      return LinkEdit;
1499    }(external_this_wp_element_["Component"]))
1500  };
1501  
1502  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-strikethrough.js
1503  
1504  
1505  /**
1506   * WordPress dependencies
1507   */
1508  
1509  var formatStrikethrough = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], {
1510    xmlns: "http://www.w3.org/2000/svg",
1511    viewBox: "-2 -2 24 24"
1512  }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], {
1513    d: "M15.82 12.25c.26 0 .5-.02.74-.07.23-.05.48-.12.73-.2v.84c-.46.17-.99.26-1.58.26-.88 0-1.54-.26-2.01-.79-.39-.44-.62-1.04-.68-1.79h-.94c.12.21.18.48.18.79 0 .54-.18.95-.55 1.26-.38.3-.9.45-1.56.45H8v-2.5H6.59l.93 2.5H6.49l-.59-1.67H3.62L3.04 13H2l.93-2.5H2v-1h1.31l.93-2.49H5.3l.92 2.49H8V7h1.77c1 0 1.41.17 1.77.41.37.24.55.62.55 1.13 0 .35-.09.64-.27.87l-.08.09h1.29c.05-.4.15-.77.31-1.1.23-.46.55-.82.98-1.06.43-.25.93-.37 1.51-.37.61 0 1.17.12 1.69.38l-.35.81c-.2-.1-.42-.18-.64-.25s-.46-.11-.71-.11c-.55 0-.99.2-1.31.59-.23.29-.38.66-.44 1.11H17v1h-2.95c.06.5.2.9.44 1.19.3.37.75.56 1.33.56zM4.44 8.96l-.18.54H5.3l-.22-.61c-.04-.11-.09-.28-.17-.51-.07-.24-.12-.41-.14-.51-.08.33-.18.69-.33 1.09zm4.53-1.09V9.5h1.19c.28-.02.49-.09.64-.18.19-.13.28-.35.28-.66 0-.28-.1-.48-.3-.61-.2-.12-.53-.18-.97-.18h-.84zm-3.33 2.64v-.01H3.91v.01h1.73zm5.28.01l-.03-.02H8.97v1.68h1.04c.4 0 .71-.08.92-.23.21-.16.31-.4.31-.74 0-.31-.11-.54-.32-.69z"
1514  }));
1515  /* harmony default export */ var format_strikethrough = (formatStrikethrough);
1516  
1517  // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/strikethrough/index.js
1518  
1519  
1520  /**
1521   * WordPress dependencies
1522   */
1523  
1524  
1525  
1526  
1527  var strikethrough_name = 'core/strikethrough';
1528  
1529  var strikethrough_title = Object(external_this_wp_i18n_["__"])('Strikethrough');
1530  
1531  var strikethrough = {
1532    name: strikethrough_name,
1533    title: strikethrough_title,
1534    tagName: 's',
1535    className: null,
1536    edit: function edit(_ref) {
1537      var isActive = _ref.isActive,
1538          value = _ref.value,
1539          onChange = _ref.onChange,
1540          onFocus = _ref.onFocus;
1541  
1542      function onClick() {
1543        onChange(Object(external_this_wp_richText_["toggleFormat"])(value, {
1544          type: strikethrough_name
1545        }));
1546        onFocus();
1547      }
1548  
1549      return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextToolbarButton"], {
1550        icon: format_strikethrough,
1551        title: strikethrough_title,
1552        onClick: onClick,
1553        isActive: isActive
1554      });
1555    }
1556  };
1557  
1558  // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/underline/index.js
1559  
1560  
1561  /**
1562   * WordPress dependencies
1563   */
1564  
1565  
1566  
1567  var underline_name = 'core/underline';
1568  var underline = {
1569    name: underline_name,
1570    title: Object(external_this_wp_i18n_["__"])('Underline'),
1571    tagName: 'span',
1572    className: null,
1573    attributes: {
1574      style: 'style'
1575    },
1576    edit: function edit(_ref) {
1577      var value = _ref.value,
1578          onChange = _ref.onChange;
1579  
1580      var onToggle = function onToggle() {
1581        onChange(Object(external_this_wp_richText_["toggleFormat"])(value, {
1582          type: underline_name,
1583          attributes: {
1584            style: 'text-decoration: underline;'
1585          }
1586        }));
1587      };
1588  
1589      return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], {
1590        type: "primary",
1591        character: "u",
1592        onUse: onToggle
1593      }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__unstableRichTextInputEvent"], {
1594        inputType: "formatUnderline",
1595        onInput: onToggle
1596      }));
1597    }
1598  };
1599  
1600  // EXTERNAL MODULE: external {"this":["wp","data"]}
1601  var external_this_wp_data_ = __webpack_require__(4);
1602  
1603  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
1604  var esm_extends = __webpack_require__(12);
1605  
1606  // EXTERNAL MODULE: external {"this":["wp","dom"]}
1607  var external_this_wp_dom_ = __webpack_require__(28);
1608  
1609  // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/text-color/inline.js
1610  
1611  
1612  
1613  
1614  /**
1615   * External dependencies
1616   */
1617  
1618  /**
1619   * WordPress dependencies
1620   */
1621  
1622  
1623  
1624  
1625  
1626  
1627  
1628  function getActiveColor(formatName, formatValue, colors) {
1629    var activeColorFormat = Object(external_this_wp_richText_["getActiveFormat"])(formatValue, formatName);
1630  
1631    if (!activeColorFormat) {
1632      return;
1633    }
1634  
1635    var styleColor = activeColorFormat.attributes.style;
1636  
1637    if (styleColor) {
1638      return styleColor.replace(new RegExp("^color:\\s*"), '');
1639    }
1640  
1641    var currentClass = activeColorFormat.attributes.class;
1642  
1643    if (currentClass) {
1644      var colorSlug = currentClass.replace(/.*has-(.*?)-color.*/, '$1');
1645      return Object(external_this_wp_blockEditor_["getColorObjectByAttributeValues"])(colors, colorSlug).color;
1646    }
1647  }
1648  
1649  var inline_ColorPopoverAtLink = function ColorPopoverAtLink(_ref) {
1650    var addingColor = _ref.addingColor,
1651        props = Object(objectWithoutProperties["a" /* default */])(_ref, ["addingColor"]);
1652  
1653    // There is no way to open a text formatter popover when another one is mounted.
1654    // The first popover will always be dismounted when a click outside happens, so we can store the
1655    // anchor Rect during the lifetime of the component.
1656    var anchorRect = Object(external_this_wp_element_["useMemo"])(function () {
1657      var selection = window.getSelection();
1658      var range = selection.rangeCount > 0 ? selection.getRangeAt(0) : null;
1659  
1660      if (!range) {
1661        return;
1662      }
1663  
1664      if (addingColor) {
1665        return Object(external_this_wp_dom_["getRectangleFromRange"])(range);
1666      }
1667  
1668      var element = range.startContainer; // If the caret is right before the element, select the next element.
1669  
1670      element = element.nextElementSibling || element;
1671  
1672      while (element.nodeType !== window.Node.ELEMENT_NODE) {
1673        element = element.parentNode;
1674      }
1675  
1676      var closest = element.closest('span');
1677  
1678      if (closest) {
1679        return closest.getBoundingClientRect();
1680      }
1681    }, []);
1682  
1683    if (!anchorRect) {
1684      return null;
1685    }
1686  
1687    return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLPopover"], Object(esm_extends["a" /* default */])({
1688      anchorRect: anchorRect
1689    }, props));
1690  };
1691  
1692  var inline_ColorPicker = function ColorPicker(_ref2) {
1693    var name = _ref2.name,
1694        value = _ref2.value,
1695        onChange = _ref2.onChange;
1696    var colors = Object(external_this_wp_data_["useSelect"])(function (select) {
1697      var _select = select('core/block-editor'),
1698          getSettings = _select.getSettings;
1699  
1700      return Object(external_this_lodash_["get"])(getSettings(), ['colors'], []);
1701    });
1702    var onColorChange = Object(external_this_wp_element_["useCallback"])(function (color) {
1703      if (color) {
1704        var colorObject = Object(external_this_wp_blockEditor_["getColorObjectByColorValue"])(colors, color);
1705        onChange(Object(external_this_wp_richText_["applyFormat"])(value, {
1706          type: name,
1707          attributes: colorObject ? {
1708            class: Object(external_this_wp_blockEditor_["getColorClassName"])('color', colorObject.slug)
1709          } : {
1710            style: "color:".concat(color)
1711          }
1712        }));
1713      } else {
1714        onChange(Object(external_this_wp_richText_["removeFormat"])(value, name));
1715      }
1716    }, [colors, onChange]);
1717    var activeColor = Object(external_this_wp_element_["useMemo"])(function () {
1718      return getActiveColor(name, value, colors);
1719    }, [name, value, colors]);
1720    return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ColorPalette"], {
1721      value: activeColor,
1722      onChange: onColorChange
1723    });
1724  };
1725  
1726  var inline_InlineColorUI = function InlineColorUI(_ref3) {
1727    var name = _ref3.name,
1728        value = _ref3.value,
1729        onChange = _ref3.onChange,
1730        onClose = _ref3.onClose,
1731        isActive = _ref3.isActive,
1732        addingColor = _ref3.addingColor;
1733    return Object(external_this_wp_element_["createElement"])(inline_ColorPopoverAtLink, {
1734      value: value,
1735      isActive: isActive,
1736      addingColor: addingColor,
1737      onClose: onClose,
1738      className: "components-inline-color-popover"
1739    }, Object(external_this_wp_element_["createElement"])(inline_ColorPicker, {
1740      name: name,
1741      value: value,
1742      onChange: onChange
1743    }));
1744  };
1745  
1746  /* harmony default export */ var text_color_inline = (Object(external_this_wp_components_["withSpokenMessages"])(inline_InlineColorUI));
1747  
1748  // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/text-color/index.js
1749  
1750  
1751  
1752  /**
1753   * External dependencies
1754   */
1755  
1756  /**
1757   * WordPress dependencies
1758   */
1759  
1760  
1761  
1762  
1763  
1764  
1765  
1766  /**
1767   * Internal dependencies
1768   */
1769  
1770  
1771  var text_color_name = 'core/text-color';
1772  
1773  var text_color_title = Object(external_this_wp_i18n_["__"])('Text Color');
1774  
1775  var EMPTY_ARRAY = [];
1776  
1777  function TextColorEdit(_ref) {
1778    var value = _ref.value,
1779        onChange = _ref.onChange,
1780        isActive = _ref.isActive,
1781        activeAttributes = _ref.activeAttributes;
1782  
1783    var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) {
1784      var blockEditorSelect = select('core/block-editor');
1785      var settings;
1786  
1787      if (blockEditorSelect && blockEditorSelect.getSettings) {
1788        settings = blockEditorSelect.getSettings();
1789      } else {
1790        settings = {};
1791      }
1792  
1793      return {
1794        colors: Object(external_this_lodash_["get"])(settings, ['colors'], EMPTY_ARRAY),
1795        disableCustomColors: settings.disableCustomColors
1796      };
1797    }),
1798        colors = _useSelect.colors,
1799        disableCustomColors = _useSelect.disableCustomColors;
1800  
1801    var _useState = Object(external_this_wp_element_["useState"])(false),
1802        _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
1803        isAddingColor = _useState2[0],
1804        setIsAddingColor = _useState2[1];
1805  
1806    var enableIsAddingColor = Object(external_this_wp_element_["useCallback"])(function () {
1807      return setIsAddingColor(true);
1808    }, [setIsAddingColor]);
1809    var disableIsAddingColor = Object(external_this_wp_element_["useCallback"])(function () {
1810      return setIsAddingColor(false);
1811    }, [setIsAddingColor]);
1812    var colorIndicatorStyle = Object(external_this_wp_element_["useMemo"])(function () {
1813      var activeColor = getActiveColor(text_color_name, value, colors);
1814  
1815      if (!activeColor) {
1816        return undefined;
1817      }
1818  
1819      return {
1820        backgroundColor: activeColor
1821      };
1822    }, [value, colors]);
1823    var hasColorsToChoose = !Object(external_this_lodash_["isEmpty"])(colors) || disableCustomColors !== true;
1824  
1825    if (!hasColorsToChoose && !isActive) {
1826      return null;
1827    }
1828  
1829    return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextToolbarButton"], {
1830      key: isActive ? 'text-color' : 'text-color-not-active',
1831      className: "format-library-text-color-button",
1832      name: isActive ? 'text-color' : undefined,
1833      icon: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dashicon"], {
1834        icon: "editor-textcolor"
1835      }), isActive && Object(external_this_wp_element_["createElement"])("span", {
1836        className: "format-library-text-color-button__indicator",
1837        style: colorIndicatorStyle
1838      })),
1839      title: text_color_title // If has no colors to choose but a color is active remove the color onClick
1840      ,
1841      onClick: hasColorsToChoose ? enableIsAddingColor : function () {
1842        return onChange(Object(external_this_wp_richText_["removeFormat"])(value, text_color_name));
1843      }
1844    }), isAddingColor && Object(external_this_wp_element_["createElement"])(text_color_inline, {
1845      name: text_color_name,
1846      addingColor: isAddingColor,
1847      onClose: disableIsAddingColor,
1848      isActive: isActive,
1849      activeAttributes: activeAttributes,
1850      value: value,
1851      onChange: onChange
1852    }));
1853  }
1854  
1855  var textColor = {
1856    name: text_color_name,
1857    title: text_color_title,
1858    tagName: 'span',
1859    className: 'has-inline-color',
1860    attributes: {
1861      style: 'style',
1862      class: 'class'
1863    },
1864    edit: TextColorEdit
1865  };
1866  
1867  // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/default-formats.js
1868  /**
1869   * Internal dependencies
1870   */
1871  
1872  
1873  
1874  
1875  
1876  
1877  
1878  
1879  /* harmony default export */ var default_formats = ([bold, code_code, image_image, italic, link_link, strikethrough, underline, textColor]);
1880  
1881  // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/index.js
1882  
1883  
1884  /**
1885   * WordPress dependencies
1886   */
1887  
1888  /**
1889   * Internal dependencies
1890   */
1891  
1892  
1893  default_formats.forEach(function (_ref) {
1894    var name = _ref.name,
1895        settings = Object(objectWithoutProperties["a" /* default */])(_ref, ["name"]);
1896  
1897    return Object(external_this_wp_richText_["registerFormatType"])(name, settings);
1898  });
1899  
1900  
1901  /***/ }),
1902  
1903  /***/ 5:
1904  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1905  
1906  "use strict";
1907  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; });
1908  function _defineProperty(obj, key, value) {
1909    if (key in obj) {
1910      Object.defineProperty(obj, key, {
1911        value: value,
1912        enumerable: true,
1913        configurable: true,
1914        writable: true
1915      });
1916    } else {
1917      obj[key] = value;
1918    }
1919  
1920    return obj;
1921  }
1922  
1923  /***/ }),
1924  
1925  /***/ 58:
1926  /***/ (function(module, exports) {
1927  
1928  (function() { module.exports = this["wp"]["htmlEntities"]; }());
1929  
1930  /***/ }),
1931  
1932  /***/ 6:
1933  /***/ (function(module, exports) {
1934  
1935  (function() { module.exports = this["wp"]["blockEditor"]; }());
1936  
1937  /***/ }),
1938  
1939  /***/ 7:
1940  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1941  
1942  "use strict";
1943  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; });
1944  function _assertThisInitialized(self) {
1945    if (self === void 0) {
1946      throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1947    }
1948  
1949    return self;
1950  }
1951  
1952  /***/ }),
1953  
1954  /***/ 9:
1955  /***/ (function(module, exports) {
1956  
1957  (function() { module.exports = this["wp"]["primitives"]; }());
1958  
1959  /***/ })
1960  
1961  /******/ });


Generated: Sat Apr 4 01:00:03 2020 Cross-referenced by PHPXref 0.7.1