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