PageSourceSearch

https://xushijie-delm.hf.space/static/js/useWindowDimensionsContext.gRLzw0wB.js

js xushijie-delm.hf.space collected 2026-10-03 10:23:02 UTC 951 bytes, 1 lines download raw bytes

1import{o as e}from"./chunk.DuxOD-Sk.js";import{r as t}from"./emotion-is-prop-valid.esm.DV_OErv-.js";import{t as n}from"./useRequiredContext.DPvSYqB2.js";var r=e(t(),1),i=(e,t=[])=>{let n=(0,r.useRef)(null),[i,a]=(0,r.useState)([]),o=(0,r.useCallback)(()=>{if(!n.current)return[];let t=n.current.getBoundingClientRect();return e.map(e=>t[e])},[e]);return(0,r.useEffect)(()=>{if(!n.current)return;a(o());let e,t=new ResizeObserver(()=>{e=window.requestAnimationFrame(()=>{a(o())})});return t.observe(n.current),()=>{t.disconnect(),e&&cancelAnimationFrame(e)}},[e,o,...t]),{values:i,elementRef:n}},a=(e=[],t=-1)=>{let{values:[n,a],elementRef:o}=i((0,r.useMemo)(()=>[`width`,`height`],[]),e);return{width:n||t,height:a||t,elementRef:o}},o=(0,r.createContext)({isFullScreen:!1,setFullScreen:()=>{}});o.displayName=`ViewStateContext`;var s=(0,r.createContext)(null);s.displayName=`WindowDimensionsContext`;var c=()=>n(s);export{a as i,s as n,o as r,c as t};

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.