import{_ as l,av as d,r as h,Y as e,e as p,c as u,d as r,g as a,w as c,n as m,a2 as _,a3 as g}from"./CSGWN0Ke.js";import{H as f}from"./BR7tlqX7.js";const x={setup(){const t=d(),o=h();return{scrollBackgroundColour:t,colourPalette:o}},props:{palette:{type:String,required:!1,default:"text-black bg-white"}},data(){return{headroom:null,headroomOptions:{offset:0,tolerance:{up:15,down:0},onPin:()=>this.setPin(!1),onUnpin:()=>this.setPin(!0),onTop:()=>this.setTop(!0),onNotTop:()=>this.setTop(!1)},pinned:!1,top:!0}},computed:{headerClasses(){return{"text-white":(this._.provides[e]||this.$route).name==="lang"&&this.isLangValid&&this.top||(this._.provides[e]||this.$route).name&&(this._.provides[e]||this.$route).name.includes("lang-on-demand"),[this.colourPalette.value]:this.clubPageAlt&&this.top,[this.palette]:!this.top,"nl-md:fixed clubexplorer flex flex-col md:block nl-md:h-screen nl-md:bg-black nl-md:text-white md:bg-white md:text-black":this.clubExplorer}},headerLink(){return(this._.provides[e]||this.$route).params.lang&&(this._.provides[e]||this.$route).params.controller?"/"+(this._.provides[e]||this.$route).params.lang+"/"+(this._.provides[e]||this.$route).params.controller:"/"+(this._.provides[e]||this.$route).params.lang||"/en/"},isLangValid(){return Object.prototype.hasOwnProperty.call(this.$store.state.langs,(this._.provides[e]||this.$route).params.lang)?(this._.provides[e]||this.$route).params.lang:!1}},mounted(){this.headroom=new f(this.$el,this.headroomOptions),this.headroom.init()},methods:{setPin(t){this.pinned=t},setTop(t){this.top=t,t&&(this._.provides[e]||this.$route).name&&!(this._.provides[e]||this.$route).name.includes("on-demand")&&(this.scrollBackgroundColour="White #FFFFFF")}}},b={class:"relative flex flex-wrap items-center w-full nl-md:px-1em1vw"},w={id:"HeaderLogo",class:"relative flex items-center justify-center md:border-b md:border-grey-300 lg:border-none h-16 md:h-18 lg:h-24 w-1/2 md:w-full lg:w-1/5 md:px-1em1vw md:order-1 xl:order-2 mx-auto"};function v(t,o,$,k,P,s){const i=_,n=g;return p(),u("header",{id:"Header",ref:"liteHeader",class:m([s.headerClasses,"sticky top-0 md:-top-25.5 lg:-top-24 left-0 w-full border-b border-grey-300 z-40 md:transform md:duration-300"])},[r("section",b,[r("div",w,[a(n,{to:s.headerLink,class:"focus:outline-gbl","aria-label":"Aspria homepage"},{default:c(()=>[a(i,{id:"SiteLogo",class:"w-logo-s wd:w-logo-l mx-auto min-h-16"})]),_:1},8,["to"])])])],2)}const L=l(x,[["render",v]]);export{L as _};