"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@prom-ui/core/useMedia"),r=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),i=require("react-responsive");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=u(r),a=u(t),d=function(r){var t=r.minWidth,i=r.maxWidth,u=r.children;return e.useMedia({minWidth:t,maxWidth:i})?u:null};d.displayName="Media",Object.defineProperty(exports,"SCREEN_BREAKPOINTS",{enumerable:!0,get:function(){return e.SCREEN_BREAKPOINTS}}),Object.defineProperty(exports,"useMedia",{enumerable:!0,get:function(){return e.useMedia}}),exports.Media=d,exports.MediaProvider=function(r){var u=r.resetOnMount,d=void 0!==u&&u,o=r.width,s=r.children,c=t.useState({width:o?e.SCREEN_BREAKPOINTS[o]:1}),l=n.default(c,2),f=l[0],p=l[1];return t.useEffect((function(){d&&p(void 0)}),[]),a.default.createElement(i.Context.Provider,{value:f},s)};
