PageSourceSearch

https://volumesdirect.com/cdn/shop/t/2/assets/StaticHeader.bundle.js?v=66575997470411509501600193831

js volumesdirect.com collected 2026-10-02 11:12:47 UTC 43,446 bytes, 2 lines download raw bytes

1(window.wpJsonpPaskit=window.wpJsonpPaskit||[]).push([[28],{21:(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",function(){return trapFocus}),__webpack_require__.d(__webpack_exports__,"a",function(){return removeTrapFocus});function forceFocus(element,options){options=options||{};var savedTabIndex=element.tabIndex;element.tabIndex=-1,element.dataset.tabIndex=savedTabIndex,element.focus(),typeof options.className!="undefined"&&element.classList.add(options.className),element.addEventListener("blur",callback);function callback(event){event.target.removeEventListener(event.type,callback),element.tabIndex=savedTabIndex,delete element.dataset.tabIndex,typeof options.className!="undefined"&&element.classList.remove(options.className)}}function focusHash(options){options=options||{};var hash=window.location.hash,element=document.getElementById(hash.slice(1));if(element&&options.ignore&&element.matches(options.ignore))return!1;hash&&element&&forceFocus(element,options)}function bindInPageLinks(options){options=options||{};var links=Array.prototype.slice.call(document.querySelectorAll('a[href^="#"]'));return links.filter(function(link){if(link.hash==="#"||link.hash===""||options.ignore&&link.matches(options.ignore))return!1;var element=document.querySelector(link.hash);return element?(link.addEventListener("click",function(){forceFocus(element,options)}),!0):!1})}function focusable(container){var elements=Array.prototype.slice.call(container.querySelectorAll("[tabindex],[draggable],a[href],area,button:enabled,input:not([type=hidden]):enabled,object,select:enabled,textarea:enabled"));return elements.filter(function(element){return!!(element.offsetWidth||element.offsetHeight||element.getClientRects().length)})}var trapFocusHandlers={};function trapFocus(container,options){options=options||{};var elements=focusable(container),elementToFocus=options.elementToFocus||container,first=elements[0],last=elements[elements.length-1];removeTrapFocus(),trapFocusHandlers.focusin=function(event){container!==event.target&&!container.contains(event.target)&&first.focus(),!(event.target!==container&&event.target!==last&&event.target!==first)&&document.addEventListener("keydown",trapFocusHandlers.keydown)},trapFocusHandlers.focusout=function(){document.removeEventListener("keydown",trapFocusHandlers.keydown)},trapFocusHandlers.keydown=function(event){event.keyCode===9&&(event.target===last&&!event.shiftKey&&(event.preventDefault(),first.focus()),(event.target===container||event.target===first)&&event.shiftKey&&(event.preventDefault(),last.focus()))},document.addEventListener("focusout",trapFocusHandlers.focusout),document.addEventListener("focusin",trapFocusHandlers.focusin),forceFocus(elementToFocus,options)}function removeTrapFocus(){document.removeEventListener("focusin",trapFocusHandlers.focusin),document.removeEventListener("focusout",trapFocusHandlers.focusout),document.removeEventListener("keydown",trapFocusHandlers.keydown)}function accessibleLinks(elements,options){if(typeof elements!="string")throw new TypeError(elements+" is not a String.");if(elements=document.querySelectorAll(elements),elements.length===0)return;options=options||{},options.messages=options.messages||{};var messages={newWindow:options.messages.newWindow||"Opens in a new window.",external:options.messages.external||"Opens external website.",newWindowExternal:options.messages.newWindowExternal||"Opens external website in a new window."},prefix=options.prefix||"a11y",messageSelectors={newWindow:prefix+"-new-window-message",external:prefix+"-external-message",newWindowExternal:prefix+"-new-window-external-message"};function generateHTML(messages2){var container=document.createElement("ul"),htmlMessages=Object.keys(messages2).reduce(function(html,key){return html+="<li id="+messageSelectors[key]+">"+messages2[key]+"</li>"},"");container.setAttribute("hidden",!0),container.innerHTML=htmlMessages,document.body.appendChild(container)}function externalSite(link){return link.hostname!==window.location.hostname}
1elements.forEach(function(link){var target=link.getAttribute("target"),rel=link.getAttribute("rel"),isExternal=externalSite(link),isTargetBlank=target==="_blank",isRelNoopenerEmpty=rel===null||rel.indexOf("noopener")===-1;isTargetBlank&&isRelNoopenerEmpty&&link.setAttribute("rel","noopener"),isExternal&&isTargetBlank?link.setAttribute("aria-describedby",messageSelectors.newWindowExternal):isExternal?link.setAttribute("aria-describedby",messageSelectors.external):isTargetBlank&&link.setAttribute("aria-describedby",messageSelectors.newWindow)}),generateHTML(messages)}}),23:(function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});function readCSSBreakpoints(){return window.getComputedStyle(document.documentElement,":before").getPropertyValue("content").replace(/"/g,"").split(",")}function readCSSCurrentBreakpoint(){return window.getComputedStyle(document.documentElement,":after").getPropertyValue("content").replace(/"/g,"")}var callbacks=[],cssBreakpoints=readCSSBreakpoints(),CSSBreakpoint=(function(){function CSSBreakpoint2(cssBreakpoint){this.cssBreakpoint=cssBreakpoint}return Object.defineProperty(CSSBreakpoint2.prototype,"value",{get:function(){return this.cssBreakpoint},enumerable:!0,configurable:!0}),CSSBreakpoint2.prototype.min=function(breakpointName){var comparison=cssBreakpoints.indexOf(this.value)-cssBreakpoints.indexOf(breakpointName);return comparison>=0},CSSBreakpoint2.prototype.max=function(breakpointName){var comparison=cssBreakpoints.indexOf(this.value)-cssBreakpoints.indexOf(breakpointName);return comparison<=0},CSSBreakpoint2.prototype.range=function(breakpointNameStart,breakpointNameEnd){var indexCurrent=cssBreakpoints.indexOf(this.value),indexStart=cssBreakpoints.indexOf(breakpointNameStart),indexEnd=cssBreakpoints.indexOf(breakpointNameEnd);return indexStart<=indexCurrent&&indexCurrent<=indexEnd},CSSBreakpoint2.prototype.is=function(){for(var _this=this,breakpointNames=[],_i=0;_i<arguments.length;_i++)breakpointNames[_i]=arguments[_i];return breakpointNames.some(function(breakpoint){return breakpoint===_this.value})},CSSBreakpoint2})(),breakpoints={previous:new CSSBreakpoint(readCSSCurrentBreakpoint()),current:new CSSBreakpoint(readCSSCurrentBreakpoint())};function get(){return breakpoints}exports.get=get;function onChange(callback){callbacks.indexOf(callback)===-1&&callbacks.push(callback)}exports.onChange=onChange;function offChange(callback){var index=callbacks.indexOf(callback);index!==-1&&callbacks.splice(index,1)}exports.offChange=offChange;var currentMin=function(breakpointName){return breakpoints.current.min(breakpointName)};exports.min=currentMin;var currentMax=function(breakpointName){return breakpoints.current.max(breakpointName)};exports.max=currentMax;var currentRange=function(breakpointNameStart,breakpointNameEnd){return breakpoints.current.range(breakpointNameStart,breakpointNameEnd)};exports.range=currentRange;var currentIs=function(){for(var _a,breakpointNames=[],_i=0;_i<arguments.length;_i++)breakpointNames[_i]=arguments[_i];return(_a=breakpoints.current).is.apply(_a,breakpointNames)};exports.is=currentIs;var styleSheetList=document.styleSheets,mediaLists=Object.keys(styleSheetList).reduce(function(accumulator,key){var stylesheet=styleSheetList[key];if(!stylesheet.href||stylesheet.href.indexOf("theme")===-1)return accumulator;try{for(var cssRules=stylesheet.cssRules,i=0;i<cssRules.length;i++){var cssRule=stylesheet.cssRules[i];if(cssRule instanceof CSSMediaRule)for(var j=0;j<cssRules.length;j++){var cssMediaCssRule=cssRule.cssRules[j];cssMediaCssRule instanceof CSSStyleRule&&cssMediaCssRule.selectorText&&cssMediaCssRule.selectorText.indexOf("html::after")!==-1&&accumulator.push(cssRule.media)}}}catch(_a){return accumulator}return accumulator},[]);mediaLists.length>0?mediaLists.forEach(function(mediaList){var mql=window.matchMedia(mediaList.mediaText);mql.addListener(function(){var cssCurrentBreakpoint=readCSSCurrentBreakpoint();breakpoints.current.value!==cssCurrentBreakpoint&&(breakpoints.previous=breakpoints.current,breakpoints.current=ne
1w CSSBreakpoint(cssCurrentBreakpoint),callbacks.forEach(function(callback){return callback(breakpoints)}))})}):window.addEventListener("resize",function(){var cssCurrentBreakpoint=readCSSCurrentBreakpoint();breakpoints.current.value!==cssCurrentBreakpoint&&(breakpoints.previous=breakpoints.current,breakpoints.current=new CSSBreakpoint(cssCurrentBreakpoint),callbacks.forEach(function(callback){return callback(breakpoints)}))})}),24:(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return Accordion});var _pixelunion_animations__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(12);function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}var makeBlock=function(el){return{animation:Object(_pixelunion_animations__WEBPACK_IMPORTED_MODULE_0__.a)({el:el,state:"open",stateAttribute:"data-accordion-state",stateChangeAttribute:"data-accordion-animation"}),isOpen:!0}},setOpenHeight=function(el){el.style.setProperty("--menu-open-height","".concat(el.scrollHeight,"px"))},Accordion=(function(){function Accordion2(el){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_classCallCheck(this,Accordion2),this.el=el,this.options=_objectSpread({content:"[data-accordion-content]",animate:!0,onStart:function(){}},options),this.blocks=new Map}return _createClass(Accordion2,[{key:"closeAll",value:function(){var _this=this,options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.el.querySelectorAll(this.options.content).forEach(function(block){return _this.close(block,options)})}},{key:"openAll",value:function(){var _this2=this,options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.el.querySelectorAll(this.options.content).forEach(function(block){return _this2.open(block,options)})}},{key:"open",value:function(el){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this._open(el,options)}},{key:"close",value:function(el){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this._close(el,options)}},{key:"toggle",value:function(el){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_this$_getBlock=this._getBlock(el),isOpen=_this$_getBlock.isOpen;isOpen?this._close(el,options):this._open(el,options)}},{key:"unload",value:function(){this.blocks.forEach(function(_ref){var animation=_ref.animation;return animation.unload()})}},{key:"_getBlock",value:function(el){var block=el.matches(this.options.content)?el:el.querySelector(this.options.content);return this.blocks.has(block)||this.blocks.set(block,makeBlock(block)),this.blocks.get(block)}},{key:"_open",value:function(el,_ref2){var _ref2$onComplete=_ref2.onComplete,onComplete=_ref2$onComplete===void 0?function(){}:_ref2$onComplete,_ref2$force=_ref2.force,force=_ref2$force===void 0?!this.options.animate:_ref2$force,block=this._getBlock(el);block.isOpen||(block.isOpen=!0,this.options.onStart({el:block.animation.el,state:"open"}),block.animation.animateTo("open",{force:force,onStart:function(_ref3){var el2=_ref3.el;return setOpenHeight(el2)}}).then(function(state){state==="open"&&onComplete()}
1))}},{key:"_close",value:function(el,_ref4){var _ref4$onComplete=_ref4.onComplete,onComplete=_ref4$onComplete===void 0?function(){}:_ref4$onComplete,_ref4$force=_ref4.force,force=_ref4$force===void 0?!this.options.animate:_ref4$force,block=this._getBlock(el);block.isOpen&&(block.isOpen=!1,this.options.onStart({el:block.animation.el,state:"closed"}),setOpenHeight(block.animation.el),block.animation.animateTo("closed",{force:force}).then(function(state){state==="closed"&&onComplete()}))}}]),Accordion2})()}),86:(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"default",function(){return StaticHeader_StaticHeader});var jquery=__webpack_require__(0),jquery_default=__webpack_require__.n(jquery),script=__webpack_require__(1),script_default=__webpack_require__.n(script),animations_es=__webpack_require__(12),EventHandler=__webpack_require__(14),EventHandler_default=__webpack_require__.n(EventHandler),Forms=__webpack_require__(11),Layout=__webpack_require__(10),ScrollLock=__webpack_require__(20);function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}var StickyHeader_StickyHeader=(function(){function StickyHeader(options,settings){var _this=this;_classCallCheck(this,StickyHeader),this.body=document.querySelector("body"),this.header=document.querySelector("[data-site-header]"),this.menu=this.header.querySelector("[data-site-navigation]"),this.menuToggle=options.menuToggle,this.postMessage=options.postMessage,this.settings=settings,this.transitioning=!1,this.lastToggle=Date.now()-1e3,this.stickyClass="site-header-sticky",this.scrolledClass="site-header-sticky--scrolled",this.navOpenClass="site-header-nav--open",this._toggleStickyHeader=this._toggleStickyHeader.bind(this),this._toggleMenu=this._toggleMenu.bind(this),this.settings.sticky_header&&(this.body.classList.add(this.stickyClass),window.requestAnimationFrame(function(){window.getComputedStyle(_this.header).position.indexOf("sticky")>-1&&(_this.observer=new IntersectionObserver(function(entries){return _this._toggleStickyHeader(entries)}),_this.observer.observe(document.querySelector("[data-header-intersection-target]")),_this.toggleClick=function(event){event.preventDefault(),Layout.a.isGreaterThanBreakpoint("M")&&_this._toggleMenu()},_this.menuToggle.addEventListener("click",_this.toggleClick))}))}return _createClass(StickyHeader,[{key:"closeNavigation",value:function(){var _this2=this;this.transitioning||(this.menuToggle.classList.remove("active"),this.navTransitionOutEvent=function(){_this2.header.classList.remove(_this2.navOpenClass),_this2.transitioning=!1,_this2.menu.removeEventListener("transitionend",_this2.navTransitionOutEvent)},this.menu.addEventListener("transitionend",this.navTransitionOutEvent),this.transitioning=!0,this.menu.setAttribute("style","margin-top: -".concat(this.menu.getBoundingClientRect().height,"px;")),this.postMessage("nav:close-all"))}},{key:"openNavigation",value:function(){var _this3=this,onOpen=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};if(this.transitioning||this.header.classList.contains(this.navOpenClass)){onOpen();return}this.menuToggle.classList.add("active"),this.navTransitionInEvent=function(){_this3.transitioning=!1,_this3.menu.removeEventListener("transitionend",_this3.navTransitionInEvent),onOpen()},this.menu.addEventListener("transitionend",this.navTransitionInEvent),this.transitioning=!0,window.requestAnimationFrame(function(){_this3.header.classList.add(_this3.navOpenClass),window.requestAnimationFrame(function(){_this3.menu.setAttribute("style","margin-top: 0;")})})}},{key:"_toggleMenu",value:function(){this.header.classList.contains(this.navOpenClass)?this.closeNavigation():this.openNavigation()}},{key:"_toggleStickyHeader",value:function(entries){if(!(ScrollLock.a.isLocked||!Layout.a.isGreaterThanBreakpoint("M"))){var shouldShrink=!entries[0].isIntersecting;shouldShrink&&this.header.classList.contains(this.scrolledClass)||this.lastToggle+500>Date.now()||(this.lastToggle=Date.now(),shouldShrink?this._shrink():this._expand())}}},{key:"_shrink",value:function(){this.closeNavigation(),this.header.classList.add(this.scrolledClass)}},{key:"_expand",value:function(){this.openNavigation(),this.header.classList.remove(this.scrolledClass),this.menuToggle.classList.remove("active")}},{key:"unload",value:function(){this.body.classList.remove(this.stickyClass),this.body.classList.remove(this.scrolledClass),this.observer&&this.observer.disconnect(),this.menuToggle.removeEventListener("click",this.toggleClick)}}]),StickyHeader})(),theme_a11y=__webpack_require__(21),cjs=__webpack_require__(23),Accordion=__webpack_require__(24);function NavMobileSubMenus_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function NavMobileSubMenus_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function NavMobileSubMenus_createClass(Constructor,protoProps,staticProps){return protoProps&&NavMobileSubMenus_defineProperties(Constructor.prototype,protoProps),staticProps&&NavMobileSubMenus_defineProperties(Constructor,staticProps),Constructor}var NavMobileSubMenus_NavMobileSubMenus=(function(){function NavMobileSubMenus(el){NavMobileSubMenus_classCallCheck(this,NavMobileSubMenus),this.$el=jquery_default()(el),this.Accordion=new Accordion.a(el),this.closeAllSubmenus(),this.activeMenuClass="navmenu-link-parent-active",this.activeMenu=".".concat(this.activeMenuClass),this.linkClass="navmenu-link-parent",this.linkSelector=".".concat(this.linkClass),this.navTrigger="[data-navmenu-parent]",this.subMenu="[data-navmenu-submenu]",this.buttonClass="navmenu-button",this.buttonSelector=".".concat(this.buttonClass),this._bindEvents()}return NavMobileSubMenus_createClass(NavMobileSubMenus,[{key:"unload",value:function(){this.$el.off(".mobile-nav"),this.Accordion.unload()}},{key:"closeSubMenus",value:function(current){var _this=this,$current=jquery_default()(current);$current.find(this.activeMenu).each(function(index,el){_this._closeSubmenu(jquery_default()(el))})}},{key:"closeAllSubmenus",value:function(){this.Accordion.closeAll({force:!0})}},{key:"_bindEvents",value:function(){var _this2=this;this.$el.on("mousedown.mobile-nav",".navmenu-link",function(event){event.preventDefault()}),this.$el.on("click.mobile-nav","".concat(this.navTrigger," > .navmenu-link-parent"),this._linkClicked.bind(this)),this.$el.on("click.mobile-nav","".concat(this.navTrigger," > .navmenu-button"),function(event){event.preventDefault(),_this2._toggleSubmenu(event)})}},{key:"_linkClicked",value:function(event){var $target=jquery_default()(event.currentTarget);$target.hasClass(this.activeMenuClass)||(event.preventDefault(),this._openSubmenu($target))}},{key:"_toggleSubmenu",value:function(event){var $target=jquery_default()(event.currentTarget),$link=$target.hasClass(this.linkClass)?$target:$target.siblings(this.linkSelector).first();$link.hasClass(this.activeMenuClass)?this._closeSubmenu($target):this._openSubmenu($target)}},{key:"_openSubmenu",value:function($target){var $menu=$target.siblings(this.subMenu).first(),$link=$target.hasClass(this.linkClass)?$target:$target.siblings(this.linkSelector).first(),$button=$target.hasClass(this.buttonClass)?$target:$target.siblings(this.buttonSelector).first();$link.addClass(this.activeMenuClass);var onComplete=function(){$link.attr("aria-expanded",!0),$button.attr("aria-expanded",!0)};this.Accordion.open($menu[0],{onComplete:onComplete})}},{key:"_closeSubmenu",value:function($target){var $menu=$target.siblings(this.subMenu).first(),$link=$target.hasClass(this.linkClass)?$target:$target.siblings(this.linkSelector).first(),$button=$target.hasClass(this.buttonClass)?$target:$target.siblings(this.buttonSelector).first();$link.removeClass(this.activeMenuClass);var onComplete=function(){$link.attr("aria-expanded",!1),$button.attr("aria-expanded",!1)};this.Accordion.close($menu[0],{onComplete:onComplete}),this.closeSubMenus($menu)}}]),NavMobileSubMenus})();function NavMobile_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function NavMobile_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function NavMobile_createClass(Constructor,protoProps,staticProps){return protoProps&&NavMobile_defineProperties(Constructor.prototype,protoProps),staticProps&&NavMobile_defineProperties(Constructor,staticProps),Constructor}var NavMobile_NavMobile=(function(){function NavMobile(elements){var _this=this;NavMobile_classCallCheck(this,NavMobile),this.el=elements.$el[0],this.toggleOpen=elements.$toggleOpen[0],this.mobileNav=this.el.querySelector("[data-mobile-nav]"),this.navPanel=this.el.querySelector("[data-mobile-nav-panel]"),this.navOverlay=this.el.querySelector("[data-mobile-nav-overlay]"),this.toggleClose=this.el.querySelector("[data-mobile-nav-close]"),this.isOpen=!1,this.subMenus=null,this.events=new EventHandler_default.a,this.breakpointHandler=this.onBreakpointChange.bind(this),cjs.onChange(this.breakpointHandler),this.navPanelAnimation=Object(animations_es.a)({el:this.navPanel,state:"closed"}),this.navOverlayAnimation=Object(animations_es.a)({el:this.navOverlay,state:"closed"}),this.events.register(this.toggleOpen,"click",function(e){return _this._open(e)})}return NavMobile_createClass(NavMobile,[{key:"unload",value:function(){this._close(),this.events.unregisterAll(),cjs.offChange(this.breakpointHandler),ScrollLock.a.unlock()}},{key:"onBreakpointChange",value:function(){cjs.min("L")&&this.isOpen&&this._close()}},{key:"_open",value:function(e){var _this2=this;e.preventDefault(),!cjs.min("L")&&(ScrollLock.a.lock(this.navPanel),this.isOpen=!0,this.subMenus=new NavMobileSubMenus_NavMobileSubMenus(this.navPanel),this.mobileNav.dataset.open="true",this.navPanelAnimation.animateTo("open"),this.navOverlayAnimation.animateTo("open"),this.mobileNav.focus(),Ob
1ject(theme_a11y.b)(this.mobileNav),this.overlayClickEvent=this.events.register(this.navOverlay,"click",function(e2){return _this2._close(e2)}),this.toggleCloseEvent=this.events.register(this.toggleClose,"click",function(e2){return _this2._close(e2)}),this.overlayTouchEvent=this.events.register(this.navOverlay,"touchmove",function(e2){return e2.preventDefault()}),this.closeEsc=this.events.register(window,"keydown",function(e2){e2.key==="Escape"&&_this2._close(e2)}))}},{key:"_close",value:function(e){var _this3=this;e&&e.preventDefault(),this.navPanelAnimation.animateTo("closed"),this.navOverlayAnimation.animateTo("closed").then(function(){_this3.mobileNav.dataset.open="false",Object(theme_a11y.a)(_this3.mobileNav),_this3.toggleOpen.focus()}),ScrollLock.a.unlock(),this.isOpen=!1,this.subMenus&&(this.subMenus.closeSubMenus(this.navPanel),this.subMenus.closeAllSubmenus(),this.subMenus.unload()),this.events.unregister(this.overlayClickEvent),this.events.unregister(this.overlayTouchEvent),this.events.unregister(this.toggleCloseEvent),this.events.unregister(this.closeEsc)}}]),NavMobile})(),site_main_dimmer=__webpack_require__(29);function NavDesktopParent_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function NavDesktopParent_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function NavDesktopParent_createClass(Constructor,protoProps,staticProps){return protoProps&&NavDesktopParent_defineProperties(Constructor.prototype,protoProps),staticProps&&NavDesktopParent_defineProperties(Constructor,staticProps),Constructor}var NavDesktopParent_NavDesktopParent=(function(){function NavDesktopParent(el,options){var _this=this;NavDesktopParent_classCallCheck(this,NavDesktopParent),this.listitem=el,this.link=null,this.submenu=null,this._isOpen=!1,this.menu=null,this.parentMenu=options.parentMenu,this.closeSiblings=this.parentMenu.closeSiblings;for(var children=this.listitem.children,i=0;i<children.length;i++)children[i].classList.contains("navmenu-link")?this.link=children[i]:children[i].classList.contains("navmenu-submenu")&&(this.submenu=children[i]);this.animation=Object(animations_es.a)({el:this.submenu,state:"closed"}),this.open=function(){_this._open()},this.close=function(){_this._close()},this.closeEsc=function(e){e.key==="Escape"&&(_this.link.focus(),_this.close())},this.closeTimer=null,this.openTimer=null,this.mouseover=function(){clearTimeout(_this.closeTimer),_this.submenu.classList.contains("navmenu-depth-3")?_this.open():_this.openTimer=setTimeout(_this.open,200)},this.mouseout=function(){clearTimeout(_this.openTimer),_this.closeTimer=setTimeout(_this.close,400)},this.click=function(e){e.stopPropagation(),!(!e.target.classList.contains("navmenu-link-parent")||_this._isOpen)&&(e.preventDefault(),_this.open())},this.focusin=function(e){e.stopPropagation(),e.target.classList.contains("navmenu-link-parent")&&_this.closeSiblings(_this)},this.listitem.addEventListener("mouseover",this.mouseover),this.listitem.addEventListener("mouseout",this.mouseout),this.listitem.addEventListener("touchend",this.click),this.listitem.addEventListener("click",this.click),this.listitem.addEventListener("focusin",this.focusin),document.body.addEventListener("click",this.close),document.body.addEventListener("focusin",this.close)}return NavDesktopParent_createClass(NavDesktopParent,[{key:"forceOpen",value:function(){return this._open(!0)}},{key:"forceClose",value:function(){return this._close(!0)}},{key:"_open",value:function(){var _this2=this;this._isOpen||(this._isOpen=!0,site_main_dimmer.b(this),this.closeSiblings(this),window.addEventListener("keydown",this.closeEsc),this.menu||(this.menu=new NavDesktopMenu_NavDesktopMenu(this.submenu)),this.animation.animateTo("open",{hold:!0,onStart:function(_ref){for(var el=_ref.el,height=0,i=0;i<el.children.length;i++)height+=el.children[i].offsetHeight;var _window$getComputedSt=window.getComputedStyle(el),paddingTop=_window$getComputedSt.paddingTop,paddingBottom=_window$getComputedSt.paddingBottom;height+=parseInt(paddingTop,10),height+=parseInt(paddingBottom,10),_this2.listitem.style.setProperty("--menu-open-height","".concat(height,"px"));var bounds=_this2.submenu.getBoundingClientRect();bounds.right>document.documentElement.clientWidth&&_this2.listitem.classList.add("alternate-drop")}}).then(function(state){state==="open"&&_this2.link.setAttribute("aria-expanded",!0)}))}},{key:"_close",value:function(){var _this3=this,force=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._isOpen&&(this.menu&&(this.menu.unload(),this.menu=null),this._isOpen=!1,window.removeEventListener("keydown",this.closeEsc),site_main_dimmer.a(this),this.animation.animateTo("closed",{force:force}).then(function(state){state==="closed"&&(_this3.listitem.classList.remove("alternate-drop"),_this3.link.setAttribute("aria-expanded",!1),_this3.parentMenu.openSelectedBlock())}))}},{key:"unload",value:function(){this.forceClose(),this.listitem.removeEventListener("mouseover",this.mouseover),this.listitem.removeEventListener("mouseout",this.mouseout),this.listitem.removeEventListener("touchend",this.click),this.listitem.removeEventListener("click",this.click),this.listitem.removeEventListener("focusin",this.focusin),window.removeEventListener("keydown",this.closeEsc),document.body.removeEventListener("click",this.bodyClose),document.body.removeEventListener("focusin",this.focusInClose),this.animation.unload()}},{key:"isOpen",get:function(){return this._isOpen}}]),NavDesktopParent})();function _typeof(obj){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(obj2){return typeof obj2}:_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},_typeof(obj)}function NavDesktopMeganavParent_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function NavDesktopMeganavParent_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function NavDesktopMeganavParent_createClass(Constructor,protoProps,staticProps){return protoProps&&NavDesktopMeganavParent_defineProperties(Constructor.prototype,protoProps),staticProps&&NavDesktopMeganavParent_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if(typeof superClass!="function"&&superClass!==null)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){return call&&(_typeof(call)==="object"||typeof call=="function")?call:_assertThisInitialized(self)}function _assertThisInitialized(self){if(self===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}
1function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o2){return o2.__proto__||Object.getPrototypeOf(o2)},_getPrototypeOf(o)}var NavDesktopMeganavParent_NavDesktopMeganavParent=(function(_NavDesktopParent){_inherits(NavDesktopMeganavParent,_NavDesktopParent);var _super=_createSuper(NavDesktopMeganavParent);function NavDesktopMeganavParent(){return NavDesktopMeganavParent_classCallCheck(this,NavDesktopMeganavParent),_super.apply(this,arguments)}return NavDesktopMeganavParent_createClass(NavDesktopMeganavParent,[{key:"mouseout",value:function(){this.parentMenu.shouldBlockClose(this)&&(this.timer=setTimeout(this.close,400))}},{key:"_open",value:function(){var _this=this,force=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this._isOpen){this._isOpen=!0,window.addEventListener("keydown",this.closeEsc);var resolveOpenMeganavs=new Promise(function(resolve){var openMeganav=_this.parentMenu.openMeganav;if(openMeganav){_this.listitem.style.setProperty("--menu-closed-height","".concat(openMeganav.openHeight,"px"));var meganavGhostContent=openMeganav.content.cloneNode(!0),_openMeganav$content$=openMeganav.content.getBoundingClientRect(),width=_openMeganav$content$.width,left=_openMeganav$content$.left;meganavGhostContent.classList.add("meganav-ghost"),meganavGhostContent.style.left="".concat(left,"px"),meganavGhostContent.style.width="".concat(width,"px"),_this.submenu.appendChild(meganavGhostContent),site_main_dimmer.b(_this),_this.animation.animateTo("ghost",{force:!0}).then(function(){return _this.parentMenu.openMeganav.forceClose()}).then(resolve)}else _this.listitem.style.setProperty("--menu-closed-height",0),site_main_dimmer.b(_this),resolve()});resolveOpenMeganavs.then(function(){return _this.closeSiblings(_this)}).then(function(){return _this.animation.animateTo("open",{force:force,hold:!force,onStart:function(_ref){var el=_ref.el,wrapper=el.querySelector(".navmenu-meganav-wrapper"),maxHeight=parseInt(window.getComputedStyle(wrapper).maxHeight,10),height=isFinite(maxHeight)?Math.min(wrapper.scrollHeight,maxHeight):wrapper.scrollHeight;_this.listitem.style.setProperty("--menu-open-height","".concat(height,"px")),_this._openHeight=height}})}).then(function(){_this.link.setAttribute("aria-expanded",!0),_this.parentMenu.openMeganav=_this,_this.submenu.querySelectorAll(".meganav-ghost").forEach(function(ghost){ghost.parentNode.removeChild(ghost)})})}}},{key:"_close",value:function(){var _this2=this,force=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.parentMenu.openMeganav===this&&(this.parentMenu.openMeganav=null),this._isOpen=!1,window.removeEventListener("keydown",this.closeEsc),this.listitem.style.setProperty("--menu-closed-height",0),site_main_dimmer.a(this),this.animation.animateTo("closed",{force:force}).then(function(){_this2.link.setAttribute("aria-expanded",!1),_this2.parentMenu.openSelectedBlock()})}},{key:"content",get:function(){return this.submenu.querySelector(".navmenu-meganav-wrapper")}},{key:"openHeight",get:function(){return this._openHeight}},{key:"blockId",get:function(){return this.submenu.dataset.meganavId}}]),NavDesktopMeganavParent})(NavDesktopParent_NavDesktopParent);function NavDesktopMenu_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function NavDesktopMenu_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function NavDesktopMenu_createClass(Constructor,protoProps,staticProps){return protoProps&&NavDesktopMenu_defineProperties(Constructor.prototype,protoProps),staticProps&&NavDesktopMenu_defineProperties(Constructor,staticProps),Constructor}var NavDesktopMenu_NavDesktopMenu=(function(){function NavDesktopMenu(_ref){var _this=this,children=_ref.children;NavDesktopMenu_classCallCheck(this,NavDesktopMenu),this.parents=[],this.children=children,this._openMeganav=null,this._selectedBlock=null,this._megaNavs=null,this.closeSiblings=function(current){_this.parents.forEac
1h(function(parent){parent!==current&&parent.close()})};for(var i=0;i<this.children.length;i++){var child=this.children[i];child.dataset.navmenuMeganavTrigger!==void 0?this.parents.push(new NavDesktopMeganavParent_NavDesktopMeganavParent(child,{parentMenu:this})):child.dataset.navmenuParent!==void 0?this.parents.push(new NavDesktopParent_NavDesktopParent(child,{parentMenu:this})):child.classList.contains("navmenu-item")&&child.addEventListener("focusin",this.closeSiblings)}}return NavDesktopMenu_createClass(NavDesktopMenu,[{key:"selectBlock",value:function(id){var _this2=this;this._megaNavs||(this._megaNavs={},this.parents.filter(function(parent){return parent instanceof NavDesktopMeganavParent_NavDesktopMeganavParent}).forEach(function(megaNav){_this2._megaNavs[megaNav.blockId]=megaNav}));var newSelectedBlock=this._megaNavs[id];this._selectedBlock!==newSelectedBlock&&(this._selectedBlock&&this._selectedBlock.close(),this._selectedBlock=this._megaNavs[id],this._selectedBlock.forceOpen())}},{key:"openSelectedBlock",value:function(){this._selectedBlock&&this.parents.filter(function(parent){return parent.isOpen}).length===0&&this._selectedBlock.open()}},{key:"shouldBlockClose",value:function(block){return!(block===this._selectedBlock&&this.parents.filter(function(parent){return parent.isOpen}).length===1)}},{key:"closeAllMenus",value:function(){this._selectedBlock=null,this.parents.forEach(function(parent){return parent.close()})}},{key:"unload",value:function(){this.parents.forEach(function(parent){parent.unload()});for(var i=0;i<this.children.length;i++)this.children[i].removeEventListener("focusin",this.closeSiblings)}},{key:"openMeganav",get:function(){return this._openMeganav},set:function(meganav){this._openMeganav=meganav}}]),NavDesktopMenu})(),LiveSearch=__webpack_require__(38),SearchForm=__webpack_require__(25);function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function StaticHeader_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function StaticHeader_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function StaticHeader_createClass(Constructor,protoProps,staticProps){return protoProps&&StaticHeader_defineProperties(Constructor.prototype,protoProps),staticProps&&StaticHeader_defineProperties(Constructor,staticProps),Constructor}var StaticHeader_StaticHeader=(function(){function StaticHeader(section){var _this=this;StaticHeader_classCallCheck(this,StaticHeader),this.$el=jquery_default()(section.el),this.settings=section.data.settings,this.postMessage=section.postMessage,this.headerSearch=null,this.$scripts=jquery_default()("[data-scripts]"),this.$menuToggle=this.$el.find("[data-menu-toggle]"),this.$cartCount=this.$el.find("[data-header-cart-count]"),this.$searchField=this.$el.find("[data-live-search]"),this.$siteNavigation=this.$el.find("[data-site-navigation]"),this.$desktopNavigation=this.$siteNavigation.find("ul.navmenu-depth-1"),this.$headerTools=this.$siteNavigation.find("[data-header-actions]"),this.$promoContent=this.$el.find(".small-promo"),this.stickyHeader=new StickyHeader_StickyHeader({header:this.$el[0],menuToggle:this.$menuToggle[0],postMessage:this.postMessage},this.settings),this.navMobile=new NavMobile_NavMobile({$el:this.$el,$toggleOpen:this.$menuToggle}
1),this.navDesktop=new NavDesktopMenu_NavDesktopMenu(document.querySelector(".site-navigation > [data-navmenu]")),this.forms=new Forms.a(this.$el),this.events=new EventHandler_default.a,this.settings.live_search.enable?script_default()(this.$scripts.data("shopify-api-url"),function(){if(_this.headerSearch=new LiveSearch.a({$el:_this.$searchField,$header:_this.$el},_objectSpread(_objectSpread({},_this.settings.live_search),{},{use_dimmer:!0})),_this.mobileSearchButtonEl=section.el.querySelector("[data-mobile-search-button]"),_this.mobileSearchButtonEl){var disableAnimations="reduceAnimations"in document.body.dataset;_this.mobileSearchButtonAnimation=Object(animations_es.a)({el:_this.mobileSearchButtonEl,state:"visible"}),_this.events.register(_this.mobileSearchButtonEl,"click",function(e){e.stopPropagation(),_this.headerSearch.open(),_this.mobileSearchButtonAnimation.animateTo("hidden",{force:disableAnimations})}),_this.mobileSearchTakeoverCancel=section.el.querySelector("[data-live-search-takeover-cancel]"),_this.events.register(_this.mobileSearchTakeoverCancel,"click",function(){_this.mobileSearchButtonAnimation.animateTo("visible",{force:disableAnimations})})}}):this.headerSearch=new SearchForm.a(this.$searchField),jquery_default()(window).on("cartcount:update",function(event,data){_this.$cartCount.attr("data-header-cart-count",data.response.item_count).toggleClass("visible",data.response.item_count>0)});var setPromoHeightVariable=function(){if(_this.$promoContent.length>0){var height=_this.$promoContent.outerHeight();_this.$el[0].style.setProperty("--promo-height","".concat(height,"px"))}};jquery_default()(window).on("resize",function(){return setPromoHeightVariable()}),setPromoHeightVariable()}return StaticHeader_createClass(StaticHeader,[{key:"onSectionSelect",value:function(){this.stickyHeader.openNavigation()}},{key:"onSectionDeselect",value:function(){this._closeAllNavigation()}},{key:"onSectionUnload",value:function(){this.stickyHeader.unload(),this.navMobile.unload(),this.navDe
1sktop.unload(),this.forms.unload(),jquery_default()(window).off("cartcount:update"),this.headerSearch.unload(),this.events.unregisterAll()}},{key:"onSectionMessage",value:function(name){name==="nav:close-all"&&Layout.a.isGreaterThanBreakpoint("M")&&this._closeAllNavigation()}},{key:"onSectionBlockSelect",value:function(block){var _this2=this;Layout.a.isGreaterThanBreakpoint("M")&&this.stickyHeader.openNavigation(function(){_this2.navDesktop.selectBlock(block.id)})}},{key:"onSectionBlockDeselect",value:function(){this._closeAllNavigation()}},{key:"_closeAllNavigation",value:function(){this.navDesktop.closeAllMenus()}}]),StaticHeader})()})}]);
2//# sourceMappingURL=/cdn/shop/t/2/assets/StaticHeader.bundle.js.map?v=66575997470411509501600193831

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.