[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> compose.js (source)

   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 = 373);
  86  /******/ })
  87  /************************************************************************/
  88  /******/ ({
  89  
  90  /***/ 0:
  91  /***/ (function(module, exports) {
  92  
  93  (function() { module.exports = this["wp"]["element"]; }());
  94  
  95  /***/ }),
  96  
  97  /***/ 12:
  98  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  99  
 100  "use strict";
 101  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; });
 102  function _defineProperties(target, props) {
 103    for (var i = 0; i < props.length; i++) {
 104      var descriptor = props[i];
 105      descriptor.enumerable = descriptor.enumerable || false;
 106      descriptor.configurable = true;
 107      if ("value" in descriptor) descriptor.writable = true;
 108      Object.defineProperty(target, descriptor.key, descriptor);
 109    }
 110  }
 111  
 112  function _createClass(Constructor, protoProps, staticProps) {
 113    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
 114    if (staticProps) _defineProperties(Constructor, staticProps);
 115    return Constructor;
 116  }
 117  
 118  /***/ }),
 119  
 120  /***/ 13:
 121  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 122  
 123  "use strict";
 124  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; });
 125  function _classCallCheck(instance, Constructor) {
 126    if (!(instance instanceof Constructor)) {
 127      throw new TypeError("Cannot call a class as a function");
 128    }
 129  }
 130  
 131  /***/ }),
 132  
 133  /***/ 14:
 134  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 135  
 136  "use strict";
 137  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; });
 138  function _extends() {
 139    _extends = Object.assign || function (target) {
 140      for (var i = 1; i < arguments.length; i++) {
 141        var source = arguments[i];
 142  
 143        for (var key in source) {
 144          if (Object.prototype.hasOwnProperty.call(source, key)) {
 145            target[key] = source[key];
 146          }
 147        }
 148      }
 149  
 150      return target;
 151    };
 152  
 153    return _extends.apply(this, arguments);
 154  }
 155  
 156  /***/ }),
 157  
 158  /***/ 15:
 159  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 160  
 161  "use strict";
 162  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
 163  /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31);
 164  /* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
 165  
 166  
 167  function _possibleConstructorReturn(self, call) {
 168    if (call && (Object(_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(call) === "object" || typeof call === "function")) {
 169      return call;
 170    }
 171  
 172    return Object(_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(self);
 173  }
 174  
 175  /***/ }),
 176  
 177  /***/ 16:
 178  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 179  
 180  "use strict";
 181  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; });
 182  function _getPrototypeOf(o) {
 183    _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
 184      return o.__proto__ || Object.getPrototypeOf(o);
 185    };
 186    return _getPrototypeOf(o);
 187  }
 188  
 189  /***/ }),
 190  
 191  /***/ 17:
 192  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 193  
 194  "use strict";
 195  
 196  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
 197  function _setPrototypeOf(o, p) {
 198    _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
 199      o.__proto__ = p;
 200      return o;
 201    };
 202  
 203    return _setPrototypeOf(o, p);
 204  }
 205  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
 206  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _inherits; });
 207  
 208  function _inherits(subClass, superClass) {
 209    if (typeof superClass !== "function" && superClass !== null) {
 210      throw new TypeError("Super expression must either be null or a function");
 211    }
 212  
 213    subClass.prototype = Object.create(superClass && superClass.prototype, {
 214      constructor: {
 215        value: subClass,
 216        writable: true,
 217        configurable: true
 218      }
 219    });
 220    if (superClass) _setPrototypeOf(subClass, superClass);
 221  }
 222  
 223  /***/ }),
 224  
 225  /***/ 2:
 226  /***/ (function(module, exports) {
 227  
 228  (function() { module.exports = this["lodash"]; }());
 229  
 230  /***/ }),
 231  
 232  /***/ 208:
 233  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 234  
 235  "use strict";
 236  /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var _use_media_query__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(83);
 237  /**
 238   * Internal dependencies
 239   */
 240  
 241  /**
 242   * Whether or not the user agent is Internet Explorer.
 243   *
 244   * @type {boolean}
 245   */
 246  
 247  var IS_IE = typeof window !== 'undefined' && window.navigator.userAgent.indexOf('Trident') >= 0;
 248  /**
 249   * Hook returning whether the user has a preference for reduced motion.
 250   *
 251   * @return {boolean} Reduced motion preference value.
 252   */
 253  
 254  var useReducedMotion = process.env.FORCE_REDUCED_MOTION || IS_IE ? function () {
 255    return true;
 256  } : function () {
 257    return Object(_use_media_query__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])('(prefers-reduced-motion: reduce)');
 258  };
 259  /* harmony default export */ __webpack_exports__["a"] = (useReducedMotion);
 260  
 261  /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(336)))
 262  
 263  /***/ }),
 264  
 265  /***/ 22:
 266  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 267  
 268  "use strict";
 269  
 270  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
 271  var arrayWithHoles = __webpack_require__(33);
 272  
 273  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
 274  function _iterableToArrayLimit(arr, i) {
 275    if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
 276      return;
 277    }
 278  
 279    var _arr = [];
 280    var _n = true;
 281    var _d = false;
 282    var _e = undefined;
 283  
 284    try {
 285      for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
 286        _arr.push(_s.value);
 287  
 288        if (i && _arr.length === i) break;
 289      }
 290    } catch (err) {
 291      _d = true;
 292      _e = err;
 293    } finally {
 294      try {
 295        if (!_n && _i["return"] != null) _i["return"]();
 296      } finally {
 297        if (_d) throw _e;
 298      }
 299    }
 300  
 301    return _arr;
 302  }
 303  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
 304  var nonIterableRest = __webpack_require__(34);
 305  
 306  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
 307  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; });
 308  
 309  
 310  
 311  function _slicedToArray(arr, i) {
 312    return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(nonIterableRest["a" /* default */])();
 313  }
 314  
 315  /***/ }),
 316  
 317  /***/ 31:
 318  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 319  
 320  "use strict";
 321  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; });
 322  function _typeof(obj) {
 323    if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
 324      _typeof = function _typeof(obj) {
 325        return typeof obj;
 326      };
 327    } else {
 328      _typeof = function _typeof(obj) {
 329        return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
 330      };
 331    }
 332  
 333    return _typeof(obj);
 334  }
 335  
 336  /***/ }),
 337  
 338  /***/ 33:
 339  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 340  
 341  "use strict";
 342  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; });
 343  function _arrayWithHoles(arr) {
 344    if (Array.isArray(arr)) return arr;
 345  }
 346  
 347  /***/ }),
 348  
 349  /***/ 336:
 350  /***/ (function(module, exports) {
 351  
 352  // shim for using process in browser
 353  var process = module.exports = {};
 354  
 355  // cached from whatever global is present so that test runners that stub it
 356  // don't break things.  But we need to wrap it in a try catch in case it is
 357  // wrapped in strict mode code which doesn't define any globals.  It's inside a
 358  // function because try/catches deoptimize in certain engines.
 359  
 360  var cachedSetTimeout;
 361  var cachedClearTimeout;
 362  
 363  function defaultSetTimout() {
 364      throw new Error('setTimeout has not been defined');
 365  }
 366  function defaultClearTimeout () {
 367      throw new Error('clearTimeout has not been defined');
 368  }
 369  (function () {
 370      try {
 371          if (typeof setTimeout === 'function') {
 372              cachedSetTimeout = setTimeout;
 373          } else {
 374              cachedSetTimeout = defaultSetTimout;
 375          }
 376      } catch (e) {
 377          cachedSetTimeout = defaultSetTimout;
 378      }
 379      try {
 380          if (typeof clearTimeout === 'function') {
 381              cachedClearTimeout = clearTimeout;
 382          } else {
 383              cachedClearTimeout = defaultClearTimeout;
 384          }
 385      } catch (e) {
 386          cachedClearTimeout = defaultClearTimeout;
 387      }
 388  } ())
 389  function runTimeout(fun) {
 390      if (cachedSetTimeout === setTimeout) {
 391          //normal enviroments in sane situations
 392          return setTimeout(fun, 0);
 393      }
 394      // if setTimeout wasn't available but was latter defined
 395      if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
 396          cachedSetTimeout = setTimeout;
 397          return setTimeout(fun, 0);
 398      }
 399      try {
 400          // when when somebody has screwed with setTimeout but no I.E. maddness
 401          return cachedSetTimeout(fun, 0);
 402      } catch(e){
 403          try {
 404              // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
 405              return cachedSetTimeout.call(null, fun, 0);
 406          } catch(e){
 407              // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
 408              return cachedSetTimeout.call(this, fun, 0);
 409          }
 410      }
 411  
 412  
 413  }
 414  function runClearTimeout(marker) {
 415      if (cachedClearTimeout === clearTimeout) {
 416          //normal enviroments in sane situations
 417          return clearTimeout(marker);
 418      }
 419      // if clearTimeout wasn't available but was latter defined
 420      if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
 421          cachedClearTimeout = clearTimeout;
 422          return clearTimeout(marker);
 423      }
 424      try {
 425          // when when somebody has screwed with setTimeout but no I.E. maddness
 426          return cachedClearTimeout(marker);
 427      } catch (e){
 428          try {
 429              // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally
 430              return cachedClearTimeout.call(null, marker);
 431          } catch (e){
 432              // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
 433              // Some versions of I.E. have different rules for clearTimeout vs setTimeout
 434              return cachedClearTimeout.call(this, marker);
 435          }
 436      }
 437  
 438  
 439  
 440  }
 441  var queue = [];
 442  var draining = false;
 443  var currentQueue;
 444  var queueIndex = -1;
 445  
 446  function cleanUpNextTick() {
 447      if (!draining || !currentQueue) {
 448          return;
 449      }
 450      draining = false;
 451      if (currentQueue.length) {
 452          queue = currentQueue.concat(queue);
 453      } else {
 454          queueIndex = -1;
 455      }
 456      if (queue.length) {
 457          drainQueue();
 458      }
 459  }
 460  
 461  function drainQueue() {
 462      if (draining) {
 463          return;
 464      }
 465      var timeout = runTimeout(cleanUpNextTick);
 466      draining = true;
 467  
 468      var len = queue.length;
 469      while(len) {
 470          currentQueue = queue;
 471          queue = [];
 472          while (++queueIndex < len) {
 473              if (currentQueue) {
 474                  currentQueue[queueIndex].run();
 475              }
 476          }
 477          queueIndex = -1;
 478          len = queue.length;
 479      }
 480      currentQueue = null;
 481      draining = false;
 482      runClearTimeout(timeout);
 483  }
 484  
 485  process.nextTick = function (fun) {
 486      var args = new Array(arguments.length - 1);
 487      if (arguments.length > 1) {
 488          for (var i = 1; i < arguments.length; i++) {
 489              args[i - 1] = arguments[i];
 490          }
 491      }
 492      queue.push(new Item(fun, args));
 493      if (queue.length === 1 && !draining) {
 494          runTimeout(drainQueue);
 495      }
 496  };
 497  
 498  // v8 likes predictible objects
 499  function Item(fun, array) {
 500      this.fun = fun;
 501      this.array = array;
 502  }
 503  Item.prototype.run = function () {
 504      this.fun.apply(null, this.array);
 505  };
 506  process.title = 'browser';
 507  process.browser = true;
 508  process.env = {};
 509  process.argv = [];
 510  process.version = ''; // empty string to avoid regexp issues
 511  process.versions = {};
 512  
 513  function noop() {}
 514  
 515  process.on = noop;
 516  process.addListener = noop;
 517  process.once = noop;
 518  process.off = noop;
 519  process.removeListener = noop;
 520  process.removeAllListeners = noop;
 521  process.emit = noop;
 522  process.prependListener = noop;
 523  process.prependOnceListener = noop;
 524  
 525  process.listeners = function (name) { return [] }
 526  
 527  process.binding = function (name) {
 528      throw new Error('process.binding is not supported');
 529  };
 530  
 531  process.cwd = function () { return '/' };
 532  process.chdir = function (dir) {
 533      throw new Error('process.chdir is not supported');
 534  };
 535  process.umask = function() { return 0; };
 536  
 537  
 538  /***/ }),
 539  
 540  /***/ 34:
 541  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 542  
 543  "use strict";
 544  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; });
 545  function _nonIterableRest() {
 546    throw new TypeError("Invalid attempt to destructure non-iterable instance");
 547  }
 548  
 549  /***/ }),
 550  
 551  /***/ 373:
 552  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 553  
 554  "use strict";
 555  __webpack_require__.r(__webpack_exports__);
 556  
 557  // EXTERNAL MODULE: external {"this":"lodash"}
 558  var external_this_lodash_ = __webpack_require__(2);
 559  
 560  // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/utils/create-higher-order-component/index.js
 561  /**
 562   * External dependencies
 563   */
 564  
 565  /**
 566   * Given a function mapping a component to an enhanced component and modifier
 567   * name, returns the enhanced component augmented with a generated displayName.
 568   *
 569   * @param {Function} mapComponentToEnhancedComponent Function mapping component
 570   *                                                   to enhanced component.
 571   * @param {string}   modifierName                    Seed name from which to
 572   *                                                   generated display name.
 573   *
 574   * @return {WPComponent} Component class with generated display name assigned.
 575   */
 576  
 577  function createHigherOrderComponent(mapComponentToEnhancedComponent, modifierName) {
 578    return function (OriginalComponent) {
 579      var EnhancedComponent = mapComponentToEnhancedComponent(OriginalComponent);
 580      var _OriginalComponent$di = OriginalComponent.displayName,
 581          displayName = _OriginalComponent$di === void 0 ? OriginalComponent.name || 'Component' : _OriginalComponent$di;
 582      EnhancedComponent.displayName = "".concat(Object(external_this_lodash_["upperFirst"])(Object(external_this_lodash_["camelCase"])(modifierName)), "(").concat(displayName, ")");
 583      return EnhancedComponent;
 584    };
 585  }
 586  
 587  /* harmony default export */ var create_higher_order_component = (createHigherOrderComponent);
 588  
 589  // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/compose.js
 590  /**
 591   * External dependencies
 592   */
 593  
 594  /**
 595   * Composes multiple higher-order components into a single higher-order component. Performs right-to-left function
 596   * composition, where each successive invocation is supplied the return value of the previous.
 597   *
 598   * @param {...Function} hocs The HOC functions to invoke.
 599   *
 600   * @return {Function} Returns the new composite function.
 601   */
 602  
 603  /* harmony default export */ var compose = (external_this_lodash_["flowRight"]);
 604  
 605  // EXTERNAL MODULE: external {"this":["wp","element"]}
 606  var external_this_wp_element_ = __webpack_require__(0);
 607  
 608  // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/if-condition/index.js
 609  
 610  
 611  /**
 612   * Internal dependencies
 613   */
 614  
 615  /**
 616   * Higher-order component creator, creating a new component which renders if
 617   * the given condition is satisfied or with the given optional prop name.
 618   *
 619   * @param {Function} predicate Function to test condition.
 620   *
 621   * @return {Function} Higher-order component.
 622   */
 623  
 624  var if_condition_ifCondition = function ifCondition(predicate) {
 625    return create_higher_order_component(function (WrappedComponent) {
 626      return function (props) {
 627        if (!predicate(props)) {
 628          return null;
 629        }
 630  
 631        return Object(external_this_wp_element_["createElement"])(WrappedComponent, props);
 632      };
 633    }, 'ifCondition');
 634  };
 635  
 636  /* harmony default export */ var if_condition = (if_condition_ifCondition);
 637  
 638  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
 639  var classCallCheck = __webpack_require__(13);
 640  
 641  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
 642  var createClass = __webpack_require__(12);
 643  
 644  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
 645  var possibleConstructorReturn = __webpack_require__(15);
 646  
 647  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
 648  var getPrototypeOf = __webpack_require__(16);
 649  
 650  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules
 651  var inherits = __webpack_require__(17);
 652  
 653  // EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]}
 654  var external_this_wp_isShallowEqual_ = __webpack_require__(45);
 655  var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_);
 656  
 657  // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/pure/index.js
 658  
 659  
 660  
 661  
 662  
 663  
 664  
 665  /**
 666   * WordPress dependencies
 667   */
 668  
 669  
 670  /**
 671   * Internal dependencies
 672   */
 673  
 674  
 675  /**
 676   * Given a component returns the enhanced component augmented with a component
 677   * only rerendering when its props/state change
 678   *
 679   * @param {Function} mapComponentToEnhancedComponent Function mapping component
 680   *                                                   to enhanced component.
 681   * @param {string}   modifierName                    Seed name from which to
 682   *                                                   generated display name.
 683   *
 684   * @return {WPComponent} Component class with generated display name assigned.
 685   */
 686  
 687  var pure = create_higher_order_component(function (Wrapped) {
 688    if (Wrapped.prototype instanceof external_this_wp_element_["Component"]) {
 689      return (
 690        /*#__PURE__*/
 691        function (_Wrapped) {
 692          Object(inherits["a" /* default */])(_class, _Wrapped);
 693  
 694          function _class() {
 695            Object(classCallCheck["a" /* default */])(this, _class);
 696  
 697            return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(_class).apply(this, arguments));
 698          }
 699  
 700          Object(createClass["a" /* default */])(_class, [{
 701            key: "shouldComponentUpdate",
 702            value: function shouldComponentUpdate(nextProps, nextState) {
 703              return !external_this_wp_isShallowEqual_default()(nextProps, this.props) || !external_this_wp_isShallowEqual_default()(nextState, this.state);
 704            }
 705          }]);
 706  
 707          return _class;
 708        }(Wrapped)
 709      );
 710    }
 711  
 712    return (
 713      /*#__PURE__*/
 714      function (_Component) {
 715        Object(inherits["a" /* default */])(_class2, _Component);
 716  
 717        function _class2() {
 718          Object(classCallCheck["a" /* default */])(this, _class2);
 719  
 720          return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(_class2).apply(this, arguments));
 721        }
 722  
 723        Object(createClass["a" /* default */])(_class2, [{
 724          key: "shouldComponentUpdate",
 725          value: function shouldComponentUpdate(nextProps) {
 726            return !external_this_wp_isShallowEqual_default()(nextProps, this.props);
 727          }
 728        }, {
 729          key: "render",
 730          value: function render() {
 731            return Object(external_this_wp_element_["createElement"])(Wrapped, this.props);
 732          }
 733        }]);
 734  
 735        return _class2;
 736      }(external_this_wp_element_["Component"])
 737    );
 738  }, 'pure');
 739  /* harmony default export */ var higher_order_pure = (pure);
 740  
 741  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
 742  var esm_extends = __webpack_require__(14);
 743  
 744  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
 745  var assertThisInitialized = __webpack_require__(6);
 746  
 747  // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/with-global-events/listener.js
 748  
 749  
 750  
 751  /**
 752   * External dependencies
 753   */
 754  
 755  /**
 756   * Class responsible for orchestrating event handling on the global window,
 757   * binding a single event to be shared across all handling instances, and
 758   * removing the handler when no instances are listening for the event.
 759   */
 760  
 761  var listener_Listener =
 762  /*#__PURE__*/
 763  function () {
 764    function Listener() {
 765      Object(classCallCheck["a" /* default */])(this, Listener);
 766  
 767      this.listeners = {};
 768      this.handleEvent = this.handleEvent.bind(this);
 769    }
 770  
 771    Object(createClass["a" /* default */])(Listener, [{
 772      key: "add",
 773      value: function add(eventType, instance) {
 774        if (!this.listeners[eventType]) {
 775          // Adding first listener for this type, so bind event.
 776          window.addEventListener(eventType, this.handleEvent);
 777          this.listeners[eventType] = [];
 778        }
 779  
 780        this.listeners[eventType].push(instance);
 781      }
 782    }, {
 783      key: "remove",
 784      value: function remove(eventType, instance) {
 785        this.listeners[eventType] = Object(external_this_lodash_["without"])(this.listeners[eventType], instance);
 786  
 787        if (!this.listeners[eventType].length) {
 788          // Removing last listener for this type, so unbind event.
 789          window.removeEventListener(eventType, this.handleEvent);
 790          delete this.listeners[eventType];
 791        }
 792      }
 793    }, {
 794      key: "handleEvent",
 795      value: function handleEvent(event) {
 796        Object(external_this_lodash_["forEach"])(this.listeners[event.type], function (instance) {
 797          instance.handleEvent(event);
 798        });
 799      }
 800    }]);
 801  
 802    return Listener;
 803  }();
 804  
 805  /* harmony default export */ var listener = (listener_Listener);
 806  
 807  // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/with-global-events/index.js
 808  
 809  
 810  
 811  
 812  
 813  
 814  
 815  
 816  
 817  /**
 818   * External dependencies
 819   */
 820  
 821  /**
 822   * WordPress dependencies
 823   */
 824  
 825  
 826  /**
 827   * Internal dependencies
 828   */
 829  
 830  
 831  
 832  /**
 833   * Listener instance responsible for managing document event handling.
 834   *
 835   * @type {Listener}
 836   */
 837  
 838  var with_global_events_listener = new listener();
 839  /**
 840   * Higher-order component creator which, given an object of DOM event types and
 841   * values corresponding to a callback function name on the component, will
 842   * create or update a window event handler to invoke the callback when an event
 843   * occurs. On behalf of the consuming developer, the higher-order component
 844   * manages unbinding when the component unmounts, and binding at most a single
 845   * event handler for the entire application.
 846   *
 847   * @param {Object<string,string>} eventTypesToHandlers Object with keys of DOM
 848   *                                                     event type, the value a
 849   *                                                     name of the function on
 850   *                                                     the original component's
 851   *                                                     instance which handles
 852   *                                                     the event.
 853   *
 854   * @return {Function} Higher-order component.
 855   */
 856  
 857  function withGlobalEvents(eventTypesToHandlers) {
 858    return create_higher_order_component(function (WrappedComponent) {
 859      var Wrapper =
 860      /*#__PURE__*/
 861      function (_Component) {
 862        Object(inherits["a" /* default */])(Wrapper, _Component);
 863  
 864        function Wrapper() {
 865          var _this;
 866  
 867          Object(classCallCheck["a" /* default */])(this, Wrapper);
 868  
 869          _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(Wrapper).apply(this, arguments));
 870          _this.handleEvent = _this.handleEvent.bind(Object(assertThisInitialized["a" /* default */])(_this));
 871          _this.handleRef = _this.handleRef.bind(Object(assertThisInitialized["a" /* default */])(_this));
 872          return _this;
 873        }
 874  
 875        Object(createClass["a" /* default */])(Wrapper, [{
 876          key: "componentDidMount",
 877          value: function componentDidMount() {
 878            var _this2 = this;
 879  
 880            Object(external_this_lodash_["forEach"])(eventTypesToHandlers, function (handler, eventType) {
 881              with_global_events_listener.add(eventType, _this2);
 882            });
 883          }
 884        }, {
 885          key: "componentWillUnmount",
 886          value: function componentWillUnmount() {
 887            var _this3 = this;
 888  
 889            Object(external_this_lodash_["forEach"])(eventTypesToHandlers, function (handler, eventType) {
 890              with_global_events_listener.remove(eventType, _this3);
 891            });
 892          }
 893        }, {
 894          key: "handleEvent",
 895          value: function handleEvent(event) {
 896            var handler = eventTypesToHandlers[event.type];
 897  
 898            if (typeof this.wrappedRef[handler] === 'function') {
 899              this.wrappedRef[handler](event);
 900            }
 901          }
 902        }, {
 903          key: "handleRef",
 904          value: function handleRef(el) {
 905            this.wrappedRef = el; // Any component using `withGlobalEvents` that is not setting a `ref`
 906            // will cause `this.props.forwardedRef` to be `null`, so we need this
 907            // check.
 908  
 909            if (this.props.forwardedRef) {
 910              this.props.forwardedRef(el);
 911            }
 912          }
 913        }, {
 914          key: "render",
 915          value: function render() {
 916            return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, this.props.ownProps, {
 917              ref: this.handleRef
 918            }));
 919          }
 920        }]);
 921  
 922        return Wrapper;
 923      }(external_this_wp_element_["Component"]);
 924  
 925      return Object(external_this_wp_element_["forwardRef"])(function (props, ref) {
 926        return Object(external_this_wp_element_["createElement"])(Wrapper, {
 927          ownProps: props,
 928          forwardedRef: ref
 929        });
 930      });
 931    }, 'withGlobalEvents');
 932  }
 933  
 934  /* harmony default export */ var with_global_events = (withGlobalEvents);
 935  
 936  // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/with-instance-id/index.js
 937  
 938  
 939  
 940  
 941  
 942  
 943  
 944  
 945  /**
 946   * WordPress dependencies
 947   */
 948  
 949  /**
 950   * Internal dependencies
 951   */
 952  
 953  
 954  /**
 955   * A Higher Order Component used to be provide a unique instance ID by
 956   * component.
 957   *
 958   * @param {WPComponent} WrappedComponent The wrapped component.
 959   *
 960   * @return {WPComponent} Component with an instanceId prop.
 961   */
 962  
 963  /* harmony default export */ var with_instance_id = (create_higher_order_component(function (WrappedComponent) {
 964    var instances = 0;
 965    return (
 966      /*#__PURE__*/
 967      function (_Component) {
 968        Object(inherits["a" /* default */])(_class, _Component);
 969  
 970        function _class() {
 971          var _this;
 972  
 973          Object(classCallCheck["a" /* default */])(this, _class);
 974  
 975          _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(_class).apply(this, arguments));
 976          _this.instanceId = instances++;
 977          return _this;
 978        }
 979  
 980        Object(createClass["a" /* default */])(_class, [{
 981          key: "render",
 982          value: function render() {
 983            return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, this.props, {
 984              instanceId: this.instanceId
 985            }));
 986          }
 987        }]);
 988  
 989        return _class;
 990      }(external_this_wp_element_["Component"])
 991    );
 992  }, 'withInstanceId'));
 993  
 994  // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/with-safe-timeout/index.js
 995  
 996  
 997  
 998  
 999  
1000  
1001  
1002  
1003  
1004  /**
1005   * External dependencies
1006   */
1007  
1008  /**
1009   * WordPress dependencies
1010   */
1011  
1012  
1013  /**
1014   * Internal dependencies
1015   */
1016  
1017  
1018  /**
1019   * A higher-order component used to provide and manage delayed function calls
1020   * that ought to be bound to a component's lifecycle.
1021   *
1022   * @param {WPComponent} OriginalComponent Component requiring setTimeout
1023   *
1024   * @return {WPComponent} Wrapped component.
1025   */
1026  
1027  var withSafeTimeout = create_higher_order_component(function (OriginalComponent) {
1028    return (
1029      /*#__PURE__*/
1030      function (_Component) {
1031        Object(inherits["a" /* default */])(WrappedComponent, _Component);
1032  
1033        function WrappedComponent() {
1034          var _this;
1035  
1036          Object(classCallCheck["a" /* default */])(this, WrappedComponent);
1037  
1038          _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(WrappedComponent).apply(this, arguments));
1039          _this.timeouts = [];
1040          _this.setTimeout = _this.setTimeout.bind(Object(assertThisInitialized["a" /* default */])(_this));
1041          _this.clearTimeout = _this.clearTimeout.bind(Object(assertThisInitialized["a" /* default */])(_this));
1042          return _this;
1043        }
1044  
1045        Object(createClass["a" /* default */])(WrappedComponent, [{
1046          key: "componentWillUnmount",
1047          value: function componentWillUnmount() {
1048            this.timeouts.forEach(clearTimeout);
1049          }
1050        }, {
1051          key: "setTimeout",
1052          value: function (_setTimeout) {
1053            function setTimeout(_x, _x2) {
1054              return _setTimeout.apply(this, arguments);
1055            }
1056  
1057            setTimeout.toString = function () {
1058              return _setTimeout.toString();
1059            };
1060  
1061            return setTimeout;
1062          }(function (fn, delay) {
1063            var _this2 = this;
1064  
1065            var id = setTimeout(function () {
1066              fn();
1067  
1068              _this2.clearTimeout(id);
1069            }, delay);
1070            this.timeouts.push(id);
1071            return id;
1072          })
1073        }, {
1074          key: "clearTimeout",
1075          value: function (_clearTimeout) {
1076            function clearTimeout(_x3) {
1077              return _clearTimeout.apply(this, arguments);
1078            }
1079  
1080            clearTimeout.toString = function () {
1081              return _clearTimeout.toString();
1082            };
1083  
1084            return clearTimeout;
1085          }(function (id) {
1086            clearTimeout(id);
1087            this.timeouts = Object(external_this_lodash_["without"])(this.timeouts, id);
1088          })
1089        }, {
1090          key: "render",
1091          value: function render() {
1092            return Object(external_this_wp_element_["createElement"])(OriginalComponent, Object(esm_extends["a" /* default */])({}, this.props, {
1093              setTimeout: this.setTimeout,
1094              clearTimeout: this.clearTimeout
1095            }));
1096          }
1097        }]);
1098  
1099        return WrappedComponent;
1100      }(external_this_wp_element_["Component"])
1101    );
1102  }, 'withSafeTimeout');
1103  /* harmony default export */ var with_safe_timeout = (withSafeTimeout);
1104  
1105  // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/with-state/index.js
1106  
1107  
1108  
1109  
1110  
1111  
1112  
1113  
1114  
1115  /**
1116   * WordPress dependencies
1117   */
1118  
1119  /**
1120   * Internal dependencies
1121   */
1122  
1123  
1124  /**
1125   * A Higher Order Component used to provide and manage internal component state
1126   * via props.
1127   *
1128   * @param {?Object} initialState Optional initial state of the component.
1129   *
1130   * @return {WPComponent} Wrapped component.
1131   */
1132  
1133  function withState() {
1134    var initialState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1135    return create_higher_order_component(function (OriginalComponent) {
1136      return (
1137        /*#__PURE__*/
1138        function (_Component) {
1139          Object(inherits["a" /* default */])(WrappedComponent, _Component);
1140  
1141          function WrappedComponent() {
1142            var _this;
1143  
1144            Object(classCallCheck["a" /* default */])(this, WrappedComponent);
1145  
1146            _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(WrappedComponent).apply(this, arguments));
1147            _this.setState = _this.setState.bind(Object(assertThisInitialized["a" /* default */])(_this));
1148            _this.state = initialState;
1149            return _this;
1150          }
1151  
1152          Object(createClass["a" /* default */])(WrappedComponent, [{
1153            key: "render",
1154            value: function render() {
1155              return Object(external_this_wp_element_["createElement"])(OriginalComponent, Object(esm_extends["a" /* default */])({}, this.props, this.state, {
1156                setState: this.setState
1157              }));
1158            }
1159          }]);
1160  
1161          return WrappedComponent;
1162        }(external_this_wp_element_["Component"])
1163      );
1164    }, 'withState');
1165  }
1166  
1167  // EXTERNAL MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-media-query/index.js
1168  var use_media_query = __webpack_require__(83);
1169  
1170  // EXTERNAL MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-reduced-motion/index.js
1171  var use_reduced_motion = __webpack_require__(208);
1172  
1173  // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-viewport-match/index.js
1174  /**
1175   * Internal dependencies
1176   */
1177  
1178  /**
1179   * @typedef {"huge"|"wide"|"large"|"medium"|"small"|"mobile"} WPBreakpoint
1180   */
1181  
1182  /**
1183   * Hash of breakpoint names with pixel width at which it becomes effective.
1184   *
1185   * @see _breakpoints.scss
1186   *
1187   * @type {Object<WPBreakpoint,number>}
1188   */
1189  
1190  var BREAKPOINTS = {
1191    huge: 1440,
1192    wide: 1280,
1193    large: 960,
1194    medium: 782,
1195    small: 600,
1196    mobile: 480
1197  };
1198  /**
1199   * @typedef {">="|"<"} WPViewportOperator
1200   */
1201  
1202  /**
1203   * Object mapping media query operators to the condition to be used.
1204   *
1205   * @type {Object<WPViewportOperator,string>}
1206   */
1207  
1208  var CONDITIONS = {
1209    '>=': 'min-width',
1210    '<': 'max-width'
1211  };
1212  /**
1213   * Returns true if the viewport matches the given query, or false otherwise.
1214   *
1215   * @param {WPBreakpoint}       breakpoint      Breakpoint size name.
1216   * @param {WPViewportOperator} [operator=">="] Viewport operator.
1217   *
1218   * @example
1219   *
1220   * ```js
1221   * useViewportMatch( 'huge', <' );
1222   * useViewportMatch( 'medium' );
1223   * ```
1224   *
1225   * @return {boolean} Whether viewport matches query.
1226   */
1227  
1228  var use_viewport_match_useViewportMatch = function useViewportMatch(breakpoint) {
1229    var operator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '>=';
1230    var mediaQuery = "(".concat(CONDITIONS[operator], ": ").concat(BREAKPOINTS[breakpoint], "px)");
1231    return Object(use_media_query["a" /* default */])(mediaQuery);
1232  };
1233  
1234  /* harmony default export */ var use_viewport_match = (use_viewport_match_useViewportMatch);
1235  
1236  // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/index.js
1237  /* concated harmony reexport createHigherOrderComponent */__webpack_require__.d(__webpack_exports__, "createHigherOrderComponent", function() { return create_higher_order_component; });
1238  /* concated harmony reexport compose */__webpack_require__.d(__webpack_exports__, "compose", function() { return compose; });
1239  /* concated harmony reexport ifCondition */__webpack_require__.d(__webpack_exports__, "ifCondition", function() { return if_condition; });
1240  /* concated harmony reexport pure */__webpack_require__.d(__webpack_exports__, "pure", function() { return higher_order_pure; });
1241  /* concated harmony reexport withGlobalEvents */__webpack_require__.d(__webpack_exports__, "withGlobalEvents", function() { return with_global_events; });
1242  /* concated harmony reexport withInstanceId */__webpack_require__.d(__webpack_exports__, "withInstanceId", function() { return with_instance_id; });
1243  /* concated harmony reexport withSafeTimeout */__webpack_require__.d(__webpack_exports__, "withSafeTimeout", function() { return with_safe_timeout; });
1244  /* concated harmony reexport withState */__webpack_require__.d(__webpack_exports__, "withState", function() { return withState; });
1245  /* concated harmony reexport useMediaQuery */__webpack_require__.d(__webpack_exports__, "useMediaQuery", function() { return use_media_query["a" /* default */]; });
1246  /* concated harmony reexport useReducedMotion */__webpack_require__.d(__webpack_exports__, "useReducedMotion", function() { return use_reduced_motion["a" /* default */]; });
1247  /* concated harmony reexport useViewportMatch */__webpack_require__.d(__webpack_exports__, "useViewportMatch", function() { return use_viewport_match; });
1248  // Utils
1249   // Compose helper (aliased flowRight from Lodash)
1250  
1251   // Higher-order components
1252  
1253  
1254  
1255  
1256  
1257  
1258   // Hooks
1259  
1260  
1261  
1262  
1263  
1264  
1265  /***/ }),
1266  
1267  /***/ 45:
1268  /***/ (function(module, exports) {
1269  
1270  (function() { module.exports = this["wp"]["isShallowEqual"]; }());
1271  
1272  /***/ }),
1273  
1274  /***/ 6:
1275  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1276  
1277  "use strict";
1278  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; });
1279  function _assertThisInitialized(self) {
1280    if (self === void 0) {
1281      throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1282    }
1283  
1284    return self;
1285  }
1286  
1287  /***/ }),
1288  
1289  /***/ 83:
1290  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1291  
1292  "use strict";
1293  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useMediaQuery; });
1294  /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22);
1295  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
1296  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
1297  
1298  
1299  /**
1300   * WordPress dependencies
1301   */
1302  
1303  /**
1304   * Runs a media query and returns its value when it changes.
1305   *
1306   * @param {string} query Media Query.
1307   * @return {boolean} return value of the media query.
1308   */
1309  
1310  function useMediaQuery(query) {
1311    var _useState = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useState"])(false),
1312        _useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_useState, 2),
1313        match = _useState2[0],
1314        setMatch = _useState2[1];
1315  
1316    Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(function () {
1317      var updateMatch = function updateMatch() {
1318        return setMatch(window.matchMedia(query).matches);
1319      };
1320  
1321      updateMatch();
1322      var list = window.matchMedia(query);
1323      list.addListener(updateMatch);
1324      return function () {
1325        list.removeListener(updateMatch);
1326      };
1327    }, [query]);
1328    return match;
1329  }
1330  
1331  
1332  /***/ })
1333  
1334  /******/ });


Generated: Tue Jan 21 01:00:03 2020 Cross-referenced by PHPXref 0.7.1