[ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 this["wp"] = this["wp"] || {}; this["wp"]["compose"] = 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/compose/build-module/index.js"); 86 /******/ }) 87 /************************************************************************/ 88 /******/ ({ 89 90 /***/ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js": 91 /*!**************************************************************************!*\ 92 !*** ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.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 _assertThisInitialized; }); 100 function _assertThisInitialized(self) { 101 if (self === void 0) { 102 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 103 } 104 105 return self; 106 } 107 108 /***/ }), 109 110 /***/ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js": 111 /*!*******************************************************************!*\ 112 !*** ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***! 113 \*******************************************************************/ 114 /*! exports provided: default */ 115 /***/ (function(module, __webpack_exports__, __webpack_require__) { 116 117 "use strict"; 118 __webpack_require__.r(__webpack_exports__); 119 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _classCallCheck; }); 120 function _classCallCheck(instance, Constructor) { 121 if (!(instance instanceof Constructor)) { 122 throw new TypeError("Cannot call a class as a function"); 123 } 124 } 125 126 /***/ }), 127 128 /***/ "./node_modules/@babel/runtime/helpers/esm/createClass.js": 129 /*!****************************************************************!*\ 130 !*** ./node_modules/@babel/runtime/helpers/esm/createClass.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 _createClass; }); 138 function _defineProperties(target, props) { 139 for (var i = 0; i < props.length; i++) { 140 var descriptor = props[i]; 141 descriptor.enumerable = descriptor.enumerable || false; 142 descriptor.configurable = true; 143 if ("value" in descriptor) descriptor.writable = true; 144 Object.defineProperty(target, descriptor.key, descriptor); 145 } 146 } 147 148 function _createClass(Constructor, protoProps, staticProps) { 149 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 150 if (staticProps) _defineProperties(Constructor, staticProps); 151 return Constructor; 152 } 153 154 /***/ }), 155 156 /***/ "./node_modules/@babel/runtime/helpers/esm/extends.js": 157 /*!************************************************************!*\ 158 !*** ./node_modules/@babel/runtime/helpers/esm/extends.js ***! 159 \************************************************************/ 160 /*! exports provided: default */ 161 /***/ (function(module, __webpack_exports__, __webpack_require__) { 162 163 "use strict"; 164 __webpack_require__.r(__webpack_exports__); 165 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _extends; }); 166 function _extends() { 167 _extends = Object.assign || function (target) { 168 for (var i = 1; i < arguments.length; i++) { 169 var source = arguments[i]; 170 171 for (var key in source) { 172 if (Object.prototype.hasOwnProperty.call(source, key)) { 173 target[key] = source[key]; 174 } 175 } 176 } 177 178 return target; 179 }; 180 181 return _extends.apply(this, arguments); 182 } 183 184 /***/ }), 185 186 /***/ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js": 187 /*!*******************************************************************!*\ 188 !*** ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js ***! 189 \*******************************************************************/ 190 /*! exports provided: default */ 191 /***/ (function(module, __webpack_exports__, __webpack_require__) { 192 193 "use strict"; 194 __webpack_require__.r(__webpack_exports__); 195 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _getPrototypeOf; }); 196 function _getPrototypeOf(o) { 197 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 198 return o.__proto__ || Object.getPrototypeOf(o); 199 }; 200 return _getPrototypeOf(o); 201 } 202 203 /***/ }), 204 205 /***/ "./node_modules/@babel/runtime/helpers/esm/inherits.js": 206 /*!*************************************************************!*\ 207 !*** ./node_modules/@babel/runtime/helpers/esm/inherits.js ***! 208 \*************************************************************/ 209 /*! exports provided: default */ 210 /***/ (function(module, __webpack_exports__, __webpack_require__) { 211 212 "use strict"; 213 __webpack_require__.r(__webpack_exports__); 214 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _inherits; }); 215 /* harmony import */ var _setPrototypeOf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js"); 216 217 function _inherits(subClass, superClass) { 218 if (typeof superClass !== "function" && superClass !== null) { 219 throw new TypeError("Super expression must either be null or a function"); 220 } 221 222 subClass.prototype = Object.create(superClass && superClass.prototype, { 223 constructor: { 224 value: subClass, 225 writable: true, 226 configurable: true 227 } 228 }); 229 if (superClass) Object(_setPrototypeOf__WEBPACK_IMPORTED_MODULE_0__["default"])(subClass, superClass); 230 } 231 232 /***/ }), 233 234 /***/ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js": 235 /*!******************************************************************************!*\ 236 !*** ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js ***! 237 \******************************************************************************/ 238 /*! exports provided: default */ 239 /***/ (function(module, __webpack_exports__, __webpack_require__) { 240 241 "use strict"; 242 __webpack_require__.r(__webpack_exports__); 243 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _possibleConstructorReturn; }); 244 /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js"); 245 /* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"); 246 247 248 function _possibleConstructorReturn(self, call) { 249 if (call && (Object(_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(call) === "object" || typeof call === "function")) { 250 return call; 251 } 252 253 return Object(_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__["default"])(self); 254 } 255 256 /***/ }), 257 258 /***/ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js": 259 /*!*******************************************************************!*\ 260 !*** ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***! 261 \*******************************************************************/ 262 /*! exports provided: default */ 263 /***/ (function(module, __webpack_exports__, __webpack_require__) { 264 265 "use strict"; 266 __webpack_require__.r(__webpack_exports__); 267 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _setPrototypeOf; }); 268 function _setPrototypeOf(o, p) { 269 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 270 o.__proto__ = p; 271 return o; 272 }; 273 274 return _setPrototypeOf(o, p); 275 } 276 277 /***/ }), 278 279 /***/ "./node_modules/@babel/runtime/helpers/esm/typeof.js": 280 /*!***********************************************************!*\ 281 !*** ./node_modules/@babel/runtime/helpers/esm/typeof.js ***! 282 \***********************************************************/ 283 /*! exports provided: default */ 284 /***/ (function(module, __webpack_exports__, __webpack_require__) { 285 286 "use strict"; 287 __webpack_require__.r(__webpack_exports__); 288 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _typeof; }); 289 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); } 290 291 function _typeof(obj) { 292 if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") { 293 _typeof = function _typeof(obj) { 294 return _typeof2(obj); 295 }; 296 } else { 297 _typeof = function _typeof(obj) { 298 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj); 299 }; 300 } 301 302 return _typeof(obj); 303 } 304 305 /***/ }), 306 307 /***/ "./node_modules/@wordpress/compose/build-module/create-higher-order-component/index.js": 308 /*!*********************************************************************************************!*\ 309 !*** ./node_modules/@wordpress/compose/build-module/create-higher-order-component/index.js ***! 310 \*********************************************************************************************/ 311 /*! exports provided: default */ 312 /***/ (function(module, __webpack_exports__, __webpack_require__) { 313 314 "use strict"; 315 __webpack_require__.r(__webpack_exports__); 316 /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ "lodash"); 317 /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__); 318 /** 319 * External dependencies 320 */ 321 322 /** 323 * Given a function mapping a component to an enhanced component and modifier 324 * name, returns the enhanced component augmented with a generated displayName. 325 * 326 * @param {Function} mapComponentToEnhancedComponent Function mapping component 327 * to enhanced component. 328 * @param {string} modifierName Seed name from which to 329 * generated display name. 330 * 331 * @return {WPComponent} Component class with generated display name assigned. 332 */ 333 334 function createHigherOrderComponent(mapComponentToEnhancedComponent, modifierName) { 335 return function (OriginalComponent) { 336 var EnhancedComponent = mapComponentToEnhancedComponent(OriginalComponent); 337 var _OriginalComponent$di = OriginalComponent.displayName, 338 displayName = _OriginalComponent$di === void 0 ? OriginalComponent.name || 'Component' : _OriginalComponent$di; 339 EnhancedComponent.displayName = "".concat(Object(lodash__WEBPACK_IMPORTED_MODULE_0__["upperFirst"])(Object(lodash__WEBPACK_IMPORTED_MODULE_0__["camelCase"])(modifierName)), "(").concat(displayName, ")"); 340 return EnhancedComponent; 341 }; 342 } 343 344 /* harmony default export */ __webpack_exports__["default"] = (createHigherOrderComponent); 345 346 347 /***/ }), 348 349 /***/ "./node_modules/@wordpress/compose/build-module/if-condition/index.js": 350 /*!****************************************************************************!*\ 351 !*** ./node_modules/@wordpress/compose/build-module/if-condition/index.js ***! 352 \****************************************************************************/ 353 /*! exports provided: default */ 354 /***/ (function(module, __webpack_exports__, __webpack_require__) { 355 356 "use strict"; 357 __webpack_require__.r(__webpack_exports__); 358 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); 359 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); 360 /* harmony import */ var _create_higher_order_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../create-higher-order-component */ "./node_modules/@wordpress/compose/build-module/create-higher-order-component/index.js"); 361 362 363 /** 364 * Internal dependencies 365 */ 366 367 /** 368 * Higher-order component creator, creating a new component which renders if 369 * the given condition is satisfied or with the given optional prop name. 370 * 371 * @param {Function} predicate Function to test condition. 372 * 373 * @return {Function} Higher-order component. 374 */ 375 376 var ifCondition = function ifCondition(predicate) { 377 return Object(_create_higher_order_component__WEBPACK_IMPORTED_MODULE_1__["default"])(function (WrappedComponent) { 378 return function (props) { 379 if (!predicate(props)) { 380 return null; 381 } 382 383 return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(WrappedComponent, props); 384 }; 385 }, 'ifCondition'); 386 }; 387 388 /* harmony default export */ __webpack_exports__["default"] = (ifCondition); 389 390 391 /***/ }), 392 393 /***/ "./node_modules/@wordpress/compose/build-module/index.js": 394 /*!***************************************************************!*\ 395 !*** ./node_modules/@wordpress/compose/build-module/index.js ***! 396 \***************************************************************/ 397 /*! exports provided: createHigherOrderComponent, ifCondition, pure, remountOnPropChange, withGlobalEvents, withInstanceId, withSafeTimeout, withState, compose */ 398 /***/ (function(module, __webpack_exports__, __webpack_require__) { 399 400 "use strict"; 401 __webpack_require__.r(__webpack_exports__); 402 /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ "lodash"); 403 /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__); 404 /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "compose", function() { return lodash__WEBPACK_IMPORTED_MODULE_0__["flowRight"]; }); 405 406 /* harmony import */ var _create_higher_order_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./create-higher-order-component */ "./node_modules/@wordpress/compose/build-module/create-higher-order-component/index.js"); 407 /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createHigherOrderComponent", function() { return _create_higher_order_component__WEBPACK_IMPORTED_MODULE_1__["default"]; }); 408 409 /* harmony import */ var _if_condition__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./if-condition */ "./node_modules/@wordpress/compose/build-module/if-condition/index.js"); 410 /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ifCondition", function() { return _if_condition__WEBPACK_IMPORTED_MODULE_2__["default"]; }); 411 412 /* harmony import */ var _pure__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pure */ "./node_modules/@wordpress/compose/build-module/pure/index.js"); 413 /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pure", function() { return _pure__WEBPACK_IMPORTED_MODULE_3__["default"]; }); 414 415 /* harmony import */ var _remount_on_prop_change__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./remount-on-prop-change */ "./node_modules/@wordpress/compose/build-module/remount-on-prop-change/index.js"); 416 /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "remountOnPropChange", function() { return _remount_on_prop_change__WEBPACK_IMPORTED_MODULE_4__["default"]; }); 417 418 /* harmony import */ var _with_global_events__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./with-global-events */ "./node_modules/@wordpress/compose/build-module/with-global-events/index.js"); 419 /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withGlobalEvents", function() { return _with_global_events__WEBPACK_IMPORTED_MODULE_5__["default"]; }); 420 421 /* harmony import */ var _with_instance_id__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./with-instance-id */ "./node_modules/@wordpress/compose/build-module/with-instance-id/index.js"); 422 /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withInstanceId", function() { return _with_instance_id__WEBPACK_IMPORTED_MODULE_6__["default"]; }); 423 424 /* harmony import */ var _with_safe_timeout__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./with-safe-timeout */ "./node_modules/@wordpress/compose/build-module/with-safe-timeout/index.js"); 425 /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withSafeTimeout", function() { return _with_safe_timeout__WEBPACK_IMPORTED_MODULE_7__["default"]; }); 426 427 /* harmony import */ var _with_state__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./with-state */ "./node_modules/@wordpress/compose/build-module/with-state/index.js"); 428 /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withState", function() { return _with_state__WEBPACK_IMPORTED_MODULE_8__["default"]; }); 429 430 /** 431 * External dependencies 432 */ 433 434 435 436 437 438 439 440 441 442 /** 443 * Composes multiple higher-order components into a single higher-order component. Performs right-to-left function 444 * composition, where each successive invocation is supplied the return value of the previous. 445 * 446 * @param {...Function} hocs The HOC functions to invoke. 447 * 448 * @return {Function} Returns the new composite function. 449 */ 450 451 452 453 454 /***/ }), 455 456 /***/ "./node_modules/@wordpress/compose/build-module/pure/index.js": 457 /*!********************************************************************!*\ 458 !*** ./node_modules/@wordpress/compose/build-module/pure/index.js ***! 459 \********************************************************************/ 460 /*! exports provided: default */ 461 /***/ (function(module, __webpack_exports__, __webpack_require__) { 462 463 "use strict"; 464 __webpack_require__.r(__webpack_exports__); 465 /* 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"); 466 /* 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"); 467 /* 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"); 468 /* 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"); 469 /* 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"); 470 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); 471 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__); 472 /* harmony import */ var _wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/is-shallow-equal */ "@wordpress/is-shallow-equal"); 473 /* harmony import */ var _wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_6__); 474 /* harmony import */ var _create_higher_order_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../create-higher-order-component */ "./node_modules/@wordpress/compose/build-module/create-higher-order-component/index.js"); 475 476 477 478 479 480 481 482 /** 483 * WordPress dependencies 484 */ 485 486 487 /** 488 * Internal dependencies 489 */ 490 491 492 /** 493 * Given a component returns the enhanced component augmented with a component 494 * only rerendering when its props/state change 495 * 496 * @param {Function} mapComponentToEnhancedComponent Function mapping component 497 * to enhanced component. 498 * @param {string} modifierName Seed name from which to 499 * generated display name. 500 * 501 * @return {WPComponent} Component class with generated display name assigned. 502 */ 503 504 var pure = Object(_create_higher_order_component__WEBPACK_IMPORTED_MODULE_7__["default"])(function (Wrapped) { 505 if (Wrapped.prototype instanceof _wordpress_element__WEBPACK_IMPORTED_MODULE_5__["Component"]) { 506 return ( 507 /*#__PURE__*/ 508 function (_Wrapped) { 509 Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__["default"])(_class, _Wrapped); 510 511 function _class() { 512 Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, _class); 513 514 return Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__["default"])(_class).apply(this, arguments)); 515 } 516 517 Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(_class, [{ 518 key: "shouldComponentUpdate", 519 value: function shouldComponentUpdate(nextProps, nextState) { 520 return !_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_6___default()(nextProps, this.props) || !_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_6___default()(nextState, this.state); 521 } 522 }]); 523 524 return _class; 525 }(Wrapped) 526 ); 527 } 528 529 return ( 530 /*#__PURE__*/ 531 function (_Component) { 532 Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__["default"])(_class2, _Component); 533 534 function _class2() { 535 Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, _class2); 536 537 return Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__["default"])(_class2).apply(this, arguments)); 538 } 539 540 Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(_class2, [{ 541 key: "shouldComponentUpdate", 542 value: function shouldComponentUpdate(nextProps) { 543 return !_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_6___default()(nextProps, this.props); 544 } 545 }, { 546 key: "render", 547 value: function render() { 548 return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])(Wrapped, this.props); 549 } 550 }]); 551 552 return _class2; 553 }(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["Component"]) 554 ); 555 }, 'pure'); 556 /* harmony default export */ __webpack_exports__["default"] = (pure); 557 558 559 /***/ }), 560 561 /***/ "./node_modules/@wordpress/compose/build-module/remount-on-prop-change/index.js": 562 /*!**************************************************************************************!*\ 563 !*** ./node_modules/@wordpress/compose/build-module/remount-on-prop-change/index.js ***! 564 \**************************************************************************************/ 565 /*! exports provided: default */ 566 /***/ (function(module, __webpack_exports__, __webpack_require__) { 567 568 "use strict"; 569 __webpack_require__.r(__webpack_exports__); 570 /* 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"); 571 /* 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"); 572 /* 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"); 573 /* 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"); 574 /* 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"); 575 /* 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"); 576 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); 577 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__); 578 /* harmony import */ var _create_higher_order_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../create-higher-order-component */ "./node_modules/@wordpress/compose/build-module/create-higher-order-component/index.js"); 579 580 581 582 583 584 585 586 587 /** 588 * WordPress dependencies 589 */ 590 591 /** 592 * Internal dependencies 593 */ 594 595 596 /** 597 * Higher-order component creator, creating a new component that remounts 598 * the wrapped component each time a given prop value changes. 599 * 600 * @param {string} propName Prop name to monitor. 601 * 602 * @return {Function} Higher-order component. 603 */ 604 605 var remountOnPropChange = function remountOnPropChange(propName) { 606 return Object(_create_higher_order_component__WEBPACK_IMPORTED_MODULE_7__["default"])(function (WrappedComponent) { 607 return ( 608 /*#__PURE__*/ 609 function (_Component) { 610 Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__["default"])(_class, _Component); 611 612 function _class(props) { 613 var _this; 614 615 Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, _class); 616 617 _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__["default"])(_class).apply(this, arguments)); 618 _this.state = { 619 propChangeId: 0, 620 propValue: props[propName] 621 }; 622 return _this; 623 } 624 625 Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(_class, [{ 626 key: "render", 627 value: function render() { 628 return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(WrappedComponent, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ 629 key: this.state.propChangeId 630 }, this.props)); 631 } 632 }], [{ 633 key: "getDerivedStateFromProps", 634 value: function getDerivedStateFromProps(props, state) { 635 if (props[propName] === state.propValue) { 636 return null; 637 } 638 639 return { 640 propChangeId: state.propChangeId + 1, 641 propValue: props[propName] 642 }; 643 } 644 }]); 645 646 return _class; 647 }(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Component"]) 648 ); 649 }, 'remountOnPropChange'); 650 }; 651 652 /* harmony default export */ __webpack_exports__["default"] = (remountOnPropChange); 653 654 655 /***/ }), 656 657 /***/ "./node_modules/@wordpress/compose/build-module/with-global-events/index.js": 658 /*!**********************************************************************************!*\ 659 !*** ./node_modules/@wordpress/compose/build-module/with-global-events/index.js ***! 660 \**********************************************************************************/ 661 /*! exports provided: default */ 662 /***/ (function(module, __webpack_exports__, __webpack_require__) { 663 664 "use strict"; 665 __webpack_require__.r(__webpack_exports__); 666 /* 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"); 667 /* 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"); 668 /* 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"); 669 /* 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"); 670 /* 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"); 671 /* 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"); 672 /* 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"); 673 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); 674 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__); 675 /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash */ "lodash"); 676 /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_8__); 677 /* harmony import */ var _create_higher_order_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../create-higher-order-component */ "./node_modules/@wordpress/compose/build-module/create-higher-order-component/index.js"); 678 /* harmony import */ var _listener__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./listener */ "./node_modules/@wordpress/compose/build-module/with-global-events/listener.js"); 679 680 681 682 683 684 685 686 687 688 /** 689 * External dependencies 690 */ 691 692 /** 693 * WordPress dependencies 694 */ 695 696 697 /** 698 * Internal dependencies 699 */ 700 701 702 703 /** 704 * Listener instance responsible for managing document event handling. 705 * 706 * @type {Listener} 707 */ 708 709 var listener = new _listener__WEBPACK_IMPORTED_MODULE_10__["default"](); 710 711 function withGlobalEvents(eventTypesToHandlers) { 712 return Object(_create_higher_order_component__WEBPACK_IMPORTED_MODULE_9__["default"])(function (WrappedComponent) { 713 var Wrapper = 714 /*#__PURE__*/ 715 function (_Component) { 716 Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__["default"])(Wrapper, _Component); 717 718 function Wrapper() { 719 var _this; 720 721 Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, Wrapper); 722 723 _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__["default"])(Wrapper).apply(this, arguments)); 724 _this.handleEvent = _this.handleEvent.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this))); 725 _this.handleRef = _this.handleRef.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this))); 726 return _this; 727 } 728 729 Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(Wrapper, [{ 730 key: "componentDidMount", 731 value: function componentDidMount() { 732 var _this2 = this; 733 734 Object(lodash__WEBPACK_IMPORTED_MODULE_8__["forEach"])(eventTypesToHandlers, function (handler, eventType) { 735 listener.add(eventType, _this2); 736 }); 737 } 738 }, { 739 key: "componentWillUnmount", 740 value: function componentWillUnmount() { 741 var _this3 = this; 742 743 Object(lodash__WEBPACK_IMPORTED_MODULE_8__["forEach"])(eventTypesToHandlers, function (handler, eventType) { 744 listener.remove(eventType, _this3); 745 }); 746 } 747 }, { 748 key: "handleEvent", 749 value: function handleEvent(event) { 750 var handler = eventTypesToHandlers[event.type]; 751 752 if (typeof this.wrappedRef[handler] === 'function') { 753 this.wrappedRef[handler](event); 754 } 755 } 756 }, { 757 key: "handleRef", 758 value: function handleRef(el) { 759 this.wrappedRef = el; // Any component using `withGlobalEvents` that is not setting a `ref` 760 // will cause `this.props.forwardedRef` to be `null`, so we need this 761 // check. 762 763 if (this.props.forwardedRef) { 764 this.props.forwardedRef(el); 765 } 766 } 767 }, { 768 key: "render", 769 value: function render() { 770 return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(WrappedComponent, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, this.props.ownProps, { 771 ref: this.handleRef 772 })); 773 } 774 }]); 775 776 return Wrapper; 777 }(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["Component"]); 778 779 return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["forwardRef"])(function (props, ref) { 780 return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(Wrapper, { 781 ownProps: props, 782 forwardedRef: ref 783 }); 784 }); 785 }, 'withGlobalEvents'); 786 } 787 788 /* harmony default export */ __webpack_exports__["default"] = (withGlobalEvents); 789 790 791 /***/ }), 792 793 /***/ "./node_modules/@wordpress/compose/build-module/with-global-events/listener.js": 794 /*!*************************************************************************************!*\ 795 !*** ./node_modules/@wordpress/compose/build-module/with-global-events/listener.js ***! 796 \*************************************************************************************/ 797 /*! exports provided: default */ 798 /***/ (function(module, __webpack_exports__, __webpack_require__) { 799 800 "use strict"; 801 __webpack_require__.r(__webpack_exports__); 802 /* 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"); 803 /* 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"); 804 /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ "lodash"); 805 /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__); 806 807 808 809 /** 810 * External dependencies 811 */ 812 813 /** 814 * Class responsible for orchestrating event handling on the global window, 815 * binding a single event to be shared across all handling instances, and 816 * removing the handler when no instances are listening for the event. 817 */ 818 819 var Listener = 820 /*#__PURE__*/ 821 function () { 822 function Listener() { 823 Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, Listener); 824 825 this.listeners = {}; 826 this.handleEvent = this.handleEvent.bind(this); 827 } 828 829 Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(Listener, [{ 830 key: "add", 831 value: function add(eventType, instance) { 832 if (!this.listeners[eventType]) { 833 // Adding first listener for this type, so bind event. 834 window.addEventListener(eventType, this.handleEvent); 835 this.listeners[eventType] = []; 836 } 837 838 this.listeners[eventType].push(instance); 839 } 840 }, { 841 key: "remove", 842 value: function remove(eventType, instance) { 843 this.listeners[eventType] = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["without"])(this.listeners[eventType], instance); 844 845 if (!this.listeners[eventType].length) { 846 // Removing last listener for this type, so unbind event. 847 window.removeEventListener(eventType, this.handleEvent); 848 delete this.listeners[eventType]; 849 } 850 } 851 }, { 852 key: "handleEvent", 853 value: function handleEvent(event) { 854 Object(lodash__WEBPACK_IMPORTED_MODULE_2__["forEach"])(this.listeners[event.type], function (instance) { 855 instance.handleEvent(event); 856 }); 857 } 858 }]); 859 860 return Listener; 861 }(); 862 863 /* harmony default export */ __webpack_exports__["default"] = (Listener); 864 865 866 /***/ }), 867 868 /***/ "./node_modules/@wordpress/compose/build-module/with-instance-id/index.js": 869 /*!********************************************************************************!*\ 870 !*** ./node_modules/@wordpress/compose/build-module/with-instance-id/index.js ***! 871 \********************************************************************************/ 872 /*! exports provided: default */ 873 /***/ (function(module, __webpack_exports__, __webpack_require__) { 874 875 "use strict"; 876 __webpack_require__.r(__webpack_exports__); 877 /* 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"); 878 /* 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"); 879 /* 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"); 880 /* 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"); 881 /* 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"); 882 /* 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"); 883 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); 884 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__); 885 /* harmony import */ var _create_higher_order_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../create-higher-order-component */ "./node_modules/@wordpress/compose/build-module/create-higher-order-component/index.js"); 886 887 888 889 890 891 892 893 894 /** 895 * WordPress dependencies 896 */ 897 898 /** 899 * Internal dependencies 900 */ 901 902 903 /** 904 * A Higher Order Component used to be provide a unique instance ID by 905 * component. 906 * 907 * @param {WPElement} WrappedComponent The wrapped component. 908 * 909 * @return {Component} Component with an instanceId prop. 910 */ 911 912 /* harmony default export */ __webpack_exports__["default"] = (Object(_create_higher_order_component__WEBPACK_IMPORTED_MODULE_7__["default"])(function (WrappedComponent) { 913 var instances = 0; 914 return ( 915 /*#__PURE__*/ 916 function (_Component) { 917 Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__["default"])(_class, _Component); 918 919 function _class() { 920 var _this; 921 922 Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, _class); 923 924 _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__["default"])(_class).apply(this, arguments)); 925 _this.instanceId = instances++; 926 return _this; 927 } 928 929 Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(_class, [{ 930 key: "render", 931 value: function render() { 932 return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(WrappedComponent, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, this.props, { 933 instanceId: this.instanceId 934 })); 935 } 936 }]); 937 938 return _class; 939 }(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Component"]) 940 ); 941 }, 'withInstanceId')); 942 943 944 /***/ }), 945 946 /***/ "./node_modules/@wordpress/compose/build-module/with-safe-timeout/index.js": 947 /*!*********************************************************************************!*\ 948 !*** ./node_modules/@wordpress/compose/build-module/with-safe-timeout/index.js ***! 949 \*********************************************************************************/ 950 /*! exports provided: default */ 951 /***/ (function(module, __webpack_exports__, __webpack_require__) { 952 953 "use strict"; 954 __webpack_require__.r(__webpack_exports__); 955 /* 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"); 956 /* 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"); 957 /* 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"); 958 /* 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"); 959 /* 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"); 960 /* 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"); 961 /* 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"); 962 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); 963 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__); 964 /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash */ "lodash"); 965 /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_8__); 966 /* harmony import */ var _create_higher_order_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../create-higher-order-component */ "./node_modules/@wordpress/compose/build-module/create-higher-order-component/index.js"); 967 968 969 970 971 972 973 974 975 976 /** 977 * External dependencies 978 */ 979 980 /** 981 * WordPress dependencies 982 */ 983 984 985 /** 986 * Internal dependencies 987 */ 988 989 990 /** 991 * A higher-order component used to provide and manage delayed function calls 992 * that ought to be bound to a component's lifecycle. 993 * 994 * @param {Component} OriginalComponent Component requiring setTimeout 995 * 996 * @return {Component} Wrapped component. 997 */ 998 999 var withSafeTimeout = Object(_create_higher_order_component__WEBPACK_IMPORTED_MODULE_9__["default"])(function (OriginalComponent) { 1000 return ( 1001 /*#__PURE__*/ 1002 function (_Component) { 1003 Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__["default"])(WrappedComponent, _Component); 1004 1005 function WrappedComponent() { 1006 var _this; 1007 1008 Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, WrappedComponent); 1009 1010 _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__["default"])(WrappedComponent).apply(this, arguments)); 1011 _this.timeouts = []; 1012 _this.setTimeout = _this.setTimeout.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this))); 1013 _this.clearTimeout = _this.clearTimeout.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this))); 1014 return _this; 1015 } 1016 1017 Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(WrappedComponent, [{ 1018 key: "componentWillUnmount", 1019 value: function componentWillUnmount() { 1020 this.timeouts.forEach(clearTimeout); 1021 } 1022 }, { 1023 key: "setTimeout", 1024 value: function (_setTimeout) { 1025 function setTimeout(_x, _x2) { 1026 return _setTimeout.apply(this, arguments); 1027 } 1028 1029 setTimeout.toString = function () { 1030 return _setTimeout.toString(); 1031 }; 1032 1033 return setTimeout; 1034 }(function (fn, delay) { 1035 var _this2 = this; 1036 1037 var id = setTimeout(function () { 1038 fn(); 1039 1040 _this2.clearTimeout(id); 1041 }, delay); 1042 this.timeouts.push(id); 1043 return id; 1044 }) 1045 }, { 1046 key: "clearTimeout", 1047 value: function (_clearTimeout) { 1048 function clearTimeout(_x3) { 1049 return _clearTimeout.apply(this, arguments); 1050 } 1051 1052 clearTimeout.toString = function () { 1053 return _clearTimeout.toString(); 1054 }; 1055 1056 return clearTimeout; 1057 }(function (id) { 1058 clearTimeout(id); 1059 this.timeouts = Object(lodash__WEBPACK_IMPORTED_MODULE_8__["without"])(this.timeouts, id); 1060 }) 1061 }, { 1062 key: "render", 1063 value: function render() { 1064 return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(OriginalComponent, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, this.props, { 1065 setTimeout: this.setTimeout, 1066 clearTimeout: this.clearTimeout 1067 })); 1068 } 1069 }]); 1070 1071 return WrappedComponent; 1072 }(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["Component"]) 1073 ); 1074 }, 'withSafeTimeout'); 1075 /* harmony default export */ __webpack_exports__["default"] = (withSafeTimeout); 1076 1077 1078 /***/ }), 1079 1080 /***/ "./node_modules/@wordpress/compose/build-module/with-state/index.js": 1081 /*!**************************************************************************!*\ 1082 !*** ./node_modules/@wordpress/compose/build-module/with-state/index.js ***! 1083 \**************************************************************************/ 1084 /*! exports provided: default */ 1085 /***/ (function(module, __webpack_exports__, __webpack_require__) { 1086 1087 "use strict"; 1088 __webpack_require__.r(__webpack_exports__); 1089 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return withState; }); 1090 /* 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"); 1091 /* 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"); 1092 /* 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"); 1093 /* 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"); 1094 /* 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"); 1095 /* 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"); 1096 /* 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"); 1097 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); 1098 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__); 1099 /* harmony import */ var _create_higher_order_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../create-higher-order-component */ "./node_modules/@wordpress/compose/build-module/create-higher-order-component/index.js"); 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 /** 1110 * WordPress dependencies 1111 */ 1112 1113 /** 1114 * Internal dependencies 1115 */ 1116 1117 1118 /** 1119 * A Higher Order Component used to provide and manage internal component state 1120 * via props. 1121 * 1122 * @param {?Object} initialState Optional initial state of the component. 1123 * 1124 * @return {Component} Wrapped component. 1125 */ 1126 1127 function withState() { 1128 var initialState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; 1129 return Object(_create_higher_order_component__WEBPACK_IMPORTED_MODULE_8__["default"])(function (OriginalComponent) { 1130 return ( 1131 /*#__PURE__*/ 1132 function (_Component) { 1133 Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__["default"])(WrappedComponent, _Component); 1134 1135 function WrappedComponent() { 1136 var _this; 1137 1138 Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, WrappedComponent); 1139 1140 _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__["default"])(WrappedComponent).apply(this, arguments)); 1141 _this.setState = _this.setState.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this))); 1142 _this.state = initialState; 1143 return _this; 1144 } 1145 1146 Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(WrappedComponent, [{ 1147 key: "render", 1148 value: function render() { 1149 return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(OriginalComponent, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, this.props, this.state, { 1150 setState: this.setState 1151 })); 1152 } 1153 }]); 1154 1155 return WrappedComponent; 1156 }(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["Component"]) 1157 ); 1158 }, 'withState'); 1159 } 1160 1161 1162 /***/ }), 1163 1164 /***/ "@wordpress/element": 1165 /*!******************************************!*\ 1166 !*** external {"this":["wp","element"]} ***! 1167 \******************************************/ 1168 /*! no static exports found */ 1169 /***/ (function(module, exports) { 1170 1171 (function() { module.exports = this["wp"]["element"]; }()); 1172 1173 /***/ }), 1174 1175 /***/ "@wordpress/is-shallow-equal": 1176 /*!*************************************************!*\ 1177 !*** external {"this":["wp","isShallowEqual"]} ***! 1178 \*************************************************/ 1179 /*! no static exports found */ 1180 /***/ (function(module, exports) { 1181 1182 (function() { module.exports = this["wp"]["isShallowEqual"]; }()); 1183 1184 /***/ }), 1185 1186 /***/ "lodash": 1187 /*!*************************!*\ 1188 !*** external "lodash" ***! 1189 \*************************/ 1190 /*! no static exports found */ 1191 /***/ (function(module, exports) { 1192 1193 (function() { module.exports = this["lodash"]; }()); 1194 1195 /***/ }) 1196 1197 /******/ }); 1198 //# sourceMappingURL=compose.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 |