PageSourceSearch

https://uzonachamber.org/assets/useReducedMotion-C8GmOn1R.js

js uzonachamber.org collected 2026-10-04 10:41:09 UTC 783 bytes, 1 lines download raw bytes

1import{r as t}from"./vendor-Dv8DySgF.js";function a(c){const[r,n]=t.useState(!1),e=t.useRef(null);return[t.useCallback(u=>{if(e.current&&(e.current.disconnect(),e.current=null),!u)return;if(typeof window>"u"||!window.IntersectionObserver){n(!0);return}const s=new IntersectionObserver(([i])=>{i.isIntersecting&&(n(!0),s.disconnect(),e.current=null)},{threshold:.08,...c});s.observe(u),e.current=s},[]),r]}function f(){const[c,r]=t.useState(()=>typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches);return t.useEffect(()=>{if(typeof window>"u")return;const n=window.matchMedia("(prefers-reduced-motion: reduce)");r(n.matches);const e=o=>r(o.matches);return n.addEventListener("change",e),()=>n.removeEventListener("change",e)},[]),c}export{f as a,a 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.