1import{a,b as s}from"./chunk-W254NF3R.js";import{a as e}from"./chunk-X6IOVEKU.js";import{d as u}from"./chunk-6QKRXUVD.js";import"./chunk-ZJXTLWBM.js";function d({children:t,type:o}){let[r,n]=a(!0);return s(()=>{let l=()=>{globalThis.scrollY>50?n(!1):n(!0)};return globalThis.addEventListener("scroll",l,{passive:!0}),()=>{globalThis.removeEventListener("scroll",l)}},[]),e(u,{children:[o==="Alert"&&e(f,{active:r,children:t}),o==="Menu"&&e(h,{activeAlert:r,children:t})]})}function f({children:t,active:o}){return e("div",{class:`${o?"translate-y-0 h-auto":"-translate-y-16 h-0 duration-0"} transition-all duration-100`,children:t})}function h({children:t,activeAlert:o}){let[r,n]=a(!0),[l,p]=a(0),v=5;return s(()=>{let c=()=>{let i=globalThis.scrollY||document.documentElement.scrollTop;Math.abs(l-i)>=v&&(i>l?n(!1):n(!0),p(i))};return globalThis.addEventListener("scroll",c,{passive:!0}),()=>{globalThis.removeEventListener("scroll",c)}},[l]),e("div",{class:`absolute w-full z-10 ${r?o?"top-[103px]":"top-[71px] duration-100":"-top-[50px] duration-0"} `,children:t})}export{d 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.