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