1(function(){"use strict";if(window.__ledMobileSheet)return;window.__ledMobileSheet=!0;var DESKTOP_QUERY="(min-width: 1000px)",FOCUSABLE_SELECTOR=["a[href]","area[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","summary","iframe","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])','[tabindex]:not([tabindex^="-"])'].join(","),desktopQuery=window.matchMedia(DESKTOP_QUERY),reducedMotionQuery=window.matchMedia("(prefers-reduced-motion: reduce)"),scrollLock={active:!1,offset:0,body:null,html:null};function lockScroll(){if(!scrollLock.active){var body=document.body,html=document.documentElement;scrollLock.offset=window.pageYOffset||html.scrollTop||0;var scrollbarWidth=window.innerWidth-html.clientWidth;scrollLock.body={position:body.style.position,top:body.style.top,left:body.style.left,right:body.style.right,width:body.style.width,paddingRight:body.style.paddingRight},scrollLock.html={scrollBehavior:html.style.scrollBehavior},html.style.scrollBehavior="auto",body.style.position="fixed",body.style.top=-scrollLock.offset+"px",body.style.left="0",body.style.right="0",body.style.width="100%",scrollbarWidth>0&&(body.style.paddingRight=scrollbarWidth+"px"),scrollLock.active=!0}}function unlockScroll(){if(scrollLock.active){var body=document.body,html=document.documentElement;body.style.position=scrollLock.body.position,body.style.top=scrollLock.body.top,body.style.left=scrollLock.body.left,body.style.right=scrollLock.body.right,body.style.width=scrollLock.body.width,body.style.paddingRight=scrollLock.body.paddingRight,window.scrollTo(0,scrollLock.offset),html.style.scrollBehavior=scrollLock.html.scrollBehavior,scrollLock.active=!1}}function isVisiblyFocusable(element,root){if(!element.getClientRects().length||window.getComputedStyle(element).visibility==="hidden")return!1;for(var parent=element.parentElement;parent&&parent!==root;){var parentStyle=window.getComputedStyle(parent);if(parentStyle.display!=="inline"&&parentStyle.overflow!=="visible"&&(parent.clientHeight===0||parent.clientWidth===0))return!1;parent=parent.parentElement}return!0}var instances=[],initialised=new WeakSet;function MobileSheet(nav){this.nav=nav,this.menu=nav.querySelector(".mobile-menu"),this.menu&&(this.toggle=nav.querySelector('[data-action="toggle-menu"][aria-controls="'+this.menu.id+'"]')||nav.querySelector('[data-action="toggle-menu"]'),this.toggle&&(this.isOpen=this.menu.getAttribute("aria-hidden")==="false",this._onMutation=this._onMutation.bind(this),this._onKeydown=this._onKeydown.bind(this),this._onClick=this._onClick.bind(this),this._onBreakpointChange=this._onBreakpointChange.bind(this),this.observer=new MutationObserver(this._onMutation),this.observer.observe(this.menu,{attributes:!0,attributeFilter:["aria-hidden"]}),document.addEventListener("keydown",this._onKeydown),this.nav.addEventListener("click",this._onClick),desktopQuery.addEventListener?desktopQuery.addEventListener("change",this._onBreakpointChange):desktopQuery.addListener&&desktopQuery.addListener(this._onBreakpointChange),this.isOpen&&this._onOpen(),this.ready=!0))}MobileSheet.prototype.destroy=function(){this.observer&&this.observer.disconnect(),document.removeEventListener("keydown",this._onKeydown),this.nav.removeEventListener("click",this._onClick),desktopQuery.removeEventListener?desktopQuery.removeEventListener("change",this._onBreakpointChange):desktopQuery.removeListener&&desktopQuery.removeListener(this._onBreakpointChange),initialised.delete(this.nav),this.isOpen&&unlockScroll()},MobileSheet.prototype.close=function(){this.menu.getAttribute("aria-hidden")==="false"&&this.toggle.click()},MobileSheet.prototype._onMutation=function(){var open=this.menu.getAttribute("aria-hidden")==="false";open!==this.isOpen&&(this.isOpen=open,open?this._onOpen():this._onClose())},MobileSheet.prototype._onOpen=function(){lockScroll(),this.toggle.focus({preventScroll:!0})},MobileSheet.prototype._onClose=function(){unlockScroll();for(var expanded=this.menu.querySelectorAll('[data-action="open-panel"][aria-expanded="true"]'),i=0;i<expanded.length;
1i++)expanded[i].setAttribute("aria-expanded","false");for(var panels=this.menu.querySelectorAll(".mobile-menu__panel"),j=0;j<panels.length;j++)panels[j].scrollTop=0;var active=document.activeElement;(!active||active===document.body||this.nav.contains(active))&&this.toggle.focus({preventScroll:!0})},MobileSheet.prototype._onKeydown=function(event){if(this.isOpen){if(event.key==="Escape"||event.key==="Esc"){this.close();return}if(event.key==="Tab"){var focusable=this._focusableElements();if(focusable.length){event.preventDefault();var index=focusable.indexOf(document.activeElement),next;index===-1?next=event.shiftKey?focusable[focusable.length-1]:focusable[0]:next=focusable[(index+(event.shiftKey?-1:1)+focusable.length)%focusable.length],this._focus(next)}}}},MobileSheet.prototype._onClick=function(event){if(!(!this.isOpen||!this.menu.contains(event.target)||!event.target.closest)){var target=event.target,opener=target.closest('[data-action="open-panel"]');if(opener){this._focusPanelEntry(document.getElementById(opener.getAttribute("aria-controls")));return}var closer=target.closest('[data-action="close-panel"]');if(closer){var leftPanel=closer.closest(".mobile-menu__panel");if(leftPanel){var trigger=this.menu.querySelector('[aria-controls="'+leftPanel.id+'"]');trigger&&trigger.focus({preventScroll:!0})}return}target.closest(".mobile-menu__inner")||this.close()}},MobileSheet.prototype._focusPanelEntry=function(panel){if(panel){var entry=panel.querySelector('[data-action="close-panel"]');if(!entry)for(var candidates=panel.querySelectorAll(FOCUSABLE_SELECTOR),i=0;i<candidates.length&&!entry;i++)isVisiblyFocusable(candidates[i],this.menu)&&(entry=candidates[i]);entry&&(entry.focus({preventScroll:!0}),document.activeElement!==entry&&window.requestAnimationFrame(function(){entry.focus({preventScroll:!0})}
1))}},MobileSheet.prototype._onBreakpointChange=function(){desktopQuery.matches&&this.isOpen&&this.close()},MobileSheet.prototype._focusableElements=function(){var result=[];this.toggle.disabled||result.push(this.toggle);var openPanels=this.menu.querySelectorAll(".mobile-menu__panel.is-open"),panel=openPanels.length?openPanels[openPanels.length-1]:this.menu.querySelector(".mobile-menu__panel:not(.is-nested)");if(!panel)return result;for(var candidates=panel.querySelectorAll(FOCUSABLE_SELECTOR),i=0;i<candidates.length;i++)isVisiblyFocusable(candidates[i],this.menu)&&result.push(candidates[i]);return result},MobileSheet.prototype._focus=function(element){element.focus({preventScroll:!0}),element.scrollIntoView&&element.scrollIntoView({block:"nearest",behavior:reducedMotionQuery.matches?"auto":"smooth"})};function init(){for(var i=instances.length-1;i>=0;i--)document.documentElement.contains(instances[i].nav)||(instances[i].destroy(),instances.splice(i,1));for(var navs=document.querySelectorAll(".header__mobile-nav"),j=0;j<navs.length;j++)if(!initialised.has(navs[j])){var instance=new MobileSheet(navs[j]);instance.ready&&(initialised.add(navs[j]),instances.push(instance))}}init(),document.addEventListener("shopify:section:load",init),document.addEventListener("shopify:section:unload",function(){unlockScroll(),init()})})(); 2//# sourceMappingURL=/cdn/shop/t/78/assets/custom.js.map?v=1337106722945060611791206088
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.