PageSourceSearch

https://lounge.com/cdn/shop/t/1059/assets/index-Dv1WGJQc.js

js lounge.com collected 2026-09-24 08:59:46 UTC 2,493 bytes, 2 lines download raw bytes

1import{r as l,j as u}from"./vendor-DyWvsi4h.js";import{ap as m}from"./index-entry-CXWKOKOD.js";import{aq as I}from"./index-entry-CXWKOKOD.js";import"./motion-Ct9D-VhY.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fb229b4e-f844-47bf-b78f-371c2cd3f22b",e._sentryDebugIdIdentifier="sentry-dbid-fb229b4e-f844-47bf-b78f-371c2cd3f22b")}catch{}{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=Object.assign({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:frontend/theme":!0})}const b=()=>{const[e,n]=l.useState(null),[d,i]=l.useState({width:0,height:0}),t=l.useCallback(()=>{i({width:e?.offsetWidth||0,height:e?.offsetHeight||0})},[e?.offsetHeight,e?.offsetWidth]);return l.useEffect(()=>(window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}),[e]),l.useLayoutEffect(()=>{t()},[e?.offsetHeight,e?.offsetWidth]),[n,d]},p=(e,{offset:n=0}={})=>{const[d,i]=l.useState(0);return l.useEffect(()=>{let t=0;const o=()=>{t=0;const a=e.map((r,c)=>{const h=document.getElementById(r);return h?{index:c,top:h.getBoundingClientRect().top}:null}).filter(r=>r!==null).sort((r,c)=>r.top-c.top);if(a.length===0)return;const w=window.innerHeight+window.scrollY,g=document.documentElement.scrollHeight>window.innerHeight&&w>=document.documentElement.scrollHeight-1;let f=a[0];g?f=a[a.length-1]:a.forEach(r=>{r.top<=n+1&&(f=r)}),i(f.index)},s=()=>{t||(t=window.requestAnimationFrame(o))};return o(),window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",s,{passive:!0}),()=>{window.removeEventListener("scroll",s),window.removeEventListener("resize",s),t&&window.cancelAnimationFrame(t)}},[e.join(","),n]),d},x=({data:e})=>{const[n,{height:d}]=b(),i=(e?.items??[]).filter(o=>o.label&&o.anchor),t=p(i.map(({anchor:o})=>o),{offset:d});return i.length===0?null:u.jsx("div",{ref:n,children:u.jsx(m,{id:e?.id??"anchor-nav","aria-label":e?.ariaLabel??void 0,activeIndex:t,className:"h-[var(--mobile-header-height)] 2xl:h-[var(--header-height)]",children:i.map(({label:o,anchor:s})=>u.jsx(m.Item,{href:`#${s}`,children:o},s))})})};export{x as AnchorNav,I as anchorNavSchema};
2//# sourceMappingURL=index-Dv1WGJQc.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.