[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/js/dist/ -> viewport.js (source)

   1  this["wp"] = this["wp"] || {}; this["wp"]["viewport"] =
   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/viewport/build-module/index.js");
  86  /******/ })
  87  /************************************************************************/
  88  /******/ ({
  89  
  90  /***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js":
  91  /*!**********************************************************************!*\
  92    !*** ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.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 _arrayWithoutHoles; });
 100  function _arrayWithoutHoles(arr) {
 101    if (Array.isArray(arr)) {
 102      for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
 103        arr2[i] = arr[i];
 104      }
 105  
 106      return arr2;
 107    }
 108  }
 109  
 110  /***/ }),
 111  
 112  /***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js":
 113  /*!********************************************************************!*\
 114    !*** ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***!
 115    \********************************************************************/
 116  /*! exports provided: default */
 117  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 118  
 119  "use strict";
 120  __webpack_require__.r(__webpack_exports__);
 121  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _iterableToArray; });
 122  function _iterableToArray(iter) {
 123    if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
 124  }
 125  
 126  /***/ }),
 127  
 128  /***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js":
 129  /*!**********************************************************************!*\
 130    !*** ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.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 _nonIterableSpread; });
 138  function _nonIterableSpread() {
 139    throw new TypeError("Invalid attempt to spread non-iterable instance");
 140  }
 141  
 142  /***/ }),
 143  
 144  /***/ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js":
 145  /*!**********************************************************************!*\
 146    !*** ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js ***!
 147    \**********************************************************************/
 148  /*! exports provided: default */
 149  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 150  
 151  "use strict";
 152  __webpack_require__.r(__webpack_exports__);
 153  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _toConsumableArray; });
 154  /* harmony import */ var _arrayWithoutHoles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithoutHoles */ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js");
 155  /* harmony import */ var _iterableToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray */ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js");
 156  /* harmony import */ var _nonIterableSpread__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./nonIterableSpread */ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js");
 157  
 158  
 159  
 160  function _toConsumableArray(arr) {
 161    return Object(_arrayWithoutHoles__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || Object(_iterableToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(arr) || Object(_nonIterableSpread__WEBPACK_IMPORTED_MODULE_2__["default"])();
 162  }
 163  
 164  /***/ }),
 165  
 166  /***/ "./node_modules/@wordpress/viewport/build-module/if-viewport-matches.js":
 167  /*!******************************************************************************!*\
 168    !*** ./node_modules/@wordpress/viewport/build-module/if-viewport-matches.js ***!
 169    \******************************************************************************/
 170  /*! exports provided: default */
 171  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 172  
 173  "use strict";
 174  __webpack_require__.r(__webpack_exports__);
 175  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
 176  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__);
 177  /* harmony import */ var _with_viewport_match__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./with-viewport-match */ "./node_modules/@wordpress/viewport/build-module/with-viewport-match.js");
 178  /**
 179   * WordPress dependencies
 180   */
 181  
 182  /**
 183   * Internal dependencies
 184   */
 185  
 186  
 187  /**
 188   * Higher-order component creator, creating a new component which renders if
 189   * the viewport query is satisfied.
 190   *
 191   * @param {string} query Viewport query.
 192   *
 193   * @see withViewportMatches
 194   *
 195   * @return {Function} Higher-order component.
 196   */
 197  
 198  var ifViewportMatches = function ifViewportMatches(query) {
 199    return Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__["createHigherOrderComponent"])(Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__["compose"])([Object(_with_viewport_match__WEBPACK_IMPORTED_MODULE_1__["default"])({
 200      isViewportMatch: query
 201    }), Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__["ifCondition"])(function (props) {
 202      return props.isViewportMatch;
 203    })]), 'ifViewportMatches');
 204  };
 205  
 206  /* harmony default export */ __webpack_exports__["default"] = (ifViewportMatches);
 207  
 208  
 209  /***/ }),
 210  
 211  /***/ "./node_modules/@wordpress/viewport/build-module/index.js":
 212  /*!****************************************************************!*\
 213    !*** ./node_modules/@wordpress/viewport/build-module/index.js ***!
 214    \****************************************************************/
 215  /*! exports provided: ifViewportMatches, withViewportMatch */
 216  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 217  
 218  "use strict";
 219  __webpack_require__.r(__webpack_exports__);
 220  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ "lodash");
 221  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
 222  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
 223  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__);
 224  /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./store */ "./node_modules/@wordpress/viewport/build-module/store/index.js");
 225  /* harmony import */ var _if_viewport_matches__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./if-viewport-matches */ "./node_modules/@wordpress/viewport/build-module/if-viewport-matches.js");
 226  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ifViewportMatches", function() { return _if_viewport_matches__WEBPACK_IMPORTED_MODULE_3__["default"]; });
 227  
 228  /* harmony import */ var _with_viewport_match__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./with-viewport-match */ "./node_modules/@wordpress/viewport/build-module/with-viewport-match.js");
 229  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withViewportMatch", function() { return _with_viewport_match__WEBPACK_IMPORTED_MODULE_4__["default"]; });
 230  
 231  /**
 232   * External dependencies
 233   */
 234  
 235  /**
 236   * WordPress dependencies
 237   */
 238  
 239  
 240  /**
 241   * Internal dependencies
 242   */
 243  
 244  
 245  
 246  
 247  /**
 248   * Hash of breakpoint names with pixel width at which it becomes effective.
 249   *
 250   * @see _breakpoints.scss
 251   *
 252   * @type {Object}
 253   */
 254  
 255  var BREAKPOINTS = {
 256    huge: 1440,
 257    wide: 1280,
 258    large: 960,
 259    medium: 782,
 260    small: 600,
 261    mobile: 480
 262  };
 263  /**
 264   * Hash of query operators with corresponding condition for media query.
 265   *
 266   * @type {Object}
 267   */
 268  
 269  var OPERATORS = {
 270    '<': 'max-width',
 271    '>=': 'min-width'
 272  };
 273  /**
 274   * Callback invoked when media query state should be updated. Is invoked a
 275   * maximum of one time per call stack.
 276   */
 277  
 278  var setIsMatching = Object(lodash__WEBPACK_IMPORTED_MODULE_0__["debounce"])(function () {
 279    var values = Object(lodash__WEBPACK_IMPORTED_MODULE_0__["mapValues"])(queries, function (query) {
 280      return query.matches;
 281    });
 282    Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__["dispatch"])('core/viewport').setIsMatching(values);
 283  }, {
 284    leading: true
 285  });
 286  /**
 287   * Hash of breakpoint names with generated MediaQueryList for corresponding
 288   * media query.
 289   *
 290   * @see https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia
 291   * @see https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList
 292   *
 293   * @type {Object<string,MediaQueryList>}
 294   */
 295  
 296  var queries = Object(lodash__WEBPACK_IMPORTED_MODULE_0__["reduce"])(BREAKPOINTS, function (result, width, name) {
 297    Object(lodash__WEBPACK_IMPORTED_MODULE_0__["forEach"])(OPERATORS, function (condition, operator) {
 298      var list = window.matchMedia("(".concat(condition, ": ").concat(width, "px)"));
 299      list.addListener(setIsMatching);
 300      var key = [operator, name].join(' ');
 301      result[key] = list;
 302    });
 303    return result;
 304  }, {});
 305  window.addEventListener('orientationchange', setIsMatching); // Set initial values
 306  
 307  setIsMatching();
 308  
 309  
 310  /***/ }),
 311  
 312  /***/ "./node_modules/@wordpress/viewport/build-module/store/actions.js":
 313  /*!************************************************************************!*\
 314    !*** ./node_modules/@wordpress/viewport/build-module/store/actions.js ***!
 315    \************************************************************************/
 316  /*! exports provided: setIsMatching */
 317  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 318  
 319  "use strict";
 320  __webpack_require__.r(__webpack_exports__);
 321  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setIsMatching", function() { return setIsMatching; });
 322  /**
 323   * Returns an action object used in signalling that viewport queries have been
 324   * updated. Values are specified as an object of breakpoint query keys where
 325   * value represents whether query matches.
 326   *
 327   * @param {Object} values Breakpoint query matches.
 328   *
 329   * @return {Object} Action object.
 330   */
 331  function setIsMatching(values) {
 332    return {
 333      type: 'SET_IS_MATCHING',
 334      values: values
 335    };
 336  }
 337  
 338  
 339  /***/ }),
 340  
 341  /***/ "./node_modules/@wordpress/viewport/build-module/store/index.js":
 342  /*!**********************************************************************!*\
 343    !*** ./node_modules/@wordpress/viewport/build-module/store/index.js ***!
 344    \**********************************************************************/
 345  /*! exports provided: default */
 346  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 347  
 348  "use strict";
 349  __webpack_require__.r(__webpack_exports__);
 350  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
 351  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_0__);
 352  /* harmony import */ var _reducer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reducer */ "./node_modules/@wordpress/viewport/build-module/store/reducer.js");
 353  /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./actions */ "./node_modules/@wordpress/viewport/build-module/store/actions.js");
 354  /* harmony import */ var _selectors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./selectors */ "./node_modules/@wordpress/viewport/build-module/store/selectors.js");
 355  /**
 356   * WordPress dependencies
 357   */
 358  
 359  /**
 360   * Internal dependencies
 361   */
 362  
 363  
 364  
 365  
 366  /* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_0__["registerStore"])('core/viewport', {
 367    reducer: _reducer__WEBPACK_IMPORTED_MODULE_1__["default"],
 368    actions: _actions__WEBPACK_IMPORTED_MODULE_2__,
 369    selectors: _selectors__WEBPACK_IMPORTED_MODULE_3__
 370  }));
 371  
 372  
 373  /***/ }),
 374  
 375  /***/ "./node_modules/@wordpress/viewport/build-module/store/reducer.js":
 376  /*!************************************************************************!*\
 377    !*** ./node_modules/@wordpress/viewport/build-module/store/reducer.js ***!
 378    \************************************************************************/
 379  /*! exports provided: default */
 380  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 381  
 382  "use strict";
 383  __webpack_require__.r(__webpack_exports__);
 384  /**
 385   * Reducer returning the viewport state, as keys of breakpoint queries with
 386   * boolean value representing whether query is matched.
 387   *
 388   * @param {Object} state  Current state.
 389   * @param {Object} action Dispatched action.
 390   *
 391   * @return {Object} Updated state.
 392   */
 393  function reducer() {
 394    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
 395    var action = arguments.length > 1 ? arguments[1] : undefined;
 396  
 397    switch (action.type) {
 398      case 'SET_IS_MATCHING':
 399        return action.values;
 400    }
 401  
 402    return state;
 403  }
 404  
 405  /* harmony default export */ __webpack_exports__["default"] = (reducer);
 406  
 407  
 408  /***/ }),
 409  
 410  /***/ "./node_modules/@wordpress/viewport/build-module/store/selectors.js":
 411  /*!**************************************************************************!*\
 412    !*** ./node_modules/@wordpress/viewport/build-module/store/selectors.js ***!
 413    \**************************************************************************/
 414  /*! exports provided: isViewportMatch */
 415  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 416  
 417  "use strict";
 418  __webpack_require__.r(__webpack_exports__);
 419  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isViewportMatch", function() { return isViewportMatch; });
 420  /* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
 421  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ "lodash");
 422  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
 423  
 424  
 425  /**
 426   * External dependencies
 427   */
 428  
 429  /**
 430   * Returns true if the viewport matches the given query, or false otherwise.
 431   *
 432   * @param {Object} state Viewport state object.
 433   * @param {string} query Query string. Includes operator and breakpoint name,
 434   *                       space separated. Operator defaults to >=.
 435   *
 436   * @example
 437   *
 438   * ```js
 439   * isViewportMatch( state, '< huge' );
 440   * isViewPortMatch( state, 'medium' );
 441   * ```
 442   *
 443   * @return {boolean} Whether viewport matches query.
 444   */
 445  
 446  function isViewportMatch(state, query) {
 447    // Pad to _at least_ two elements to take from the right, effectively
 448    // defaulting the left-most value.
 449    var key = Object(lodash__WEBPACK_IMPORTED_MODULE_1__["takeRight"])(['>='].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(query.split(' '))), 2).join(' ');
 450    return !!state[key];
 451  }
 452  
 453  
 454  /***/ }),
 455  
 456  /***/ "./node_modules/@wordpress/viewport/build-module/with-viewport-match.js":
 457  /*!******************************************************************************!*\
 458    !*** ./node_modules/@wordpress/viewport/build-module/with-viewport-match.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 lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ "lodash");
 466  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
 467  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
 468  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__);
 469  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
 470  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__);
 471  /**
 472   * External dependencies
 473   */
 474  
 475  /**
 476   * WordPress dependencies
 477   */
 478  
 479  
 480  
 481  /**
 482   * Higher-order component creator, creating a new component which renders with
 483   * the given prop names, where the value passed to the underlying component is
 484   * the result of the query assigned as the object's value.
 485   *
 486   * @param {Object} queries  Object of prop name to viewport query.
 487   *
 488   * @see isViewportMatch
 489   *
 490   * @return {Function} Higher-order component.
 491   */
 492  
 493  var withViewportMatch = function withViewportMatch(queries) {
 494    return Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__["createHigherOrderComponent"])(Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__["withSelect"])(function (select) {
 495      return Object(lodash__WEBPACK_IMPORTED_MODULE_0__["mapValues"])(queries, function (query) {
 496        return select('core/viewport').isViewportMatch(query);
 497      });
 498    }), 'withViewportMatch');
 499  };
 500  
 501  /* harmony default export */ __webpack_exports__["default"] = (withViewportMatch);
 502  
 503  
 504  /***/ }),
 505  
 506  /***/ "@wordpress/compose":
 507  /*!******************************************!*\
 508    !*** external {"this":["wp","compose"]} ***!
 509    \******************************************/
 510  /*! no static exports found */
 511  /***/ (function(module, exports) {
 512  
 513  (function() { module.exports = this["wp"]["compose"]; }());
 514  
 515  /***/ }),
 516  
 517  /***/ "@wordpress/data":
 518  /*!***************************************!*\
 519    !*** external {"this":["wp","data"]} ***!
 520    \***************************************/
 521  /*! no static exports found */
 522  /***/ (function(module, exports) {
 523  
 524  (function() { module.exports = this["wp"]["data"]; }());
 525  
 526  /***/ }),
 527  
 528  /***/ "lodash":
 529  /*!*************************!*\
 530    !*** external "lodash" ***!
 531    \*************************/
 532  /*! no static exports found */
 533  /***/ (function(module, exports) {
 534  
 535  (function() { module.exports = this["lodash"]; }());
 536  
 537  /***/ })
 538  
 539  /******/ });
 540  //# sourceMappingURL=viewport.js.map


Generated: Mon Jan 7 01:00:05 2019 Cross-referenced by PHPXref 0.7.1