PageSourceSearch

https://solid-primitives.netlify.app/_build/assets/index-DYlLlKza.js

js solid-primitives.netlify.app collected 2026-10-03 11:25:52 UTC 1,211 bytes, 2 lines download raw bytes

1import{u as S,m as g,v as m,w as p,x as E,q as A,t as L}from"./Header-BBC-_1G5.js";import{X as l,l as c,a2 as R}from"./index-Dgtrqqdu.js";function W(e,n){const t=new ResizeObserver(e);return c(t.disconnect.bind(t)),{observe:r=>t.observe(r,n),unobserve:t.unobserve.bind(t)}}function O(e,n,t){const r=new WeakMap,{observe:s,unobserve:i}=W(a=>{for(const o of a){const{contentRect:u,target:h}=o,b=Math.round(u.width),v=Math.round(u.height),d=r.get(h);(!d||d.width!==b||d.height!==v)&&(n(u,h,o),r.set(h,{width:b,height:v}))}},t);l(a=>{const o=p(E(A(e)));return L(o,a,s,i),o},[])}const y={width:0,height:0};function w(){return{width:window.innerWidth,height:window.innerHeight}}function N(){const[e,n]=S(y,w);return g(window,"resize",()=>n(w())),e}const z={width:null,height:null};function f(e){if(!e)return{...z};const{width:n,height:t}=e.getBoundingClientRect();return{width:n,height:t}}function _(e){const n=typeof e=="function",[t,r]=m(R.context||n?z:f(e)),s=new ResizeObserver(([i])=>r(f(i.target)));return c(()=>s.disconnect()),n?l(()=>{const i=e();i&&(r(f(i)),s.observe(i),c(()=>s.unobserve(i)))}):(s.observe(e),c(()=>s.unobserve(e))),t}export{N as a,_ as b,O as c};
2//# sourceMappingURL=index-DYlLlKza.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.