80 /******/ // __webpack_public_path__ |
80 /******/ // __webpack_public_path__ |
81 /******/ __webpack_require__.p = ""; |
81 /******/ __webpack_require__.p = ""; |
82 /******/ |
82 /******/ |
83 /******/ |
83 /******/ |
84 /******/ // Load entry module and return exports |
84 /******/ // Load entry module and return exports |
85 /******/ return __webpack_require__(__webpack_require__.s = 454); |
85 /******/ return __webpack_require__(__webpack_require__.s = "PR0u"); |
86 /******/ }) |
86 /******/ }) |
87 /************************************************************************/ |
87 /************************************************************************/ |
88 /******/ ({ |
88 /******/ ({ |
89 |
89 |
90 /***/ 0: |
90 /***/ "1ZqX": |
91 /***/ (function(module, exports) { |
91 /***/ (function(module, exports) { |
92 |
92 |
93 (function() { module.exports = this["wp"]["element"]; }()); |
93 (function() { module.exports = window["wp"]["data"]; }()); |
94 |
94 |
95 /***/ }), |
95 /***/ }), |
96 |
96 |
97 /***/ 14: |
97 /***/ "GRId": |
98 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
98 /***/ (function(module, exports) { |
99 |
99 |
100 "use strict"; |
100 (function() { module.exports = window["wp"]["element"]; }()); |
101 |
|
102 // EXPORTS |
|
103 __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _slicedToArray; }); |
|
104 |
|
105 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js |
|
106 var arrayWithHoles = __webpack_require__(38); |
|
107 |
|
108 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js |
|
109 function _iterableToArrayLimit(arr, i) { |
|
110 if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; |
|
111 var _arr = []; |
|
112 var _n = true; |
|
113 var _d = false; |
|
114 var _e = undefined; |
|
115 |
|
116 try { |
|
117 for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { |
|
118 _arr.push(_s.value); |
|
119 |
|
120 if (i && _arr.length === i) break; |
|
121 } |
|
122 } catch (err) { |
|
123 _d = true; |
|
124 _e = err; |
|
125 } finally { |
|
126 try { |
|
127 if (!_n && _i["return"] != null) _i["return"](); |
|
128 } finally { |
|
129 if (_d) throw _e; |
|
130 } |
|
131 } |
|
132 |
|
133 return _arr; |
|
134 } |
|
135 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js |
|
136 var unsupportedIterableToArray = __webpack_require__(29); |
|
137 |
|
138 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js |
|
139 var nonIterableRest = __webpack_require__(39); |
|
140 |
|
141 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js |
|
142 |
|
143 |
|
144 |
|
145 |
|
146 function _slicedToArray(arr, i) { |
|
147 return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(unsupportedIterableToArray["a" /* default */])(arr, i) || Object(nonIterableRest["a" /* default */])(); |
|
148 } |
|
149 |
101 |
150 /***/ }), |
102 /***/ }), |
151 |
103 |
152 /***/ 2: |
104 /***/ "K9lf": |
153 /***/ (function(module, exports) { |
105 /***/ (function(module, exports) { |
154 |
106 |
155 (function() { module.exports = this["lodash"]; }()); |
107 (function() { module.exports = window["wp"]["compose"]; }()); |
156 |
108 |
157 /***/ }), |
109 /***/ }), |
158 |
110 |
159 /***/ 26: |
111 /***/ "PR0u": |
160 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
161 |
|
162 "use strict"; |
|
163 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayLikeToArray; }); |
|
164 function _arrayLikeToArray(arr, len) { |
|
165 if (len == null || len > arr.length) len = arr.length; |
|
166 |
|
167 for (var i = 0, arr2 = new Array(len); i < len; i++) { |
|
168 arr2[i] = arr[i]; |
|
169 } |
|
170 |
|
171 return arr2; |
|
172 } |
|
173 |
|
174 /***/ }), |
|
175 |
|
176 /***/ 29: |
|
177 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
178 |
|
179 "use strict"; |
|
180 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); |
|
181 /* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26); |
|
182 |
|
183 function _unsupportedIterableToArray(o, minLen) { |
|
184 if (!o) return; |
|
185 if (typeof o === "string") return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); |
|
186 var n = Object.prototype.toString.call(o).slice(8, -1); |
|
187 if (n === "Object" && o.constructor) n = o.constructor.name; |
|
188 if (n === "Map" || n === "Set") return Array.from(o); |
|
189 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); |
|
190 } |
|
191 |
|
192 /***/ }), |
|
193 |
|
194 /***/ 38: |
|
195 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
196 |
|
197 "use strict"; |
|
198 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; }); |
|
199 function _arrayWithHoles(arr) { |
|
200 if (Array.isArray(arr)) return arr; |
|
201 } |
|
202 |
|
203 /***/ }), |
|
204 |
|
205 /***/ 39: |
|
206 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
207 |
|
208 "use strict"; |
|
209 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; }); |
|
210 function _nonIterableRest() { |
|
211 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); |
|
212 } |
|
213 |
|
214 /***/ }), |
|
215 |
|
216 /***/ 4: |
|
217 /***/ (function(module, exports) { |
|
218 |
|
219 (function() { module.exports = this["wp"]["data"]; }()); |
|
220 |
|
221 /***/ }), |
|
222 |
|
223 /***/ 454: |
|
224 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
112 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
225 |
113 |
226 "use strict"; |
114 "use strict"; |
227 // ESM COMPAT FLAG |
115 // ESM COMPAT FLAG |
228 __webpack_require__.r(__webpack_exports__); |
116 __webpack_require__.r(__webpack_exports__); |
229 |
117 |
230 // EXPORTS |
118 // EXPORTS |
|
119 __webpack_require__.d(__webpack_exports__, "store", function() { return /* reexport */ store; }); |
231 __webpack_require__.d(__webpack_exports__, "ifViewportMatches", function() { return /* reexport */ if_viewport_matches; }); |
120 __webpack_require__.d(__webpack_exports__, "ifViewportMatches", function() { return /* reexport */ if_viewport_matches; }); |
232 __webpack_require__.d(__webpack_exports__, "withViewportMatch", function() { return /* reexport */ with_viewport_match; }); |
121 __webpack_require__.d(__webpack_exports__, "withViewportMatch", function() { return /* reexport */ with_viewport_match; }); |
233 |
122 |
234 // NAMESPACE OBJECT: ./node_modules/@wordpress/viewport/build-module/store/actions.js |
123 // NAMESPACE OBJECT: ./node_modules/@wordpress/viewport/build-module/store/actions.js |
235 var actions_namespaceObject = {}; |
124 var actions_namespaceObject = {}; |
239 // NAMESPACE OBJECT: ./node_modules/@wordpress/viewport/build-module/store/selectors.js |
128 // NAMESPACE OBJECT: ./node_modules/@wordpress/viewport/build-module/store/selectors.js |
240 var selectors_namespaceObject = {}; |
129 var selectors_namespaceObject = {}; |
241 __webpack_require__.r(selectors_namespaceObject); |
130 __webpack_require__.r(selectors_namespaceObject); |
242 __webpack_require__.d(selectors_namespaceObject, "isViewportMatch", function() { return isViewportMatch; }); |
131 __webpack_require__.d(selectors_namespaceObject, "isViewportMatch", function() { return isViewportMatch; }); |
243 |
132 |
244 // EXTERNAL MODULE: external {"this":["wp","data"]} |
133 // EXTERNAL MODULE: external "lodash" |
245 var external_this_wp_data_ = __webpack_require__(4); |
134 var external_lodash_ = __webpack_require__("YLtl"); |
|
135 |
|
136 // EXTERNAL MODULE: external ["wp","data"] |
|
137 var external_wp_data_ = __webpack_require__("1ZqX"); |
246 |
138 |
247 // CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/store/reducer.js |
139 // CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/store/reducer.js |
248 /** |
140 /** |
249 * Reducer returning the viewport state, as keys of breakpoint queries with |
141 * Reducer returning the viewport state, as keys of breakpoint queries with |
250 * boolean value representing whether query is matched. |
142 * boolean value representing whether query is matched. |
364 * @see https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList |
263 * @see https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList |
365 * |
264 * |
366 * @type {Object<string,MediaQueryList>} |
265 * @type {Object<string,MediaQueryList>} |
367 */ |
266 */ |
368 |
267 |
369 var queries = Object(external_this_lodash_["reduce"])(breakpoints, function (result, width, name) { |
268 const queries = Object(external_lodash_["reduce"])(breakpoints, (result, width, name) => { |
370 Object(external_this_lodash_["forEach"])(operators, function (condition, operator) { |
269 Object(external_lodash_["forEach"])(operators, (condition, operator) => { |
371 var list = window.matchMedia("(".concat(condition, ": ").concat(width, "px)")); |
270 const list = window.matchMedia(`(${condition}: ${width}px)`); |
372 list.addListener(setIsMatching); |
271 list.addListener(setIsMatching); |
373 var key = [operator, name].join(' '); |
272 const key = [operator, name].join(' '); |
374 result[key] = list; |
273 result[key] = list; |
375 }); |
274 }); |
376 return result; |
275 return result; |
377 }, {}); |
276 }, {}); |
378 window.addEventListener('orientationchange', setIsMatching); // Set initial values |
277 window.addEventListener('orientationchange', setIsMatching); // Set initial values |
379 |
278 |
380 setIsMatching(); |
279 setIsMatching(); |
381 setIsMatching.flush(); |
280 setIsMatching.flush(); |
382 }; |
281 }; |
383 |
282 |
384 /* harmony default export */ var listener = (listener_addDimensionsEventListener); |
283 /* harmony default export */ var listener = (addDimensionsEventListener); |
385 |
284 |
386 // EXTERNAL MODULE: external {"this":["wp","compose"]} |
285 // EXTERNAL MODULE: external ["wp","compose"] |
387 var external_this_wp_compose_ = __webpack_require__(9); |
286 var external_wp_compose_ = __webpack_require__("K9lf"); |
388 |
287 |
389 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js |
288 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js |
390 var esm_extends = __webpack_require__(8); |
289 var esm_extends = __webpack_require__("wx14"); |
391 |
290 |
392 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules |
291 // EXTERNAL MODULE: external ["wp","element"] |
393 var slicedToArray = __webpack_require__(14); |
292 var external_wp_element_ = __webpack_require__("GRId"); |
394 |
|
395 // EXTERNAL MODULE: external {"this":["wp","element"]} |
|
396 var external_this_wp_element_ = __webpack_require__(0); |
|
397 |
293 |
398 // CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/with-viewport-match.js |
294 // CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/with-viewport-match.js |
399 |
|
400 |
295 |
401 |
296 |
402 |
297 |
403 /** |
298 /** |
404 * External dependencies |
299 * External dependencies |
431 * ``` |
326 * ``` |
432 * |
327 * |
433 * @return {Function} Higher-order component. |
328 * @return {Function} Higher-order component. |
434 */ |
329 */ |
435 |
330 |
436 var with_viewport_match_withViewportMatch = function withViewportMatch(queries) { |
331 const withViewportMatch = queries => { |
437 var useViewPortQueriesResult = function useViewPortQueriesResult() { |
332 const useViewPortQueriesResult = () => Object(external_lodash_["mapValues"])(queries, query => { |
438 return Object(external_this_lodash_["mapValues"])(queries, function (query) { |
333 let [operator, breakpointName] = query.split(' '); |
439 var _query$split = query.split(' '), |
334 |
440 _query$split2 = Object(slicedToArray["a" /* default */])(_query$split, 2), |
335 if (breakpointName === undefined) { |
441 operator = _query$split2[0], |
336 breakpointName = operator; |
442 breakpointName = _query$split2[1]; |
337 operator = '>='; |
443 |
338 } // Hooks should unconditionally execute in the same order, |
444 if (breakpointName === undefined) { |
339 // we are respecting that as from the static query of the HOC we generate |
445 breakpointName = operator; |
340 // a hook that calls other hooks always in the same order (because the query never changes). |
446 operator = '>='; |
341 // eslint-disable-next-line react-hooks/rules-of-hooks |
447 } // Hooks should unconditionally execute in the same order, |
342 |
448 // we are respecting that as from the static query of the HOC we generate |
343 |
449 // a hook that calls other hooks always in the same order (because the query never changes). |
344 return Object(external_wp_compose_["useViewportMatch"])(breakpointName, operator); |
450 // eslint-disable-next-line react-hooks/rules-of-hooks |
345 }); |
451 |
346 |
452 |
347 return Object(external_wp_compose_["createHigherOrderComponent"])(WrappedComponent => { |
453 return Object(external_this_wp_compose_["useViewportMatch"])(breakpointName, operator); |
348 return Object(external_wp_compose_["pure"])(props => { |
454 }); |
349 const queriesResult = useViewPortQueriesResult(); |
455 }; |
350 return Object(external_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, props, queriesResult)); |
456 |
|
457 return Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) { |
|
458 return Object(external_this_wp_compose_["pure"])(function (props) { |
|
459 var queriesResult = useViewPortQueriesResult(); |
|
460 return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, props, queriesResult)); |
|
461 }); |
351 }); |
462 }, 'withViewportMatch'); |
352 }, 'withViewportMatch'); |
463 }; |
353 }; |
464 |
354 |
465 /* harmony default export */ var with_viewport_match = (with_viewport_match_withViewportMatch); |
355 /* harmony default export */ var with_viewport_match = (withViewportMatch); |
466 |
356 |
467 // CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/if-viewport-matches.js |
357 // CONCATENATED MODULE: ./node_modules/@wordpress/viewport/build-module/if-viewport-matches.js |
468 /** |
358 /** |
469 * WordPress dependencies |
359 * WordPress dependencies |
470 */ |
360 */ |