import{x as E,r as d,ab as k,a as Y,d as _,G as b,o as B,ac as H,j as L,k as j,Y as z,Z as C,B as w,H as y,l as e,aa as F}from"./Co2WAOXh.js";const I=E({__name:"index",props:{mode:{default:"reveal"}},setup(f){const v=f,o=d(),t=d(),n=d(),r=d(),s=k(),x=Y(),g=_(),c=b(()=>x.isMenuOpen);B(()=>{o.value=!1,n.value=!1,r.value=!1,window.addEventListener("scroll",m)}),H(()=>{window.removeEventListener("scroll",m)});const m=()=>{const u=document.getElementById("header")||{},p=window.scrollY,l=300+u.clientHeightt.value?n.value=!0:a{var a,i,h;const l=F;return L(),j("div",null,[z(w(l,y({id:"header",ref:"header"},e(s),{style:(a=e(s))==null?void 0:a.style,class:["top-0 !fixed z-50 -translate-y-32 transition-all ease-in-out duration-300 left-0 right-0 pointer-events-none",{"translate-y-0 pointer-events-auto":e(o)}],"show-fixture-carousel":!1,"ad-slot-id":void 0,"show-global-nav":!1,"is-menu-open":e(c),"logo-position":"attached",crest:"large"}),null,16,["style","class","is-menu-open"]),[[C,u.mode==="reveal"||u.mode==="sticky"]]),w(l,y({id:"header",ref:"header"},e(s),{style:(i=e(s))==null?void 0:i.style,"is-menu-open":e(c),"show-fixture-carousel":e(s).showFixtureCarousel&&!e(c)&&((h=e(g))==null?void 0:h.path)==="/"}),null,16,["style","is-menu-open","show-fixture-carousel"])])}}});export{I as _};