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