1import{bd as y,bc as k,be as C,bg as o,bh as e,bl as t,bj as s,bk as u,bR as S,bF as V,bp as h,bG as F,bf as a}from"./DojFGkp8.js";import{u as I}from"./BrDZuY8P.js";const z={key:0,class:"fixed right-0 bottom-0 left-0 z-50 w-[300px] bg-grey-300 text-black"},B={class:"flex flex-col gap-2 px-4 pb-2"},w=y({__name:"ScrollDebug",props:{navigation:{},contentContainer:{}},setup(i){const m=i,n=F(!1),{public:{environment:f}}=k(),g=C(()=>m.contentContainer),{focusOffset:r,currentScrollY:p,focusPointAbsolute:v}=I(g,{includeTop:!0});return(x,l)=>{var b,c,d;return a(),o(h,null,[n.value?(a(),o("div",z,[l[1]||(l[1]=e("h1",{class:"bg-red-500 py-2 text-center text-headline-m-uppercase"},"DEBUG",-1)),e("pre",null,t((b=i.navigation)==null?void 0:b.debug.visibleItemNames),1),e("div",B,[e("div",null,"isFirstItemVisible: "+t((c=i.navigation)==null?void 0:c.debug.isFirstItemVisible),1),e("div",null,"isLastItemVisible: "+t((d=i.navigation)==null?void 0:d.debug.isLastItemVisible),1)]),e("div",null,[e("div",null,"focusOffset: "+t(s(r)),1),e("div",null,"currentScrollY: "+t(s(p)),1),e("div",null,"focusPointAbsolute: "+t(s(v)),1)])])):u("",!0),n.value?(a(),o("div",{key:1,class:"fixed z-20 h-2 w-full bg-mint",style:S({top:`${s(r)}px`})},null,4)):u("",!0),V(x.$slots,"default"),s(f)!=="production"?(a(),o("button",{key:2,class:"btn-primary-neutral-xs fixed right-10 bottom-10 z-50",onClick:l[0]||(l[0]=D=>n.value=!n.value)},t(n.value?"stop debugging":"debug ui"),1)):u("",!0)],64)}}});export{w as _};
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.