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


Generated: Tue Jan 19 01:00:03 2021 Cross-referenced by PHPXref 0.7.1