1import{i as w,_ as B}from"./BuQWImh-.js";import{d as C,r as m,o as L,w as g,x as h,y as p,z as k,L as E,D as l,J as z,A as _,W as T}from"./chunk-vue-TRwxe8i9.js";const A={key:0,class:"sticky-top-bar__frost","aria-hidden":"true"},R={class:"sticky-top-bar__body"},F="sticky-bar-stuck",I=C({__name:"StickyTopBar",setup(N,{expose:y}){const r=new Set,n=w(),c=m(),i=m(!1),u=Symbol("sticky-top-bar");let t=0;function a(e){i.value!==e&&(i.value=e,e?r.add(u):r.delete(u),document.documentElement.classList.toggle(F,r.size>0))}function v(){t=0;const e=c.value;if(!e||n.value){a(!1);return}const o=getComputedStyle(e);if(o.position!=="sticky"){a(!1);return}const b=Number.parseFloat(o.top)||0,f=e.getBoundingClientRect();a(f.top<=b+1&&f.bottom>0)}function s(){t||(t=requestAnimationFrame(v))}function S(){window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",s,{passive:!0}),s()}function d(){window.removeEventListener("scroll",s),window.removeEventListener("resize",s),t&&cancelAnimationFrame(t),t=0,a(!1)}return L(()=>{g(n,e=>{e?d():S()},{immediate:!0})}),h(d),y({rootRef:c,isStuck:i}),(e,o)=>(k(),p("div",{ref_key:"rootRef",ref:c,class:E(["sticky-top-bar w-full",{"is-pc":!l(n),"is-stuck":l(i)}])},[l(n)?z("",!0):(k(),p("div",A,[...o[0]||(o[0]=[_("div",{class:"sticky-top-bar__frost-fill"},null,-1)])])),_("div",R,[T(e.$slots,"default",{},void 0,!0)])],2))}}),U=Object.assign(B(I,[["__scopeId","data-v-ef7218ca"]]),{__name:"CommonStickyTopBar"});export{U as S};
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.