1function hideSecretMenu(){const hiddenGlobalMenu=document.querySelector("[data-hidden-menu]")?.getAttribute("data-hidden-menu"),hiddenCatNavMenu=document.querySelector("[data-hidden-cat-nav-menu]")?.getAttribute("data-hidden-cat-nav-menu"),showHiddenMenu=sessionStorage.getItem("showHiddenMenu");hiddenGlobalMenu!==null&&hiddenCatNavMenu!==null&&[...document.querySelectorAll(".subLink")].forEach(item=>{(item.id===hiddenGlobalMenu||item.id===hiddenCatNavMenu||hiddenCatNavMenu.includes(item.id))&&item.classList.add("hidden-menu"),showHiddenMenu&&item.classList.remove("hidden-menu")})}function focusSearchField(){const searchIcon=document.querySelector(".search-icon"),searchField=document.querySelector("#search-popdown .live-search-form .live-search-form-field");searchIcon&&searchField&&searchIcon.addEventListener("click",()=>{searchField.focus()})}document.addEventListener("DOMContentLoaded",debounce(focusSearchField));function debounce(func,wait=10,immediate=!0){let timeout;return function(){let context=this,args=arguments,later=function(){timeout=null,immediate||func.apply(context,args)},callNow=immediate&&!timeout;clearTimeout(timeout),timeout=setTimeout(later,wait),callNow&&func.apply(context,args)}}function handleFloatingFooterContent(){const chatWidgetSelectors=["#gorgias-chat-container","#gorgias-web-messenger-container",".gorgias-chat-widget","#attentive_creative","#attentive_overlay"],klaviyoLauncherSelectors=[".kl-hub-launcher",'[class*="HubLauncher-floatingWidget"]'],klaviyoHubOpenSelector=".kl-hub-drawer--opened, .kl-hub-modal-veil--opened";function isKlaviyoHubOpen(){return location.hash.indexOf("k-hub")!==-1||!!document.querySelector(klaviyoHubOpenSelector)}function setWidgetVisibility(widgets,shouldShow){widgets.forEach(widget=>{if(!(widget.matches("[data-floating-ui-portal]")||widget.querySelector(klaviyoHubOpenSelector))){if(shouldShow){widget.style.removeProperty("display");return}widget.style.setProperty("display","none","important")}})}function setFloatingWidgetsVisibility(shouldShow){chatWidgetSelectors.forEach(selector=>{setWidgetVisibility(document.querySelectorAll(selector),shouldShow)}),!(!shouldShow&&isKlaviyoHubOpen())&&klaviyoLauncherSelectors.forEach(selector=>{setWidgetVisibility(document.querySelectorAll(selector),shouldShow)})}document.addEventListener("theme:scroll:lock",function(){document.dispatchEvent(new CustomEvent("chat:hide",{bubbles:!0}))}),document.addEventListener("theme:scroll:unlock",function(){document.dispatchEvent(new CustomEvent("chat:show",{bubbles:!0}))}),document.addEventListener("chat:hide",function(){setFloatingWidgetsVisibility(!1);const cookieBanner=document.getElementById("site-cb-footer");cookieBanner&&cookieBanner.classList.add("hidden-bar")}),document.addEventListener("chat:show",function(){setFloatingWidgetsVisibility(!0);const cookieBanner=document.getElementById("site-cb-footer");cookieBanner&&cookieBanner.classList.remove("hidden-bar")})}handleFloatingFooterContent();function hideFloatingWidgetsOverFullPagePromos(){const overlayClass="fullpage-promo-open",overlaySelectors=["#attentive_overlay iframe","#attentive_creative iframe",'[data-testid="klaviyo-form-View"]',".klaviyo-form iframe",'[class*="kl-private-reset-css"]'];let overlayOpen=!1;function isThemeFloatingWidget(el){return!!(el.closest("#gorgias-chat-container")||el.closest(".kl-hub-launcher-container")||el.closest('[class*="HubLauncher-floatingWidget"]')||el.closest("[data-floating-ui-portal]")||el.closest("button.kl-hub-launcher"))}function overlayCoversPage(){const minWidth=window.innerWidth*.75,minHeight=window.innerHeight*.5;return overlaySelectors.some(selector=>[...document.querySelectorAll(selector)].some(el=>{if(isThemeFloatingWidget(el))return!1;const rect=el.getBoundingClientRect();if(rect.width<minWidth||rect.height<minHeight||rect.bottom<=0||rect.right<=0||rect.top>=window.innerHeight||rect.left>=window.innerWidth)return!1;const style=window.getComputedStyle(el);if(style.display==="none"||style.visibility==="hidden"||style.pointerEvents==="none"||Number(style.opacity)===0||el.getAttribute("aria-hidden")==="true")return!1;let ancestor=el.parentElement;for(;ancestor&&ancestor!==document.documentElement;){const ancestorStyle=window.getComputedStyle(ancestor);if(ancestorStyle.display==="none"||ancestorStyle.visibility==="hidden"||Number(ancestorStyle.opacity)===0)return!1;ancestor=ancestor.parentElement}return!0}))}function hasOverlayCandidate(){return overlaySelectors.some(selector=>document.querySelector(selector))}
1function syncOverlayWidgets(){if(!hasOverlayCandidate()){if(!overlayOpen)return;overlayOpen=!1,document.documentElement.classList.remove(overlayClass);return}const shouldHide=overlayCoversPage();shouldHide!==overlayOpen&&(overlayOpen=shouldHide,document.documentElement.classList.toggle(overlayClass,shouldHide))}document.addEventListener("theme:resize:width",syncOverlayWidgets),document.addEventListener("theme:scroll",syncOverlayWidgets),setInterval(syncOverlayWidgets,400),syncOverlayWidgets()}hideFloatingWidgetsOverFullPagePromos();function handleKlaviyoHeartOnCartOpen(){const klaviyoSelector="[data-floating-ui-portal]";let klaviyoElement=null,retryTimeout;function findKlaviyoElement(){const element=document.querySelector(klaviyoSelector);return element&&!element.closest('[data-drawer="drawer-cart"]')?(klaviyoElement=element,element):null}function toggleKlaviyoVisibility(show){const element=findKlaviyoElement();return element?(element.style.display=show?"":"none",clearTimeout(retryTimeout),!0):!1}function retryToggle(show,attempt=1){toggleKlaviyoVisibility(show)||attempt>=10||(retryTimeout=setTimeout(()=>retryToggle(show,attempt+1),200))}function handleDrawerOpen(){klaviyoElement=null,toggleKlaviyoVisibility(!1)||retryToggle(!1)}function handleDrawerClose(){klaviyoElement=null,toggleKlaviyoVisibility(!0)||retryToggle(!0)}function init(){const cartDrawer=document.getElementById("drawer-cart");return cartDrawer?(cartDrawer.addEventListener("theme:drawer:open",handleDrawerOpen),cartDrawer.addEventListener("theme:drawer:close",handleDrawerClose),!0):!1}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{init()||setTimeout(init,100)}):init()||setTimeout(init,100)}handleKlaviyoHeartOnCartOpen();function handleHamburgerNav(){const getHamburgerDrawer=()=>document.querySelector('.header__drawer[data-drawer="hamburger"]'),titleStack=[],renderTitle=()=>{const el=document.querySelector("[data-hamburger-title]");el&&(el.textContent=titleStack[titleStack.length-1]||"")};document.addEventListener("click",e=>{const opener=e.target.closest("[data-sliderule-open]");if(!opener)return;const title=opener.querySelector(".sliderow__title");titleStack.push(title?title.textContent.trim():""),renderTitle()}),document.addEventListener("theme:sliderule:close",()=>{titleStack.length=0,renderTitle()}),document.addEventListener("click",e=>{if(!e.target.closest("[data-hamburger-back]"))return;e.preventDefault();const drawer=getHamburgerDrawer();if(!drawer)return;const visible=drawer.querySelectorAll("[data-sliderule].is-visible");if(!visible.length)return;let deepest=null,maxDepth=-1;visible.forEach(panel=>{let depth=0,node=panel.parentElement;for(;node;)node.matches&&node.matches("[data-sliderule]")&&depth++,node=node.parentElement;depth>maxDepth&&(maxDepth=depth,deepest=panel)});const closeBtn=deepest&&deepest.querySelector(`[data-sliderule-close="${deepest.id}"]`);closeBtn&&(closeBtn.click(),titleStack.pop(),renderTitle())});let pendingNavClose=0;const closeNavNow=()=>{pendingNavClose=0;const drawer=getHamburgerDrawer();!drawer||!drawer.classList.contains("drawer--visible")||drawer.dispatchEvent(new CustomEvent("theme:drawer:close:silent",{bubbles:!1}))};document.addEventListener("click",e=>{const trigger=e.target.closest('[data-drawer-toggle="drawer-cart"], [data-popdown-toggle="search-popdown-mobile"]');if(!trigger)return;const drawer=getHamburgerDrawer(),navOpen=!!drawer&&drawer.classList.contains("drawer--visible"),popdownId=trigger.getAttribute("data-popdown-toggle"),popdown=popdownId?document.getElementById(popdownId):null;if(popdown&&popdown.classList.contains("search-popdown-mobile--from-nav")!==navOpen&&(popdown.classList.toggle("search-popdown-mobile--from-nav",navOpen),popdown.offsetWidth),!navOpen)return;if(trigger.matches('[data-drawer-toggle="drawer-cart"]')&&trigger.getAttribute("aria-expanded")==="true"){clearTimeout(pendingNavClose),closeNavNow();return}clearTimeout(pendingNavClose),pendingNavClose=setTimeout(closeNavNow,250)},!0),document.addEventListener("theme:scroll:unlock",()=>{pendingNavClose&&(clearTimeout(pendingNavClose),closeNavNow())})}handleHamburgerNav();function portalThemeOverlays(){function portal(selector){const overlays=document.getElementById("theme-overlays"),node=document.querySelector(selector);!overlays||!node||node.parentElement===overlays||overlays.appendChild(node)}function portalById(selector){const overlays=document.getElementById("theme-overlays");overlays&&document.querySelectorAll(selector).forEach(node=>{node.parentElement!==overlays&&(node.id&&overlays.querySelectorAll(`#${CSS.escape(node.id)}`).forEach(stale=>stale.remove()),overlays.appendChild(node))})}function moveAll(){portal('[data-drawer="drawer-cart"]'),portal('.header__drawer[data-drawer="hamburger"]'),portalById("#vue-zoom-wrapper"),portalById("#sticky-PDPaddtocart")}function schedule(){requestAnimationFrame(moveAll)}document.readyState==="complete"?moveAll():window.addEventListener("load",moveAll,{once:!0}),document.addEventListener("shopify:section:load",schedule),document.addEventListener("pdp:section:updated",schedule)}
1portalThemeOverlays(),(function(){const secretMenuContent=document.querySelector("[data-hidden-menu]");secretMenuContent!==null&&secretMenuContent.addEventListener("DOMContentLoaded",hideSecretMenu())})();function handleVideoHero(){[{containerSelector:".mp4-container",playButtonClass:".play-button",pauseButtonClass:".pause-button",videoClass:".video-hero"},{containerSelector:".mp4-container-mobile",playButtonClass:".play-button-mobile",pauseButtonClass:".pause-button-mobile",videoClass:".video-hero-mobile"}].forEach(cfg=>{document.querySelectorAll(cfg.containerSelector).forEach(section=>{const playButton=section.querySelector(cfg.playButtonClass),pauseButton=section.querySelector(cfg.pauseButtonClass),video=section.querySelector(cfg.videoClass);if(!playButton||!pauseButton||!video)return;function setupControls(){playButton.onclick=function(){video.play(),pauseButton.classList.remove("is-hidden"),playButton.classList.add("is-hidden"),pauseButton.focus()},pauseButton.onclick=function(){video.pause(),pauseButton.classList.add("is-hidden"),playButton.classList.remove("is-hidden"),playButton.focus()}}video.readyState>=3?setupControls():video.addEventListener("loadeddata",setupControls,{once:!0})})})}document.addEventListener("DOMContentLoaded",debounce(handleVideoHero)),(function(){"use strict";const initializedSections=new WeakSet;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",initAllSections):initAllSections();function initAllSections(){document.querySelectorAll('[data-section-type="custom-content"]').forEach(sectionEl=>{sectionEl.querySelector("[data-overflow-wrapper]")&&initSectionHeightManager(sectionEl)})}function initSectionHeightManager(thisSectionEl){if(initializedSections.has(thisSectionEl))return;initializedSections.add(thisSectionEl);const thisSectionId=thisSectionEl.id;if(!thisSectionEl){console.warn(`[section-double] Section element not found: ${thisSectionId}`);return}const isMobileDevice=()=>window.siteGlobals?.device==="mobile-size"||document.body?.classList.contains("mobile-size")||window.innerWidth<=(window.layoutMobileMaxWidth||767),configScript=thisSectionEl.querySelector("[data-section-refresh-config]");let sectionId=thisSectionId,desktopHeight=thisSectionEl.dataset.desktopHeight?parseInt(thisSectionEl.dataset.desktopHeight):null,mobileHeight=thisSectionEl.dataset.mobileHeight?parseInt(thisSectionEl.dataset.mobileHeight):null;if(configScript)try{const cfg=JSON.parse(configScript.textContent);sectionId=cfg.sectionId||thisSectionId,desktopHeight=cfg.desktopHeight||desktopHeight,mobileHeight=cfg.mobileHeight||mobileHeight}catch(parseError){console.error("[section-double] Failed to parse config:",parseError)}function computeTokenHeight(sectionElement){const wrapper=sectionElement.querySelector("[data-overflow-wrapper]");if(!wrapper)return 0;const tokenAttr=isMobileDevice()?wrapper.getAttribute("data-height-mobile")||"":wrapper.getAttribute("data-height-desktop")||"",classToken=Array.from(wrapper.classList||[]).find(c=>c.indexOf("use_")===0)||"",token=tokenAttr||classToken;if(!token)return 0;const viewportH=window.innerHeight||document.documentElement.clientHeight||0,t=token.replace("use_",""),px=t.match(/^pixels_(\d{2,4})$/);if(px)return parseInt(px[1]);switch(t){case"screen_full":return viewportH;case"screen_three_quarters":return Math.round(viewportH*.75);case"screen_two_thirds":return Math.round(viewportH*2/3);case"screen_one_half":return Math.round(viewportH*.5);case"screen_one_third":return Math.round(viewportH/3);case"screen_one_fifth":return Math.round(viewportH/5);default:return 0}}function applyHeightOverrides(){const sectionElement=document.getElementById(sectionId)||thisSectionEl;if(!sectionElement){console.warn("[section-double] Section element not found during height override");return}const wrappers=sectionElement.querySelectorAll("[data-overflow-wrapper]");if(!wrappers.length)return;const isMobile=isMobileDevice();let currentDesktopHeight=desktopHeight,currentMobileHeight=mobileHeight;const refreshedConfigScript=sectionElement.querySelector("[data-section-refresh-config]");if(refreshedConfigScript)try{const refreshedCfg=JSON.parse(refreshedConfigScript.textContent);currentDesktopHeight=refreshedCfg.desktopHeight||desktopHeight,currentMobileHeight=refreshedCfg.mobileHeight||mobileHeight}catch(e){console.error("[section-double] Failed to parse refreshed config:",e)}let targetHeight=isMobile?currentMobileHeight:currentDesktopHeight,maxHeightDesktopStr="",maxHeightMobileStr="";wrappers.length>0&&(maxHeightDesktopStr=wrappers[0].getAttribute("data-max-height-desktop")||"",maxHeightMobileStr=wrappers[0].getAttribute("data-max-height-mobile")||"");const maxHeightDesktop=maxHeightDesktopStr&&maxHeightDesktopStr!==""&&parseInt(maxHeightDesktopStr)||0,maxHeightMobile=maxHeightMobileStr&&maxHeightMobileStr!==""&&parseInt(maxHeightMobileStr)||0,hasMaxHeight=isMobile&&maxHeightMobile>0||!isMobile&&maxHeightDesktop>0;
1if(hasMaxHeight&&(!targetHeight||targetHeight<=0)){wrappers.forEach(wrapper=>{wrapper&&wrapper.style&&(wrapper.style.removeProperty("height"),wrapper.style.removeProperty("overflow"))});return}(!targetHeight||targetHeight<=0)&&(targetHeight=computeTokenHeight(sectionElement)),!(!targetHeight||targetHeight<=0||targetHeight>5e3)&&wrappers.forEach(wrapper=>{wrapper&&wrapper.style&&(hasMaxHeight?(wrapper.style.removeProperty("height"),wrapper.style.removeProperty("overflow"),wrapper.querySelectorAll(".brick__block").forEach(block=>{block&&block.style&&(block.style.removeProperty("height"),block.style.removeProperty("min-height"),block.style.removeProperty("overflow"))})):isMobile?(wrapper.style.removeProperty("height"),wrapper.style.removeProperty("overflow"),wrapper.querySelectorAll(".brick__block").forEach(block=>{block&&block.style&&(block.style.setProperty("height",targetHeight+"px","important"),block.style.setProperty("min-height",targetHeight+"px","important"),block.style.setProperty("overflow","hidden","important"))})):(wrapper.style.setProperty("height",targetHeight+"px","important"),wrapper.style.setProperty("overflow","hidden","important"))),hasMaxHeight||wrapper.querySelectorAll("[data-overflow-frame], [data-overflow-background]").forEach(el=>{el&&el.style&&!el.closest(".overlapping-block")&&el.style.setProperty("min-height",Math.max(targetHeight-2,0)+"px","important")})})}let resizeTimeout;const debouncedApply=()=>{clearTimeout(resizeTimeout),resizeTimeout=setTimeout(()=>{applyHeightOverrides(),window.AOS&&window.theme?.settings?.animate_scroll&&window.AOS.refresh()},100)},handleSectionLoad=e=>{e&&e.target&&e.target.id===thisSectionId&&debouncedApply()},handleSectionUpdated=e=>{if(e.detail&&e.detail.sectionId===thisSectionId){const retryHeightApplication=(attempt=1,maxAttempts=5)=>{const delay=attempt*100;setTimeout(()=>{const sectionElement=document.getElementById(thisSectionId);(sectionElement?sectionElement.querySelectorAll("[data-overflow-wrapper]"):[]).length>0?debouncedApply():attempt<maxAttempts?retryHeightApplication(attempt+1,maxAttempts):console.warn("[section-double] Failed to find wrappers after "+maxAttempts+" attempts")},delay)};retryHeightApplication()}},handleSectionSelect=e=>{e&&e.target&&e.target.id===thisSectionId&&debouncedApply()},handleBeforeUnload=()=>{clearTimeout(resizeTimeout)},cleanup=()=>{clearTimeout(resizeTimeout),window.removeEventListener("resize",debouncedApply),document.removeEventListener("theme:resize",debouncedApply),document.removeEventListener("shopify:section:load",handleSectionLoad),document.removeEventListener("pdp:section:updated",handleSectionUpdated),document.removeEventListener("shopify:section:select",handleSectionSelect),document.removeEventListener("load",debouncedApply,!0),window.removeEventListener("beforeunload",handleBeforeUnload),initializedSections.delete(thisSectionEl)};applyHeightOverrides(),window.addEventListener("resize",debouncedApply),document.addEventListener("theme:resize",debouncedApply),document.addEventListener("shopify:section:load",handleSectionLoad),document.addEventListener("pdp:section:updated",handleSectionUpdated),document.addEventListener("shopify:section:select",handleSectionSelect),document.addEventListener("load",debouncedApply,!0),window.addEventListener("beforeunload",handleBeforeUnload),document.addEventListener("shopify:section:unload",e=>{e&&e.target&&e.target.id===thisSectionId&&cleanup()})}})(); 2//# sourceMappingURL=/cdn/shop/t/435/assets/custom.js.map?v=121066704775138176801790606636
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.