1import{d as h,r as v,o as g,aP as y,S as k,i as r,j as i,l as n,A as u,F as x,m as L,q as S}from"./entry.072555c8.js";import{_ as A}from"./_plugin-vue_export-helper.c27b6911.js";const C={class:"sidebar-area"},E={class:"sidebar-nav"},w={class:"title"},F={class:"nav-items"},b=["href"],j=h({__name:"SidebarNav",props:{title:{default:"Title"},links:{default:()=>[{href:"#",text:"Link 1"},{href:"#",text:"Link 2"},{href:"#",text:"Link 3"}]}},setup(f){const a=f,_=()=>{const e=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--header-height"))*16,s=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--section-padding-y"))*16,t=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--offset-adjustment"))*16;return e+s-t},o=v(null),p=e=>({active:o.value!==null&&o.value===e.href}),c=()=>{const e=document.querySelectorAll("section");let s=null;const t=_();e.forEach(l=>{if(l.getBoundingClientRect().top<=t+1){const d=a.links.find(m=>m.href===`#${l.id}`);d&&(s=d.href)}}),s!==o.value&&(o.value=s)};return g(()=>{window.addEventListener("scroll",c,{passive:!0});const e=y("componentMounted");e==null||e()}),k(()=>{window.removeEventListener("scroll",c)}),(e,s)=>(r(),i("div",C,[n("aside",E,[n("header",null,[n("h2",w,u(a.title),1)]),n("ol",F,[(r(!0),i(x,null,L(a.links,t=>(r(),i("li",{key:t.href},[n("a",{href:t.href,ref_for:!0,ref:"linkRef",class:S(p(t))},u(t.text),11,b)]))),128))])])]))}});const N=A(j,[["__scopeId","data-v-7d8e793a"]]);export{N 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.