1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/addToWaitlist-D5RLUEZJ.js","assets/utils-u6AFdixw.js","assets/favorites-BXTyQB_D.js","assets/lux-popup-DTY06fMb.js","assets/animation-dy5FGtwA.js","assets/rating-page-CYbfnuml.js","assets/delegate-bd8deuet.js","assets/post-code-lookup-Dgox3Emx.js","assets/chunk-cq-tXLHF.js"])))=>i.map(i=>d[i]); 2(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`71c20821-4338-4e5b-91ba-0a710dbd25c0`,e._sentryDebugIdIdentifier=`sentry-dbid-71c20821-4338-4e5b-91ba-0a710dbd25c0`)}catch{}})();import{t as e}from"./preload-helper-rHv4JaLq.js";import{t}from"./lazy-loader-CnsrXC-I.js";import{t as n}from"./check-DkKFezOv.js";import{t as r}from"./LPEvent-32YpEh_B.js";import"./cart-CZR4GuR3.js";var i=class{constructor(e,t){this._icon=null,this._currentPage=1,this._settings={maxPages:3},this.elements={menu:null,slider:null,header:null,title:null,backBtn:null,closeBtn:null,logo:null},this._sections=[],this.bindElements(e),this.processSections(t),this.elements.backBtn?.addEventListener(`click`,()=>this.navigateBack()),this.elements.closeBtn?.addEventListener(`click`,()=>this.hide())}bindElements(e){this.elements={menu:document.querySelector(e),slider:document.querySelector(`${e} .slides`),header:document.querySelector(`${e} .mobile-menu-header`),title:document.querySelector(`${e} .mobile-menu-header .header-title .title-text`),backBtn:document.querySelector(`${e} .mobile-menu-header .navigate-back`),closeBtn:document.querySelector(`${e} .mobile-menu-header .close-menu`),logo:document.querySelector(`${e} .mobile-menu-header .header-title .logo`)},this._icon=document.querySelector(`${e} .mobile-menu-icon`)?.outerHTML??null}processSections(e){this._sections=[];for(let t of e)if(t.enabled){let e=new a(t,this.elements.menu?.querySelector(`div[data-sectionid="${t.section_id}"]`)??null,this._icon);e.onItemClicked.bind(this.onItemClicked.bind(this)),this._sections.push(e)}}onItemClicked(e,t){t.hasMenuItems?(this.renderNextPage(t),this.navigateForward()):location.href=t.slug}navigateBack(){this._currentPage>1&&this.navigateToPage(this._currentPage-1)}navigateForward(){this._currentPage<this._settings.maxPages&&this.navigateToPage(this._currentPage+1)}navigateToPage(e){this._currentPage=e,this.elements.slider?.classList.remove(`page-2`,`page-3`),e>1&&this.elements.slider?.classList.add(`page-${this._currentPage}`),this.updateHeader()}show(){this.elements.menu?.classList.add(`show`),document.body.classList.add(`hasOverlay`,`menu-open`)}hide(){document.body.classList.remove(`hasOverlay`,`menu-open`),this.elements.menu?.classList.remove(`show`)}get currentSlide(){return this.elements.slider?.querySelector(`.slide[data-page="${this._currentPage}"]`)??null}renderNextPage(e){let t=this.currentSlide?.nextElementSibling;if(!(t instanceof HTMLElement))return;t.innerHTML=``;let n=this.getSubHeader(e);n&&t.appendChild(n);for(let n=0;n<e.menuItems.length;n++)e.menuItems[n].appendTo(t);t.dataset.itemTitle=e.name}getSubHeader({isSubheaderDisabled:e,slug:t,name:n}){if(e)return null;let r=document.createElement(`div`);return r.className=`mobile-menu-item mobile-menu-showall`,r.innerHTML=`<a href="${t}">${window.TEXT1146} ${n}</a>`,r}updateHeader(){let e=this.currentSlide,t=(e instanceof HTMLElement?e.dataset.itemTitle:null)||null;t?(this.elements.header?.classList.add(`hide-logo`),this.elements.logo?.classList.add(`d-none`),this.elements.title instanceof HTMLElement&&(this.elements.title.textContent=t,this.elements.title.classList.remove(`d-none`))):(this.elements.header?.classList.remove(`hide-logo`),this.elements.logo?.classList.remove(`d-none`),this.elements.title instanceof HTMLElement&&(this.elements.title.textContent=``,this.elements.title.classList.add(`d-none`))),this.elements.backBtn?.classList.toggle(`d-none`,this._currentPage<2)}},a=class e{constructor(e,t,n){t===void 0&&(t=null),this._item=e,this._onClickEvent=new r(`__sectionClicked`),this._icon=n,this.elm=d
2ocument.createElement(`div`),this._clickListener=null,this._items=[],this._childrenInitialized=!1,t?(this.setElement(t),this.addClickListener()):this._item.renderAsHeader?this.createHeaderElement():this.createElement()}processMenuItems(){if(!(this._childrenInitialized||!this.hasMenuItems)){this._childrenInitialized=!0,this._items=[];for(let t=0;t<this._item.menu_items.length;t++){let n=new e(this._item.menu_items[t],null,this._icon);n.onItemClicked.bind(this.onSubItemClicked.bind(this)),this._items.push(n)}}}createElement(){let e=document.createElement(`div`);e.className=`mobile-menu-item`,e.innerHTML=`<span class="menu-item-text">${this._item.name}</span>`,this.hasMenuItems&&this._icon&&e.insertAdjacentHTML(`beforeend`,this._icon),this.setElement(e)}createHeaderElement(){let e=document.createElement(`div`);e.className=`mobile-menu-item mobile-menu-subheader`,e.innerHTML=`<span class="menu-item-text">${this._item.name}</span>`,this.setElement(e)}setElement(e){this.elm=e}onClickFromUI(e){this._onClickEvent.trigger(this)}onSubItemClicked(e,t){this._onClickEvent.trigger(t)}get onItemClicked(){return this._onClickEvent}get hasMenuItems(){return Array.isArray(this._item.menu_items)&&this._item.menu_items.length>0}get menuItems(){return this.processMenuItems(),this._items}get slug(){return this._item.slug}get name(){return this._item.name}get isSubheaderDisabled(){return this._item.disableSubHeader||!1}appendTo(e){this.addClickListener(),e.appendChild(this.elm)}addClickListener(){this._item.renderAsHeader||(this._clickListener&&this.elm.removeEventListener(`click`,this._clickListener),this._clickListener=this.onClickFromUI.bind(this),this.elm.addEventListener(`click`,this._clickListener))}},o=new t(()=>{window.mobileMenu=new i(`#mainMenuMobileOverview`,window.menuData||[]),document.querySelector(`.lux-header .burger-menu`)?.classList.add(`ready`)},{idle:!0});document.querySelector(`.lux-header .burger-menu:not([data-toggle])`)?.addEventListener(`click`,e=>{e.preventDefault(),o.run(),window.mobileMenu?.show()});var s=document.getElementById(`brand-discount-confirm`),c=document.querySelectorAll(`.lux-brand[data-toggle='lux-popup']`),l=document.querySelectorAll(`.brand-discount-modal .brand-nav-link`);s&&s.addEventListener(`click`,function(e){e.preventDefault();let t=this.getAttribute(`data-brand-id`),n=document.querySelector(`.toast-brand-discount`);fetch(`/add-brand-discount`,{method:`POST`,headers:{"Content-Type":`application/json`,"X-CSRF-TOKEN":`{{ csrf_token() }}`},body:JSON.stringify({brand_id:t})}).then(e=>e.json()).then(e=>{if(e.success)document.querySelectorAll(`.brand-discount-modal`).forEach(e=>e.classList.remove(`active`)),n&&luxPopup.toastShow(n),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:`customer_brand_discount_added`,brand_name:e.brand,eventCallback:function(){window.location.reload()}}),setTimeout(()=>{window.location.reload()},2e3);else throw Error(e.message)}).catch(e=>{throw Error(e)})}),c&&c.forEach(function(e){e.addEventListener(`click`,function(){let t=e.getAttribute(`data-brand-name`)??``,n=e.getAttribute(`data-brand-img`)??``;e.getAttribute(`data-brand-link`);let r=e.getAttribute(`data-brand-id`)??``,i=document.getElementById(`brand-discount-name`);i&&(i.textContent=t);let a=document.getElementById(`toast-brand-discount-name`);a&&(a.textContent=t);let o=document.getElementById(`brand-discount-img`);o&&(o.setAttribute(`src`,n),o.setAttribute(`alt`,t));let s=document.getElementById(`brand-discount-confirm`);s&&s.setAttribute(`data-brand-id`,r)})}),l&&l.forEach(e=>{e.addEventListener(`click`,function(t){t.preventDefault();let n=e.getAttribute(`data-target`),r=document.querySelector(`.brand-discount-modal #${n}`);r&&r.scrollIntoView({behavior:`smooth`,block:`start`})})});function u(){let e=document.querySelectorAll(`.page-brands .lux-brands-wrapper .lux-brand`),t=document.querySelector(`.page-brands .lux-brands-container .lux-right`);!e.length||!t||e.forEach(function(e){e.addEventListener(`mouseenter`,function(){let n=e.closest(`.lux-brand-wrapper`);if(!n)return;let r=n.querySelector(`.lux-brand-info`);r&&t.replaceChildren(r.cloneNode(!0))})})}document.querySelector(`.page-brands`)&&u(),document.addEventListener(`click`,e=>{let t=e.target;if(!(t instanceof Element)||!t.closest(`button.scroll-to-summary`))return;e.preventDefault();let n=document.querySelector(`header`),r=n?n.offsetHeight:0,i=document.querySelector(`.section-confirmation-main`);if(i){let e=i.getBoundingClientRect().top+window.pageYOffset;window.scrollTo({top:e-r,behavior:`smooth`})}});function d(){document.getElementById(`lux-modal-products-oos`)?.classList.add(`active`)}
2window.showProductsOosModal=d,document.querySelectorAll(`.lux-header .lux-footer .lux-menu-link`).forEach(e=>{if(e.getAttribute(`href`)?.split(`?`)[0]!==location.pathname||(e.classList.add(`active`),!e.closest(`.lux-main-menu-overlay`)))return;let t=e.closest(`.lux-section-menu`)?.getAttribute(`data-id`);e.closest(`.lux-category-menu`)?.classList.add(`active`),document.querySelector(`.lux-main-menu .lux-menu-link[data-id=${t}]`)?.classList.add(`active`)}),document.querySelectorAll(`.footer-links a`).forEach(function(e){if(e.getAttribute(`data-faq`)){var t=e.getAttribute(`data-faq`);e.addEventListener(`click`,function(){t!==null&&localStorage.setItem(`footer-click-faq`,t)})}});function f(e,t,n,r=0){let i=Array.from(e.children),a=i[r];a&&(a.style.transition=`opacity ${t}ms`,a.style.display=``,a.style.opacity=`0`,a.offsetHeight,a.style.opacity=`1`,setTimeout(()=>{setTimeout(()=>{a.style.opacity=`0`,setTimeout(()=>{a.style.display=`none`,a.style.removeProperty(`opacity`),a.style.removeProperty(`transition`),f(e,t,n,(r+1)%i.length)},t)},n)},t))}document.querySelector(`.savings-label-wrapper`)&&document.querySelectorAll(`.savings-label-wrapper`).forEach(e=>{let t=e.querySelector(`.dummy-savings-label-1`),n=e.querySelector(`.dummy-savings-label-2`),r=e.querySelector(`.savings-label.rotate`),i=t?.parentElement;if(!t||!n||!(r instanceof HTMLElement)||!i)return;i.classList.remove(`d-none`);let a=t.getBoundingClientRect().width,o=n.getBoundingClientRect().width;r.style.width=`${Math.max(a,o)}px`,f(r,500,4e3),i.classList.add(`d-none`)});var p=`/build/assets/loader-spinner-DTtMuvhV.svg`,m={addToBasket(e){let t=e.dataset.productSlug,r=e.dataset.searchTrackId?Number(e.dataset.searchTrackId):void 0,i=Number(e.dataset.track);e.style.width=`${e.offsetWidth}px`,e.innerHTML=`<img src="/img/null.png" width="1" height="1" style="--svg: url(${p}); --color-icon: var(--color-white); --iconSize: 14px;" alt="" class="lux-svg-icon "></img>`;let a=t=>{let r=Array.isArray(t?.ids)&&t.ids.length>0;e.innerHTML=r?`<img src="${n}" alt="" class="svg-filter-white" style="height: 9px;">`:window.TEXT530,r&&setTimeout(()=>{e.innerHTML=window.TEXT530},5e3)};r?basket.addProductById(r,1,a):basket.addProduct(t,1,a),i===1&&fetch(`/tracking/google/quick-add-to-cart/${t}`).then(e=>e.json()).then(e=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)})}};document.addEventListener(`click`,e=>{let t=e.target;if(!(t instanceof Element))return;let n=t.closest(`button.quick-buy-btn`);n instanceof HTMLElement&&m.addToBasket(n)}),document.querySelectorAll(`.promo-box.lux-clickable`).forEach(e=>{e.addEventListener(`click`,()=>{e.querySelector(`.btn`).click()})}),window.onload=function(){document.querySelector(`.youtube-video-wrapper`)&&document.querySelectorAll(`.youtube-video-wrapper .video`).forEach(function(e){let t=e.getAttribute(`data-src`);t&&e.setAttribute(`src`,t)})},document.querySelector(`.lux-mobile-menu`)&&e(()=>import(`./MobileMenuExpand-2GntaCfX.js`),[]),document.querySelector(`.waitlist-email`)&&e(()=>import(`./addToWaitlist-D5RLUEZJ.js`),__vite__mapDeps([0,1])),document.querySelector(`.lux-header-button.favorites`)&&e(async()=>{let{default:e}=await import(`./favorites-BXTyQB_D.js`);return{default:e}},__vite__mapDeps([2,3,4])).then(({default:e})=>{window.favorites=e,e.init()}),document.getElementById(`lux-modal-edit-favorites`)&&e(async()=>{let{init:e}=await import(`./edit-favorites-DxWISAN9.js`);return{init:e}},[]).then(({init:e})=>e()),document.getElementById(`klarna-wrapper`)&&e(async()=>{let{init:e}=await import(`./klarna-token-CNKHG-2Y.js`);return{init:e}},[]).then(({init:e})=>e()),document.getElementById(`form-container`)&&e(()=>import(`./rating-page-CYbfnuml.js`),__vite__mapDeps([5,4,6])),document.querySelector(`input[name="zipcode"]`)&&e(()=>import(`./post-code-lookup-Dgox3Emx.js`).then(e=>e.t),__vite__mapDeps([7,8])),document.querySelector(`.btn-see-more-blogposts[data-load-more-url]`)&&e(()=>import(`./blog-load-more-BCkyezqp.js`),[]),document.getElementById(`btn-load-cookie-script`)&&e(()=>
2import(`./gdpr-cookie-consent-B3AoeYNO.js`),[]),document.querySelector(`.lux-membership-list .toggle`)&&e(()=>import(`./agreement-list-r9fkysTK.js`),[]),document.querySelector(`.swiper-membership-progression .swiper-wrapper`)&&e(()=>import(`./show-progress-CoB-oQw4.js`),[]),document.querySelector(`.section-memberships-hero.with-banner`)&&e(()=>import(`./membership-hero-banner-C3j_rfKL.js`),[]),document.querySelector(`.section-memberships.choose-membership .lux-membership .add-sub`)&&e(()=>import(`./memberships-fixed-CcLHAE2O.js`),[]),document.getElementById(`lux-toast-info`)&&e(()=>import(`./info-toast-CxD5L4hg.js`),[]),document.querySelector(`.page-cart`)&&e(()=>import(`./cart-page-reload-on-change-CNHdEWpX.js`),[]); 3//# sourceMappingURL=shop-BhupYPjH.js.map
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.