PageSourceSearch

https://new.alfredai.bot/assets/ScrollToTop-BOScQSiW-murvktnj.js

js alfredai.bot collected 2026-10-05 23:01:06 UTC 1,283 bytes, 1 lines download raw bytes

1import{j as o}from"./react-query-p3Px2Hro-murvktnj.js";import{r as e}from"./router-DybWbRku-murvktnj.js";import{S as d}from"./safe-animate-presence-BINZyAm7-murvktnj.js";import{m}from"./framer-motion-DDM1R6WN-murvktnj.js";import{ah as p}from"./lucide-icons-BqT3gxtH-murvktnj.js";const n=e.memo(()=>{const[t,s]=e.useState(!1),[a,l]=e.useState(!1);e.useEffect(()=>{const r=()=>l(window.innerWidth<768);r(),window.addEventListener("resize",r);const i=()=>{s(window.scrollY>400)};return window.addEventListener("scroll",i,{passive:!0}),()=>{window.removeEventListener("resize",r),window.removeEventListener("scroll",i)}},[]);const c=()=>{window.scrollTo({top:0,behavior:"smooth"})};return a?o.jsx(d,{children:t&&o.jsx(m.button,{initial:{opacity:0,scale:.8,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:20},transition:{duration:.2,ease:"easeOut"},onClick:c,className:"fixed right-4 bottom-24 z-40 w-11 h-11 rounded-full bg-card border border-border shadow-lg flex items-center justify-center active:scale-95 transition-transform touch-manipulation","aria-label":"Scroll to top",children:o.jsx(p,{className:"w-5 h-5 text-foreground"})})}):null});n.displayName="ScrollToTopInner";const f=e.forwardRef((t,s)=>o.jsx(n,{}));f.displayName="ScrollToTop";export{f 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.