1import{c as r}from"./vite-stringToObject-Crrrx2bT.js";import{g as e}from"./vite-getPageType-UkxWU2yH.js";import{a as o}from"./vite-js.cookie-Cz0CWeBA.js";const h=()=>({displayingPageType:null,displayingPage:null,displaying:!1,rootTheme:null,isFixed:!1,closeBanner(){this.setStorage("close"),this.rootTheme.style.setProperty("--top-banner-height","0px")},onScroll(){if(this.isFixed!==this.$store.shop.UiLayout.isFixed||!this.displaying)return!1;window.scrollY>5&&window.scrollY!=0?this.rootTheme.style.setProperty("--top-banner-height","0px"):this.getStorage()!=="close"&&(window.innerWidth>1024?this.rootTheme.style.setProperty("--top-banner-height","24px"):this.rootTheme.style.setProperty("--top-banner-height","31px")),this.isFixed=this.$store.shop.UiLayout.isFixed},async init(){this.rootTheme=document.querySelector(":root"),await this.$nextTick(),this.isDisplaying(),this.displaying&&this.onScroll()},isDisplaying(){this.displaying=!1;const t=new URL(window.location.href),s=window.location.pathname;if(this.getStorage()==="close")return this.displaying=!1,!1;const i=r(this.displayingPageType);i.all&&(this.displaying=!0),i.homepage&&s==="/"&&(this.displaying=!0),i.products&&e(t)==="products"&&(this.displaying=!0),i.collections&&e(t)==="collections"&&(this.displaying=!0),i.boutiques&&e(t)==="boutique"&&(this.displaying=!0),i.specific&&s===this.displayingPage&&(this.displaying=!0)},setStorage(t){o.set("top-banner",t)},getStorage(){return o.get("top-banner")||""},onResize(){this.setThreshold()},setThreshold(){this.threshold=this.$root.offsetHeight*2}});export{h as data};
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.