var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opens = _____WB$wombat$assign$function_____("opens"); /** Shopify CDN: Minification failed Line 16:0 Transforming class syntax to the configured target environment ("es5") is not supported yet Line 17:13 Transforming object literal extensions to the configured target environment ("es5") is not supported yet Line 30:6 Transforming object literal extensions to the configured target environment ("es5") is not supported yet Line 45:7 Transforming object literal extensions to the configured target environment ("es5") is not supported yet Line 52:16 Transforming object literal extensions to the configured target environment ("es5") is not supported yet Line 65:21 Transforming object literal extensions to the configured target environment ("es5") is not supported yet Line 80:21 Transforming object literal extensions to the configured target environment ("es5") is not supported yet Line 80:37 Transforming default arguments to the configured target environment ("es5") is not supported yet Line 84:17 Transforming object literal extensions to the configured target environment ("es5") is not supported yet Line 85:4 Transforming const to the configured target environment ("es5") is not supported yet ... and 2 more hidden warnings **/ class CartNotification extends HTMLElement { constructor() { super(); this.notification = document.getElementById('cart-notification'); this.header = document.querySelector('sticky-header'); this.onBodyClick = this.handleBodyClick.bind(this); this.notification.addEventListener('keyup', (evt) => evt.code === 'Escape' && this.close()); this.querySelectorAll('button[type="button"]').forEach((closeButton) => closeButton.addEventListener('click', this.close.bind(this)) ); } open() { this.notification.classList.add('animate', 'active'); this.notification.addEventListener( 'transitionend', () => { this.notification.focus(); trapFocus(this.notification); }, { once: true } ); document.body.addEventListener('click', this.onBodyClick); } close() { this.notification.classList.remove('active'); document.body.removeEventListener('click', this.onBodyClick); removeTrapFocus(this.activeElement); } renderContents(parsedState) { this.cartItemKey = parsedState.key; this.getSectionsToRender().forEach((section) => { document.getElementById(section.id).innerHTML = this.getSectionInnerHTML( parsedState.sections[section.id], section.selector ); }); if (this.header) this.header.reveal(); this.open(); } getSectionsToRender() { return [ { id: 'cart-notification-product', selector: `[id="cart-notification-product-${this.cartItemKey}"]`, }, { id: 'cart-notification-button', }, { id: 'cart-icon-bubble', }, ]; } getSectionInnerHTML(html, selector = '.shopify-section') { return new DOMParser().parseFromString(html, 'text/html').querySelector(selector).innerHTML; } handleBodyClick(evt) { const target = evt.target; if (target !== this.notification && !target.closest('cart-notification')) { const disclosure = target.closest('details-disclosure, header-menu'); this.activeElement = disclosure ? disclosure.querySelector('summary') : null; this.close(); } } setActiveElement(element) { this.activeElement = element; } } customElements.define('cart-notification', CartNotification); } /* FILE ARCHIVED ON 17:47:43 Dec 27, 2023 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 04:38:13 Jan 06, 2026. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 2.325 exclusion.robots: 0.031 exclusion.robots.policy: 0.013 esindex: 0.015 cdx.remote: 18.371 LoadShardBlock: 92.24 (3) PetaboxLoader3.datanode: 140.926 (4) load_resource: 120.976 PetaboxLoader3.resolve: 44.461 */