PageSourceSearch

https://sharethemeal.org/assets/useBreakpoint-CYsuhDst.js

js sharethemeal.org collected 2026-09-24 08:44:43 UTC 695 bytes, 1 lines download raw bytes

1import{l as c,t as n}from"./chunk-4N6VE7H7-Exqj4PTM.js";import{r as x}from"./index-Bc7sFfNw.js";import{u as m}from"./useRootData-fFXhC2hW.js";var p=x();const d=c(p),e={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},f=r=>r<e.sm?"xs":r<e.md?"sm":r<e.lg?"md":r<e.xl?"lg":r<e.xxl?"xl":"xxl",z=()=>{const{clientData:r}=m(),{IS_DESKTOP:o}=r,[t,a]=n.useState(()=>o?"xl":"sm");n.useEffect(()=>{const s=d(()=>{const u=f(window.innerWidth);a(u)},200);return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s),s.cancel()}},[]);const l=n.useCallback(s=>e[t]>=e[s],[t]),i=n.useCallback(s=>e[t]<e[s],[t]);return{size:t,isBreakpointAtLeast:l,isBreakpointBelow:i}};export{z as u};

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.