1import{l as w,p}from"./index.DaaxQYDI.js";import{f as c,g as u}from"./addToBasket.BI4HVeMO.js";import"./jsonParse.DmCFq1Ah.js";import"./formatPriceBasedOnLocale.CcPekq04.js";import"./init-quantity-selector.kuOM4ZgD.js";import"./session.BZxovK5N.js";class h extends HTMLElement{constructor(){super(),this.bindEventListeners(),this.handleRTL(),new MutationObserver(n=>{this.bindEventListeners()}).observe(this,{childList:!0,subtree:!0})}bindEventListeners=()=>{const e=this.querySelector("#drawer-container"),n=this.querySelector("#drawer-container-nested");this.setupDrawer(e,"drawer-content","drawer-background-wrapper"),this.setupDrawer(n,"drawer-content-nested","drawer-background-wrapper-nested")};setupDrawer=(e,n,l)=>{if(!e)return;const d=document.getElementById(n),i=document.getElementById(l),o=()=>{e?.classList.add("is-closing"),setTimeout(()=>{e?.classList.remove("drawer"),e?.classList.remove("is-closing"),e?.setAttribute("inert","true"),e.classList.forEach(t=>{t.startsWith("context-")&&e.classList.remove(t)}),d&&(d.innerHTML=""),i&&(i.innerHTML=""),e.close()},400)};e.querySelectorAll(".closeBtn").forEach(t=>{!t||t.dataset.drawerCloseBound||(t.dataset.drawerCloseBound="true",t.addEventListener("click",a=>{a.preventDefault(),o()}))}),e.querySelector("#emailReEngagementModal")&&!e.dataset.reEngCookieBound&&(e.dataset.reEngCookieBound="true",e.querySelectorAll(".closeBtn").forEach(t=>{t?.addEventListener("click",this.addCookie)}),e.addEventListener("keydown",({key:t})=>{t==="Escape"&&this.addCookie()})),e.dataset.drawerDialogBound||(e.dataset.drawerDialogBound="true",e.addEventListener("click",t=>{(t.target===e||t.target.classList.contains("drawer-backdrop"))&&o()}),e.addEventListener("cancel",t=>{t.preventDefault(),o()}),e.addEventListener("keydown",t=>{t.key==="Escape"&&e.dataset.drawerShowMode==="true"&&(t.preventDefault(),o())}),e.addEventListener("close",()=>{const t=document.getElementById("drawer-container")?.open,a=document.getElementById("drawer-container-nested")?.open,m=document.getElementById("modal-container")?.open;!t&&!a&&!m&&document.body?.classList.remove("scrollBlock"),e.dataset.drawerShowMode==="true"&&(w(!1),delete e.dataset.drawerShowMode)}))};handleRTL=()=>{this.dataset.rtl==="true"?document.documentElement.style.setProperty("--slide-direction","-100%"):document.documentElement.style.setProperty("--slide-direction","100%")};addCookie(){document.cookie="emailReEngagementCookie=newsletter-showed; path=/; secure;"}}try{const r=p(`ElysiumBasket${window.tenantConfig?.application?.basketCookieName}_V6`,document.cookie);if(r){let e=null;try{e=atob(r)}catch{e=null}e&&c(e)?u(e):c(r)&&u(r)}}catch(r){console.error("Error processing basket cookie:",r)}const s=new URLSearchParams(window.location.search);s.get("registrationSuccess")?(window.Tracker.store.set("account_registration_method",s.get("registrationMethod")),window.Tracker.store.set("user_id",s.get("userId"))):s.get("loginSuccess")&&window.Tracker.store.set("login_method",s.get("loginMethod"));customElements.get("shared-drawer")||customElements.define("shared-drawer",h);
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.