diff -r be944660c56a -r 3d72ae0968f4 wp/wp-includes/js/dist/viewport.min.js --- a/wp/wp-includes/js/dist/viewport.min.js Wed Sep 21 18:19:35 2022 +0200 +++ b/wp/wp-includes/js/dist/viewport.min.js Tue Sep 27 16:37:53 2022 +0200 @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.viewport=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="PR0u")}({"1ZqX":function(t,e){t.exports=window.wp.data},GRId:function(t,e){t.exports=window.wp.element},K9lf:function(t,e){t.exports=window.wp.compose},PR0u:function(t,e,r){"use strict";r.r(e),r.d(e,"store",(function(){return p})),r.d(e,"ifViewportMatches",(function(){return h})),r.d(e,"withViewportMatch",(function(){return b}));var n={};r.r(n),r.d(n,"setIsMatching",(function(){return a}));var o={};r.r(o),r.d(o,"isViewportMatch",(function(){return s}));var i=r("YLtl"),c=r("1ZqX");var u=function(t={},e){switch(e.type){case"SET_IS_MATCHING":return e.values}return t};function a(t){return{type:"SET_IS_MATCHING",values:t}}function s(t,e){return-1===e.indexOf(" ")&&(e=">= "+e),!!t[e]}const p=Object(c.createReduxStore)("core/viewport",{reducer:u,actions:n,selectors:o});Object(c.register)(p);var d=(t,e)=>{const r=Object(i.debounce)(()=>{const t=Object(i.mapValues)(n,t=>t.matches);Object(c.dispatch)(p).setIsMatching(t)},{leading:!0}),n=Object(i.reduce)(t,(t,n,o)=>(Object(i.forEach)(e,(e,i)=>{const c=window.matchMedia(`(${e}: ${n}px)`);c.addListener(r);const u=[i,o].join(" ");t[u]=c}),t),{});window.addEventListener("orientationchange",r),r(),r.flush()},f=r("K9lf"),l=r("wx14"),w=r("GRId");var b=t=>Object(f.createHigherOrderComponent)(e=>Object(f.pure)(r=>{const n=Object(i.mapValues)(t,t=>{let[e,r]=t.split(" ");return void 0===r&&(r=e,e=">="),Object(f.useViewportMatch)(r,e)});return Object(w.createElement)(e,Object(l.a)({},r,n))}),"withViewportMatch");var h=t=>Object(f.createHigherOrderComponent)(Object(f.compose)([b({isViewportMatch:t}),Object(f.ifCondition)(t=>t.isViewportMatch)]),"ifViewportMatches");d({huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},{"<":"max-width",">=":"min-width"})},YLtl:function(t,e){t.exports=window.lodash},wx14:function(t,e,r){"use strict";function n(){return(n=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SET_IS_MATCHING"===t.type?t.values:e};function c(e){return{type:"SET_IS_MATCHING",values:e}}function u(e,t){return-1===t.indexOf(" ")&&(t=">= "+t),!!e[t]}const s=(0,i.createReduxStore)("core/viewport",{reducer:a,actions:r,selectors:n});(0,i.register)(s);var d=(e,t)=>{const r=(0,o.debounce)((()=>{const e=(0,o.mapValues)(n,(e=>e.matches));(0,i.dispatch)(s).setIsMatching(e)}),{leading:!0}),n=(0,o.reduce)(e,((e,n,i)=>((0,o.forEach)(t,((t,o)=>{const a=window.matchMedia(`(${t}: ${n}px)`);a.addListener(r);const c=[o,i].join(" ");e[c]=a})),e)),{});window.addEventListener("orientationchange",r),r(),r.flush()},p=window.wp.compose;function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,p.createHigherOrderComponent)((t=>(0,p.pure)((r=>{const n=(0,o.mapValues)(e,(e=>{let[t,r]=e.split(" ");return void 0===r&&(r=t,t=">="),(0,p.useViewportMatch)(r,t)}));return(0,l.createElement)(t,w({},r,n))}))),"withViewportMatch");var f=e=>(0,p.createHigherOrderComponent)((0,p.compose)([h({isViewportMatch:e}),(0,p.ifCondition)((e=>e.isViewportMatch))]),"ifViewportMatches");d({huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},{"<":"max-width",">=":"min-width"}),(window.wp=window.wp||{}).viewport=t}(); \ No newline at end of file