!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 d}});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 r=window.lodash,o=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,o.registerStore)("nisje/viewport",{reducer:function(e={},t){switch(t.type){case"SET_IS_MATCHING":return t.values;default:return e}},actions:i,selectors:n});var s=window.wp.compose,d=e=>(0,s.createHigherOrderComponent)((0,o.withSelect)((t=>(0,r.mapValues)(e,(e=>t("nisje/viewport").isViewportMatch(e))))),"withViewportMatch"),u=e=>(0,s.createHigherOrderComponent)((0,r.flowRight)([d({isViewportMatch:e}),(0,s.ifCondition)((e=>e.isViewportMatch))]),"ifViewportMatches");const w={"<":"max-width",">=":"min-width"},p=(0,r.debounce)((()=>{const e=(0,r.mapValues)(h,"matches");(0,o.dispatch)("nisje/viewport").setIsMatching(e)}),0,{leading:!0}),h=(0,r.reduce)({huge:1440,wide:1200,large:960,medium:782,small:600,mobile:480},((e,t,i)=>((0,r.forEach)(w,((n,r)=>{const o=window.matchMedia(`(${n}: ${t}px)`);o.addListener(p);const a=[r,i].join(" ");e[a]=o})),e)),{});window.addEventListener("orientationchange",p),p(),p.flush(),(window.nisje=window.nisje||{}).viewport=t}();