var k=Object.defineProperty,g=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var p=(e,t,n)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,r=(e,t)=>{for(var n in t||(t={}))E.call(t,n)&&p(e,n,t[n]);if(f)for(var n of f(t))M.call(t,n)&&p(e,n,t[n]);return e},c=(e,t)=>g(e,x(t));import{useState as L}from"react";import{useEffect as b,useLayoutEffect as v}from"react";var u=typeof window=="undefined"?b:v;var d={sm:576,md:852,lg:968,xl:1080,"2lg":1200},a=(()=>{let e=0;return Object.keys(d).reduce((t,n,s)=>{if(s===Object.keys(d).length-1)return c(r({},t),{[n]:`(min-width: ${e}px)`});let o=e,i=d[n];return e=i+1,c(r({},t),{[n]:`(min-width: ${o}px) and (max-width: ${i}px)`})},{})})(),m=e=>`is${e.charAt(0).toUpperCase()}${e.slice(1)}`,h=()=>Object.keys(a).reduce((t,n)=>{var i;let s=m(n);if(typeof window=="undefined")return c(r({},t),{[s]:!1});let o=typeof(window==null?void 0:window.matchMedia)=="function"?window.matchMedia(a[n]):null;return c(r({},t),{[s]:(i=o==null?void 0:o.matches)!=null?i:!1})},{}),$=()=>{let[e,t]=L(()=>h());return u(()=>{let n=Object.keys(a).map(s=>{let o,i;return typeof(window==null?void 0:window.matchMedia)=="function"&&(o=window.matchMedia(a[s]),i=l=>{let w=m(s);t(y=>c(r({},y),{[w]:l.matches}))},o.addEventListener&&o.addEventListener("change",i)),()=>{o!=null&&o.removeEventListener&&o.removeEventListener("change",i)}});return t(h()),()=>{n.forEach(s=>{s()})}},[]),c(r({},e),{isMobile:e.isSm,isTablet:e.isMd||e.isLg,isDesktop:e.isXlg||e.is2xl})},A=$;export{d as breakpointMap,A as default};
