PageSourceSearch

https://leiamos.pt/assets/parallax-layer-CNxMh-e0.js

js leiamos.pt collected 2026-10-08 21:30:43 UTC 1,465 bytes, 1 lines download raw bytes

1import{i as e,t}from"./react-B8IZ02wI.js";import{s as n}from"./runtime-DzY9cYFi.js";var r=e(t(),1),i=new Set,a=new WeakMap,o=0,s,c=e=>{s??=new IntersectionObserver(e=>{e.forEach(e=>{let t=a.get(e.target);t&&(t.dentro=e.isIntersecting)}),u()},{rootMargin:`25% 0px`}),a.set(e.el,e),s.observe(e.el)},l=()=>{o=0;let e=window.innerHeight,t=new Map,n=[];i.forEach(r=>{if(r.dentro&&(n.push(r),!t.has(r.secao))){let n=r.secao.getBoundingClientRect();t.set(r.secao,Math.min(1,Math.max(0,(e-n.top)/(e+n.height))))}}),n.forEach(e=>{let n=t.get(e.secao)??0,r=`translate(${(e.dx*n).toFixed(1)}px, ${(e.dy*n).toFixed(1)}px)`;r!==e.ultimo&&(e.el.style.transform=r,e.ultimo=r)})},u=()=>{o||=requestAnimationFrame(l)};function d(e,t,n,r){let l=()=>{};if(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return l;let d={el:e,secao:t,dx:n,dy:r,dentro:!0,ultimo:``};return i.size===0&&(window.addEventListener(`scroll`,u,{passive:!0}),window.addEventListener(`resize`,u,{passive:!0})),i.add(d),c(d),u(),()=>{i.delete(d),s?.unobserve(e),a.delete(e),i.size===0&&(window.removeEventListener(`scroll`,u),window.removeEventListener(`resize`,u),s?.disconnect(),s=void 0,o&&=(cancelAnimationFrame(o),0))}}var f=n();function p({children:e,dx:t=0,dy:n=0}){let i=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=i.current,r=e?.closest(`section, footer`);if(!(!e||!r))return d(e,r,t,n)},[t,n]),(0,f.jsx)(`div`,{ref:i,style:{width:`100%`,height:`100%`},children:e})}export{p 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.