%PDF- %PDF-
Direktori : /var/www/projetos/nossaradio.com.br/wp-includes/js/dist/ |
Current File : /var/www/projetos/nossaradio.com.br/wp-includes/js/dist/viewport.min.js |
/*! This file is auto-generated */ !function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},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 f},store:function(){return s},withViewportMatch:function(){return h}});var n={};e.r(n),e.d(n,{setIsMatching:function(){return c}});var r={};e.r(r),e.d(r,{isViewportMatch:function(){return u}});var o=window.lodash,i=window.wp.data;var a=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};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:n,selectors:r});(0,i.register)(s);var d=(e,t)=>{const n=(0,o.debounce)((()=>{const e=(0,o.mapValues)(r,(e=>e.matches));(0,i.dispatch)(s).setIsMatching(e)}),{leading:!0}),r=(0,o.reduce)(e,((e,r,o)=>(Object.entries(t).forEach((t=>{let[i,a]=t;const c=window.matchMedia(`(${a}: ${r}px)`);c.addListener(n);const u=[i,o].join(" ");e[u]=c})),e)),{});window.addEventListener("orientationchange",n),n(),n.flush()},w=window.wp.compose;function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(null,arguments)}var l=window.wp.element;var h=e=>(0,w.createHigherOrderComponent)((t=>(0,w.pure)((n=>{const r=(0,o.mapValues)(e,(e=>{let[t,n]=e.split(" ");return void 0===n&&(n=t,t=">="),(0,w.useViewportMatch)(n,t)}));return(0,l.createElement)(t,p({},n,r))}))),"withViewportMatch");var f=e=>(0,w.createHigherOrderComponent)((0,w.compose)([h({isViewportMatch:e}),(0,w.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}();