PageSourceSearch

https://concreterep.com/_nuxt/tfEkLM-T.js

js concreterep.com collected 2026-10-04 05:47:22 UTC 2,493 bytes, 1 lines download raw bytes

1import{B as D,aV as O,a$ as T,ar as f,bh as x,a0 as s,j as _,bd as Y,v as P,bk as q,l as V,k as z,o as A,c as W,b as F,$ as G,bl as H,b2 as J,A as K}from"./DTmc-LR8.js";function L(g){const{id:S,scrollY:n,child:m,parent:l,offset:b}=g,M=D(),t=O({up:{top:{top:!1,bottom:!1},bottom:{top:!1,bottom:!1}},down:{top:{top:!1,bottom:!1},bottom:{top:!1,bottom:!1}}}),{width:c,height:r}=T(),d={width:c,height:r,right:c,bottom:r,top:f(0),left:f(0)},R=x(m),$=x(l),I=s(l)?$:d,k={top:0,bottom:0,...b},v=f(0),i=f(),E=_(()=>i.value==="up"?"down":"up");function j(){if(!v.value){v.value=s(n),y();return}i.value=v.value<=s(n)?"down":"up",v.value=s(n),i.value&&(h({childEdge:"top",parentEdge:"top",direction:i.value}),h({childEdge:"top",parentEdge:"bottom",direction:i.value}),h({childEdge:"bottom",parentEdge:"bottom",direction:i.value}),h({childEdge:"bottom",parentEdge:"top",direction:i.value}),w({childEdge:"top",parentEdge:"top",direction:E.value}),w({childEdge:"top",parentEdge:"bottom",direction:E.value}),w({childEdge:"bottom",parentEdge:"bottom",direction:E.value}),w({childEdge:"bottom",parentEdge:"top",direction:E.value}))}function y(){t.up.top.top=!1,t.up.top.bottom=!1,t.up.bottom.top=!1,t.up.bottom.bottom=!1,t.down.top.top=!1,t.down.top.bottom=!1,t.down.bottom.top=!1,t.down.bottom.bottom=!1}function h(B){const{childEdge:a,parentEdge:e,direction:o}=B;if(t[o][a][e])return;const C=k[e],p=s(R[a]),u=s(I[e])+C;(o==="down"&&p<=u||o==="up"&&p>=u)&&(t[o][a][e]=!0,M.emit("collision",{id:S,direction:o,parentEdge:e,childEdge:a}))}function w(B){const{childEdge:a,parentEdge:e,direction:o}=B;if(!t[o][a][e])return;const C=k[e],p=s(R[a]),u=s(I[e])+C;(o==="down"&&p>=u||o==="up"&&p<=u)&&(t[o][a][e]=!1)}return{observe:j}}const N=["data-id"],U={__name:"MagicScrollCollision",props:{id:{type:String,required:!1},offset:{type:Object,required:!1}},setup(g){const S=Y({prefix:"MagicScroll",source:"MagicScrollCollision"}),n=P(K,void 0),m=P(H);S.assert(m,{message:"MagicScrollCollision must be used within a MagicScrollProvider",errorCode:"missing_scroll_target"});const l=f(!1),b=q("el"),M=J(),t=_(()=>g.id??`magic-scroll-collision-${M}`),c=_(()=>s(n?.y)||0),{observe:r}=L({id:t.value,child:b,parent:m,scrollY:c,offset:g.offset});return V(()=>c.value,()=>{l.value&&r()}),z(b,([d])=>{l.value=d?.isIntersecting??l.value},{rootMargin:"150% 0px 150% 0px",immediate:!0}),A(()=>{r()}),(d,R)=>(F(),W("div",{ref:"el","data-id":t.value,class:"magic-scroll-collision"},[G(d.$slots,"default")],8,N))}};export{U as default};

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.