PageSourceSearch

https://edge.racemap.com/assets/useBreakpoint-CfUPrnA-.js

js racemap.com collected 2026-10-01 11:56:44 UTC 1,817 bytes, 2 lines download raw bytes

1import{aJ as d,cg as h,b$ as x,r as $,bM as m}from"./ErrorPage-D3usKVpd.js";const f=()=>d.useReducer(s=>s+1,0),l=["xxxl","xxl","xl","lg","md","sm","xs"],E=[].concat(l).reverse(),b=s=>({xs:`(max-width: ${s.screenXSMax}px)`,sm:`(min-width: ${s.screenSM}px)`,md:`(min-width: ${s.screenMD}px)`,lg:`(min-width: ${s.screenLG}px)`,xl:`(min-width: ${s.screenXL}px)`,xxl:`(min-width: ${s.screenXXL}px)`,xxxl:`(min-width: ${s.screenXXXL}px)`}),v=s=>{const e=s,n=[].concat(l).reverse();return n.forEach((o,c)=>{const r=o.toUpperCase(),t=`screen${r}Min`,a=`screen${r}`;if(!(e[t]<=e[a]))throw new Error(`${t}<=${a} fails : !(${e[t]}<=${e[a]})`);if(c<n.length-1){const i=`screen${r}Max`;if(!(e[a]<=e[i]))throw new Error(`${a}<=${i} fails : !(${e[a]}<=${e[i]})`);const p=`screen${n[c+1].toUpperCase()}Min`;if(!(e[i]<=e[p]))throw new Error(`${i}<=${p} fails : !(${e[i]}<=${e[p]})`)}}),s},M=()=>{const[,s]=h(),e=b(v(s));return d.useMemo(()=>{const n=new Map;let o=-1,c={};return{responsiveMap:e,matchHandlers:{},dispatch(r){return c=r,n.forEach(t=>{t(c)}),n.size>=1},subscribe(r){return n.size||this.register(),o+=1,n.set(o,r),r(c),o},unsubscribe(r){n.delete(r),n.size||this.unregister()},register(){Object.entries(e).forEach(([r,t])=>{const a=({matches:u})=>{this.dispatch({...c,[r]:u})},i=window.matchMedia(t);x(i.addEventListener)&&i.addEventListener("change",a),this.matchHandlers[t]={mql:i,listener:a},a(i)})},unregister(){Object.values(e).forEach(r=>{const t=this.matchHandlers[r];x(t?.mql.removeEventListener)&&t.mql.removeEventListener("change",t?.listener)}),n.clear()}}},[e])};function g(s=!0,e={}){const n=$.useRef(e),[,o]=f(),c=M();return m(()=>{const r=c.subscribe(t=>{n.current=t,s&&o()});return()=>c.unsubscribe(r)},[s]),n.current}export{E as a,f as b,l as r,g as u};
2//# sourceMappingURL=useBreakpoint-CfUPrnA-.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.