!function(){"use strict";var e={d:function(t,i){for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ifViewportMatches:function(){return u},withViewportMatch:function(){return s}});var i={};e.r(i),e.d(i,{setIsMatching:function(){return a}});var n={};e.r(n),e.d(n,{isViewportMatch:function(){return c}});var o=window.lodash,r=window.wp.data;function a(e){return{type:"SET_IS_MATCHING",values:e}}function c(e,t){return t.includes(" ")||(t=`>= ${t}`),!!e[t]}(0,r.registerStore)("nisje/viewport",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SET_IS_MATCHING"===t.type?t.values:e},actions:i,selectors:n});var d=window.wp.compose,s=e=>(0,d.createHigherOrderComponent)((0,r.withSelect)((t=>(0,o.mapValues)(e,(e=>t("nisje/viewport").isViewportMatch(e))))),"withViewportMatch"),u=e=>(0,d.createHigherOrderComponent)((0,o.flowRight)([s({isViewportMatch:e}),(0,d.ifCondition)((e=>e.isViewportMatch))]),"ifViewportMatches");const w={"<":"max-width",">=":"min-width"},p=(0,o.debounce)((()=>{const e=(0,o.mapValues)(h,"matches");(0,r.dispatch)("nisje/viewport").setIsMatching(e)}),0,{leading:!0}),h=(0,o.reduce)({huge:1440,wide:1200,large:960,medium:782,small:600,mobile:480},((e,t,i)=>((0,o.forEach)(w,((n,o)=>{const r=window.matchMedia(`(${n}: ${t}px)`);r.addListener(p);const a=[o,i].join(" ");e[a]=r})),e)),{});window.addEventListener("orientationchange",p),p(),p.flush(),(window.nisje=window.nisje||{}).viewport=t}();