wp/wp-includes/js/dist/viewport.js
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
     1 this["wp"] = this["wp"] || {}; this["wp"]["viewport"] =
     1 /******/ (function() { // webpackBootstrap
     2 /******/ (function(modules) { // webpackBootstrap
     2 /******/ 	"use strict";
     3 /******/ 	// The module cache
     3 /******/ 	// The require scope
     4 /******/ 	var installedModules = {};
     4 /******/ 	var __webpack_require__ = {};
     5 /******/
     5 /******/ 	
     6 /******/ 	// The require function
     6 /************************************************************************/
     7 /******/ 	function __webpack_require__(moduleId) {
     7 /******/ 	/* webpack/runtime/define property getters */
     8 /******/
     8 /******/ 	!function() {
     9 /******/ 		// Check if module is in cache
     9 /******/ 		// define getter functions for harmony exports
    10 /******/ 		if(installedModules[moduleId]) {
    10 /******/ 		__webpack_require__.d = function(exports, definition) {
    11 /******/ 			return installedModules[moduleId].exports;
    11 /******/ 			for(var key in definition) {
    12 /******/ 		}
    12 /******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
    13 /******/ 		// Create a new module (and put it into the cache)
    13 /******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
    14 /******/ 		var module = installedModules[moduleId] = {
    14 /******/ 				}
    15 /******/ 			i: moduleId,
    15 /******/ 			}
    16 /******/ 			l: false,
       
    17 /******/ 			exports: {}
       
    18 /******/ 		};
    16 /******/ 		};
    19 /******/
    17 /******/ 	}();
    20 /******/ 		// Execute the module function
    18 /******/ 	
    21 /******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
    19 /******/ 	/* webpack/runtime/hasOwnProperty shorthand */
    22 /******/
    20 /******/ 	!function() {
    23 /******/ 		// Flag the module as loaded
    21 /******/ 		__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
    24 /******/ 		module.l = true;
    22 /******/ 	}();
    25 /******/
    23 /******/ 	
    26 /******/ 		// Return the exports of the module
    24 /******/ 	/* webpack/runtime/make namespace object */
    27 /******/ 		return module.exports;
    25 /******/ 	!function() {
    28 /******/ 	}
    26 /******/ 		// define __esModule on exports
    29 /******/
    27 /******/ 		__webpack_require__.r = function(exports) {
    30 /******/
    28 /******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
    31 /******/ 	// expose the modules object (__webpack_modules__)
    29 /******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
    32 /******/ 	__webpack_require__.m = modules;
    30 /******/ 			}
    33 /******/
    31 /******/ 			Object.defineProperty(exports, '__esModule', { value: true });
    34 /******/ 	// expose the module cache
    32 /******/ 		};
    35 /******/ 	__webpack_require__.c = installedModules;
    33 /******/ 	}();
    36 /******/
    34 /******/ 	
    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 = "PR0u");
       
    86 /******/ })
       
    87 /************************************************************************/
    35 /************************************************************************/
    88 /******/ ({
    36 var __webpack_exports__ = {};
    89 
       
    90 /***/ "1ZqX":
       
    91 /***/ (function(module, exports) {
       
    92 
       
    93 (function() { module.exports = window["wp"]["data"]; }());
       
    94 
       
    95 /***/ }),
       
    96 
       
    97 /***/ "GRId":
       
    98 /***/ (function(module, exports) {
       
    99 
       
   100 (function() { module.exports = window["wp"]["element"]; }());
       
   101 
       
   102 /***/ }),
       
   103 
       
   104 /***/ "K9lf":
       
   105 /***/ (function(module, exports) {
       
   106 
       
   107 (function() { module.exports = window["wp"]["compose"]; }());
       
   108 
       
   109 /***/ }),
       
   110 
       
   111 /***/ "PR0u":
       
   112 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
   113 
       
   114 "use strict";
       
   115 // ESM COMPAT FLAG
    37 // ESM COMPAT FLAG
   116 __webpack_require__.r(__webpack_exports__);
    38 __webpack_require__.r(__webpack_exports__);
   117 
    39 
   118 // EXPORTS
    40 // EXPORTS
   119 __webpack_require__.d(__webpack_exports__, "store", function() { return /* reexport */ store; });
    41 __webpack_require__.d(__webpack_exports__, {
   120 __webpack_require__.d(__webpack_exports__, "ifViewportMatches", function() { return /* reexport */ if_viewport_matches; });
    42   "ifViewportMatches": function() { return /* reexport */ if_viewport_matches; },
   121 __webpack_require__.d(__webpack_exports__, "withViewportMatch", function() { return /* reexport */ with_viewport_match; });
    43   "store": function() { return /* reexport */ store; },
       
    44   "withViewportMatch": function() { return /* reexport */ with_viewport_match; }
       
    45 });
   122 
    46 
   123 // NAMESPACE OBJECT: ./node_modules/@wordpress/viewport/build-module/store/actions.js
    47 // NAMESPACE OBJECT: ./node_modules/@wordpress/viewport/build-module/store/actions.js
   124 var actions_namespaceObject = {};
    48 var actions_namespaceObject = {};
   125 __webpack_require__.r(actions_namespaceObject);
    49 __webpack_require__.r(actions_namespaceObject);
   126 __webpack_require__.d(actions_namespaceObject, "setIsMatching", function() { return actions_setIsMatching; });
    50 __webpack_require__.d(actions_namespaceObject, {
       
    51   "setIsMatching": function() { return setIsMatching; }
       
    52 });
   127 
    53 
   128 // NAMESPACE OBJECT: ./node_modules/@wordpress/viewport/build-module/store/selectors.js
    54 // NAMESPACE OBJECT: ./node_modules/@wordpress/viewport/build-module/store/selectors.js
   129 var selectors_namespaceObject = {};
    55 var selectors_namespaceObject = {};
   130 __webpack_require__.r(selectors_namespaceObject);
    56 __webpack_require__.r(selectors_namespaceObject);
   131 __webpack_require__.d(selectors_namespaceObject, "isViewportMatch", function() { return isViewportMatch; });
    57 __webpack_require__.d(selectors_namespaceObject, {
   132 
    58   "isViewportMatch": function() { return isViewportMatch; }
   133 // EXTERNAL MODULE: external "lodash"
    59 });
   134 var external_lodash_ = __webpack_require__("YLtl");
    60 
   135 
    61 ;// CONCATENATED MODULE: external "lodash"
   136 // EXTERNAL MODULE: external ["wp","data"]
    62 var external_lodash_namespaceObject = window["lodash"];
   137 var external_wp_data_ = __webpack_require__("1ZqX");
    63 ;// CONCATENATED MODULE: external ["wp","data"]
   138 
    64 var external_wp_data_namespaceObject = window["wp"]["data"];
   139 // CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/store/reducer.js
    65 ;// CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/store/reducer.js
   140 /**
    66 /**
   141  * Reducer returning the viewport state, as keys of breakpoint queries with
    67  * Reducer returning the viewport state, as keys of breakpoint queries with
   142  * boolean value representing whether query is matched.
    68  * boolean value representing whether query is matched.
   143  *
    69  *
   144  * @param {Object} state  Current state.
    70  * @param {Object} state  Current state.
   145  * @param {Object} action Dispatched action.
    71  * @param {Object} action Dispatched action.
   146  *
    72  *
   147  * @return {Object} Updated state.
    73  * @return {Object} Updated state.
   148  */
    74  */
   149 function reducer(state = {}, action) {
    75 function reducer() {
       
    76   let state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
       
    77   let action = arguments.length > 1 ? arguments[1] : undefined;
       
    78 
   150   switch (action.type) {
    79   switch (action.type) {
   151     case 'SET_IS_MATCHING':
    80     case 'SET_IS_MATCHING':
   152       return action.values;
    81       return action.values;
   153   }
    82   }
   154 
    83 
   155   return state;
    84   return state;
   156 }
    85 }
   157 
    86 
   158 /* harmony default export */ var store_reducer = (reducer);
    87 /* harmony default export */ var store_reducer = (reducer);
   159 
    88 
   160 // CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/store/actions.js
    89 ;// CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/store/actions.js
   161 /**
    90 /**
   162  * Returns an action object used in signalling that viewport queries have been
    91  * Returns an action object used in signalling that viewport queries have been
   163  * updated. Values are specified as an object of breakpoint query keys where
    92  * updated. Values are specified as an object of breakpoint query keys where
   164  * value represents whether query matches.
    93  * value represents whether query matches.
   165  *
    94  *
   166  * @param {Object} values Breakpoint query matches.
    95  * @param {Object} values Breakpoint query matches.
   167  *
    96  *
   168  * @return {Object} Action object.
    97  * @return {Object} Action object.
   169  */
    98  */
   170 function actions_setIsMatching(values) {
    99 function setIsMatching(values) {
   171   return {
   100   return {
   172     type: 'SET_IS_MATCHING',
   101     type: 'SET_IS_MATCHING',
   173     values
   102     values
   174   };
   103   };
   175 }
   104 }
   176 
   105 
   177 // CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/store/selectors.js
   106 ;// CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/store/selectors.js
   178 /**
   107 /**
   179  * Returns true if the viewport matches the given query, or false otherwise.
   108  * Returns true if the viewport matches the given query, or false otherwise.
   180  *
   109  *
   181  * @param {Object} state Viewport state object.
   110  * @param {Object} state Viewport state object.
   182  * @param {string} query Query string. Includes operator and breakpoint name,
   111  * @param {string} query Query string. Includes operator and breakpoint name,
   198   }
   127   }
   199 
   128 
   200   return !!state[query];
   129   return !!state[query];
   201 }
   130 }
   202 
   131 
   203 // CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/store/index.js
   132 ;// CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/store/index.js
   204 /**
   133 /**
   205  * WordPress dependencies
   134  * WordPress dependencies
   206  */
   135  */
   207 
   136 
   208 /**
   137 /**
   219  * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
   148  * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
   220  *
   149  *
   221  * @type {Object}
   150  * @type {Object}
   222  */
   151  */
   223 
   152 
   224 const store = Object(external_wp_data_["createReduxStore"])(STORE_NAME, {
   153 const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME, {
   225   reducer: store_reducer,
   154   reducer: store_reducer,
   226   actions: actions_namespaceObject,
   155   actions: actions_namespaceObject,
   227   selectors: selectors_namespaceObject
   156   selectors: selectors_namespaceObject
   228 });
   157 });
   229 Object(external_wp_data_["register"])(store);
   158 (0,external_wp_data_namespaceObject.register)(store);
   230 
   159 
   231 // CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/listener.js
   160 ;// CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/listener.js
   232 /**
   161 /**
   233  * External dependencies
   162  * External dependencies
   234  */
   163  */
   235 
   164 
   236 /**
   165 /**
   247 const addDimensionsEventListener = (breakpoints, operators) => {
   176 const addDimensionsEventListener = (breakpoints, operators) => {
   248   /**
   177   /**
   249    * Callback invoked when media query state should be updated. Is invoked a
   178    * Callback invoked when media query state should be updated. Is invoked a
   250    * maximum of one time per call stack.
   179    * maximum of one time per call stack.
   251    */
   180    */
   252   const setIsMatching = Object(external_lodash_["debounce"])(() => {
   181   const setIsMatching = (0,external_lodash_namespaceObject.debounce)(() => {
   253     const values = Object(external_lodash_["mapValues"])(queries, query => query.matches);
   182     const values = (0,external_lodash_namespaceObject.mapValues)(queries, query => query.matches);
   254     Object(external_wp_data_["dispatch"])(store).setIsMatching(values);
   183     (0,external_wp_data_namespaceObject.dispatch)(store).setIsMatching(values);
   255   }, {
   184   }, {
   256     leading: true
   185     leading: true
   257   });
   186   });
   258   /**
   187   /**
   259    * Hash of breakpoint names with generated MediaQueryList for corresponding
   188    * Hash of breakpoint names with generated MediaQueryList for corresponding
   263    * @see https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList
   192    * @see https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList
   264    *
   193    *
   265    * @type {Object<string,MediaQueryList>}
   194    * @type {Object<string,MediaQueryList>}
   266    */
   195    */
   267 
   196 
   268   const queries = Object(external_lodash_["reduce"])(breakpoints, (result, width, name) => {
   197   const queries = (0,external_lodash_namespaceObject.reduce)(breakpoints, (result, width, name) => {
   269     Object(external_lodash_["forEach"])(operators, (condition, operator) => {
   198     (0,external_lodash_namespaceObject.forEach)(operators, (condition, operator) => {
   270       const list = window.matchMedia(`(${condition}: ${width}px)`);
   199       const list = window.matchMedia(`(${condition}: ${width}px)`);
   271       list.addListener(setIsMatching);
   200       list.addListener(setIsMatching);
   272       const key = [operator, name].join(' ');
   201       const key = [operator, name].join(' ');
   273       result[key] = list;
   202       result[key] = list;
   274     });
   203     });
   275     return result;
   204     return result;
   276   }, {});
   205   }, {});
   277   window.addEventListener('orientationchange', setIsMatching); // Set initial values
   206   window.addEventListener('orientationchange', setIsMatching); // Set initial values.
   278 
   207 
   279   setIsMatching();
   208   setIsMatching();
   280   setIsMatching.flush();
   209   setIsMatching.flush();
   281 };
   210 };
   282 
   211 
   283 /* harmony default export */ var listener = (addDimensionsEventListener);
   212 /* harmony default export */ var listener = (addDimensionsEventListener);
   284 
   213 
   285 // EXTERNAL MODULE: external ["wp","compose"]
   214 ;// CONCATENATED MODULE: external ["wp","compose"]
   286 var external_wp_compose_ = __webpack_require__("K9lf");
   215 var external_wp_compose_namespaceObject = window["wp"]["compose"];
   287 
   216 ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
   288 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
   217 function _extends() {
   289 var esm_extends = __webpack_require__("wx14");
   218   _extends = Object.assign ? Object.assign.bind() : function (target) {
   290 
   219     for (var i = 1; i < arguments.length; i++) {
   291 // EXTERNAL MODULE: external ["wp","element"]
   220       var source = arguments[i];
   292 var external_wp_element_ = __webpack_require__("GRId");
   221 
   293 
   222       for (var key in source) {
   294 // CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/with-viewport-match.js
   223         if (Object.prototype.hasOwnProperty.call(source, key)) {
       
   224           target[key] = source[key];
       
   225         }
       
   226       }
       
   227     }
       
   228 
       
   229     return target;
       
   230   };
       
   231   return _extends.apply(this, arguments);
       
   232 }
       
   233 ;// CONCATENATED MODULE: external ["wp","element"]
       
   234 var external_wp_element_namespaceObject = window["wp"]["element"];
       
   235 ;// CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/with-viewport-match.js
   295 
   236 
   296 
   237 
   297 
   238 
   298 /**
   239 /**
   299  * External dependencies
   240  * External dependencies
   309  * the given prop names, where the value passed to the underlying component is
   250  * the given prop names, where the value passed to the underlying component is
   310  * the result of the query assigned as the object's value.
   251  * the result of the query assigned as the object's value.
   311  *
   252  *
   312  * @see isViewportMatch
   253  * @see isViewportMatch
   313  *
   254  *
   314  * @param {Object} queries  Object of prop name to viewport query.
   255  * @param {Object} queries Object of prop name to viewport query.
   315  *
   256  *
   316  * @example
   257  * @example
   317  *
   258  *
   318  * ```jsx
   259  * ```jsx
   319  * function MyComponent( { isMobile } ) {
   260  * function MyComponent( { isMobile } ) {
   327  *
   268  *
   328  * @return {Function} Higher-order component.
   269  * @return {Function} Higher-order component.
   329  */
   270  */
   330 
   271 
   331 const withViewportMatch = queries => {
   272 const withViewportMatch = queries => {
   332   const useViewPortQueriesResult = () => Object(external_lodash_["mapValues"])(queries, query => {
   273   const useViewPortQueriesResult = () => (0,external_lodash_namespaceObject.mapValues)(queries, query => {
   333     let [operator, breakpointName] = query.split(' ');
   274     let [operator, breakpointName] = query.split(' ');
   334 
   275 
   335     if (breakpointName === undefined) {
   276     if (breakpointName === undefined) {
   336       breakpointName = operator;
   277       breakpointName = operator;
   337       operator = '>=';
   278       operator = '>=';
   339     // we are respecting that as from the static query of the HOC we generate
   280     // we are respecting that as from the static query of the HOC we generate
   340     // a hook that calls other hooks always in the same order (because the query never changes).
   281     // a hook that calls other hooks always in the same order (because the query never changes).
   341     // eslint-disable-next-line react-hooks/rules-of-hooks
   282     // eslint-disable-next-line react-hooks/rules-of-hooks
   342 
   283 
   343 
   284 
   344     return Object(external_wp_compose_["useViewportMatch"])(breakpointName, operator);
   285     return (0,external_wp_compose_namespaceObject.useViewportMatch)(breakpointName, operator);
   345   });
   286   });
   346 
   287 
   347   return Object(external_wp_compose_["createHigherOrderComponent"])(WrappedComponent => {
   288   return (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => {
   348     return Object(external_wp_compose_["pure"])(props => {
   289     return (0,external_wp_compose_namespaceObject.pure)(props => {
   349       const queriesResult = useViewPortQueriesResult();
   290       const queriesResult = useViewPortQueriesResult();
   350       return Object(external_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, props, queriesResult));
   291       return (0,external_wp_element_namespaceObject.createElement)(WrappedComponent, _extends({}, props, queriesResult));
   351     });
   292     });
   352   }, 'withViewportMatch');
   293   }, 'withViewportMatch');
   353 };
   294 };
   354 
   295 
   355 /* harmony default export */ var with_viewport_match = (withViewportMatch);
   296 /* harmony default export */ var with_viewport_match = (withViewportMatch);
   356 
   297 
   357 // CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/if-viewport-matches.js
   298 ;// CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/if-viewport-matches.js
   358 /**
   299 /**
   359  * WordPress dependencies
   300  * WordPress dependencies
   360  */
   301  */
   361 
   302 
   362 /**
   303 /**
   383  * ```
   324  * ```
   384  *
   325  *
   385  * @return {Function} Higher-order component.
   326  * @return {Function} Higher-order component.
   386  */
   327  */
   387 
   328 
   388 const ifViewportMatches = query => Object(external_wp_compose_["createHigherOrderComponent"])(Object(external_wp_compose_["compose"])([with_viewport_match({
   329 const ifViewportMatches = query => (0,external_wp_compose_namespaceObject.createHigherOrderComponent)((0,external_wp_compose_namespaceObject.compose)([with_viewport_match({
   389   isViewportMatch: query
   330   isViewportMatch: query
   390 }), Object(external_wp_compose_["ifCondition"])(props => props.isViewportMatch)]), 'ifViewportMatches');
   331 }), (0,external_wp_compose_namespaceObject.ifCondition)(props => props.isViewportMatch)]), 'ifViewportMatches');
   391 
   332 
   392 /* harmony default export */ var if_viewport_matches = (ifViewportMatches);
   333 /* harmony default export */ var if_viewport_matches = (ifViewportMatches);
   393 
   334 
   394 // CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/index.js
   335 ;// CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/index.js
   395 /**
   336 /**
   396  * Internal dependencies
   337  * Internal dependencies
   397  */
   338  */
   398 
   339 
   399 
   340 
   425   '<': 'max-width',
   366   '<': 'max-width',
   426   '>=': 'min-width'
   367   '>=': 'min-width'
   427 };
   368 };
   428 listener(BREAKPOINTS, OPERATORS);
   369 listener(BREAKPOINTS, OPERATORS);
   429 
   370 
   430 
   371 (window.wp = window.wp || {}).viewport = __webpack_exports__;
   431 /***/ }),
   372 /******/ })()
   432 
   373 ;
   433 /***/ "YLtl":
       
   434 /***/ (function(module, exports) {
       
   435 
       
   436 (function() { module.exports = window["lodash"]; }());
       
   437 
       
   438 /***/ }),
       
   439 
       
   440 /***/ "wx14":
       
   441 /***/ (function(module, __webpack_exports__, __webpack_require__) {
       
   442 
       
   443 "use strict";
       
   444 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; });
       
   445 function _extends() {
       
   446   _extends = Object.assign || function (target) {
       
   447     for (var i = 1; i < arguments.length; i++) {
       
   448       var source = arguments[i];
       
   449 
       
   450       for (var key in source) {
       
   451         if (Object.prototype.hasOwnProperty.call(source, key)) {
       
   452           target[key] = source[key];
       
   453         }
       
   454       }
       
   455     }
       
   456 
       
   457     return target;
       
   458   };
       
   459 
       
   460   return _extends.apply(this, arguments);
       
   461 }
       
   462 
       
   463 /***/ })
       
   464 
       
   465 /******/ });