PageSourceSearch

https://obermeyer.com/cdn/shop/t/214/compiled_assets/scripts.js?v=65290859343989064361790608034

js obermeyer.com collected 2026-10-02 11:32:38 UTC 12,044 bytes, 2 lines download raw bytes

1(function(){var __sections__={};(function(){for(var i=0,s=document.getElementById("sections-script").getAttribute("data-sections").split(",");i<s.length;i++)__sections__[s[i]]=!0})(),(function(){if(__sections__.footer)try{let mobileToggler2=function(x2){x2.matches&&document.querySelectorAll(".mobile-toggler").forEach(item=>item.addEventListener("click",event=>{event.preventDefault();let toggler=event.currentTarget.classList;toggler.contains("toggled")?toggler.remove("toggled"):toggler.add("toggled")}))};var mobileToggler=mobileToggler2;class LocalizationForm extends HTMLElement{constructor(){super(),this.elements={input:this.querySelector('input[name="locale_code"], input[name="country_code"]'),button:this.querySelector("button"),panel:this.querySelector(".disclosure__list-wrapper")},this.elements.button.addEventListener("click",this.openSelector.bind(this)),this.elements.button.addEventListener("focusout",this.closeSelector.bind(this)),this.addEventListener("keyup",this.onContainerKeyUp.bind(this)),this.querySelectorAll("a").forEach(item=>item.addEventListener("click",this.onItemClick.bind(this)))}hidePanel(){this.elements.button.setAttribute("aria-expanded","false"),this.elements.panel.setAttribute("hidden",!0)}onContainerKeyUp(event){event.code.toUpperCase()==="ESCAPE"&&(this.hidePanel(),this.elements.button.focus())}onItemClick(event){event.preventDefault();const form=this.querySelector("form");this.elements.input.value=event.currentTarget.dataset.value,form&&form.submit()}openSelector(){this.elements.button.focus(),this.elements.panel.toggleAttribute("hidden"),this.elements.button.setAttribute("aria-expanded",(this.elements.button.getAttribute("aria-expanded")==="false").toString())}closeSelector(event){const shouldClose=event.relatedTarget&&event.relatedTarget.nodeName==="BUTTON";(event.relatedTarget===null||shouldClose)&&this.hidePanel()}}customElements.define("localization-form",LocalizationForm);var x=window.matchMedia("(max-width: 991px)");mobileToggler2(x),x.addListener(mobileToggler2)}catch(e){console.error(e)}})(),(function(){if(__sections__.header)try{let handleMouseOver2=function(event){event.currentTarget.querySelector(".mega-menu").setAttribute("open",""),mega_menu_overlay.style.display="block"},handleMouseOut2=function(event){event.currentTarget.querySelector(".mega-menu").removeAttribute("open",""),mega_menu_overlay.style.display="none"};var handleMouseOver=handleMouseOver2,handleMouseOut=handleMouseOut2;class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.getElementById("shopify-section-header"),this.headerBounds={},this.currentScrollTop=0,this.preventReveal=!1,this.predictiveSearch=this.querySelector("predictive-search"),this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver()}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(!(this.predictiveSearch&&this.predictiveSearch.isOpen)){if(scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.preventHide)return;requestAnimationFrame(this.hide.bind(this))}else scrollTop<this.currentScrollTop&&scrollTop>this.headerBounds.bottom?this.preventReveal?(window.clearTimeout(this.isScrolling),this.isScrolling=setTimeout(()=>{this.preventReveal=!1},66),requestAnimationFrame(this.hide.bind(this))):requestAnimationFrame(this.reveal.bind(this)):scrollTop<=this.headerBounds.top&&requestAnimationFrame(this.reset.bind(this));this.currentScrollTop=scrollTop}}hide(){this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.closeMenuDisclosure(),this.closeSearchModal()}reveal(){this.header.classList.add("shopify-section-header-sticky","animate"),this.header.classList.remove("shopify-section-header-hidden")}reset(){this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-sticky","animate")}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("header-menu"),this.disclosures.forEac
1h(disclosure=>disclosure.close())}closeSearchModal(){this.searchModal=this.searchModal||this.header.querySelector("details-modal"),this.searchModal.close(!1)}}customElements.define("sticky-header",StickyHeader);const mega_menu_overlay=document.querySelector("#mega-menu-overlay");document.querySelectorAll("header-menu").forEach(element=>{element.addEventListener("mouseover",handleMouseOver2),element.addEventListener("mouseout",handleMouseOut2)});const overlay=document.querySelector("#mega-menu-overlay"),searchIcon=document.querySelector("svg.modal__toggle-open.icon.icon-search"),closeIcon=document.querySelector("svg.icon.icon-close"),searchInput=document.querySelector("#Search-In-Modal");searchIcon.addEventListener("click",function(e){e.stopPropagation(),overlay.style.display="block"}),closeIcon.addEventListener("click",function(e){e.stopPropagation(),overlay.style.display="none"}),overlay.addEventListener("click",function(e){e.stopPropagation()}),searchInput.addEventListener("click",function(e){e.stopPropagation()})}catch(e){console.error(e)}})(),(function(){if(__sections__["main-product"])try{const stickyData=document.querySelector('[id^="ProductInfo-"]').dataset.sticky;if(stickyData==="true"){var sidebarEl=document.querySelector(".sidebar__inner"),sidebar=new StickySidebar(sidebarEl,{topSpacing:40,containerSelector:".product__info-wrapper",innerWrapperSelector:".sidebar__inner-padding",resizeSensor:!0,minWidth:992});sidebarEl.addEventListener("affix.bottom.stickySidebar",function(event){console.log("Sidebar has stuck bottom of viewport.")})}console.log("stickyData",stickyData);class Accordion{constructor(el){this.el=el,this.summary=el.querySelector("summary"),this.content=el.querySelector(".accordion__content"),this.animation=null,this.isClosing=!1,this.isExpanding=!1,this.summary.addEventListener("click",e=>this.onClick(e))}onClick(e){e.preventDefault(),this.el.style.overflow="hidden",this.isClosing||!this.el.open?this.open():(this.isExpanding||this.el.open)&&this.shrink()}shrink(){this.isClosing=!0;const startHeight=`${this.el.offsetHeight}px`,endHeight=`${this.summary.offsetHeight}px`;this.animation&&this.animation.cancel(),this.animation=this.el.animate({height:[startHeight,endHeight]},{duration:400,easing:"ease-out"}),this.animation.onfinish=()=>this.onAnimationFinish(!1),this.animation.oncancel=()=>this.isClosing=!1}open(){this.el.style.height=`${this.el.offsetHeight}px`,this.el.open=!0,window.requestAnimationFrame(()=>this.expand())}expand(){this.isExpanding=!0;const startHeight=`${this.el.offsetHeight}px`,endHeight=`${this.summary.offsetHeight+this.content.offsetHeight}px`;this.animation&&this.animation.cancel(),this.animation=this.el.animate({height:[startHeight,endHeight]},{duration:400,easing:"ease-out"}),this.animation.onfinish=()=>this.onAnimationFinish(!0),this.animation.oncancel=()=>this.isExpanding=!1}onAnimationFinish(open){this.el.open=open,this.animation=null,this.isClosing=!1,this.isExpanding=!1,this.el.style.height=this.el.style.overflow="",stickyData==="true"&&sidebar.updateSticky()}}document.querySelectorAll("details.accordion__details").forEach(el=>{new Accordion(el)})}catch(e){console.error(e)}})(),(function(){if(__sections__["product-recommendations"])try{class ProductRecommendations extends HTMLElement{constructor(){super();const handleIntersection=(entries,observer)=>{entries[0].isIntersecting&&(observer.unobserve(this),fetch(this.dataset.url).then(response=>response.text()).then(text=>{const html=document.createElement("div");html.innerHTML=text;const recommendations=html.querySelector("product-recommendations");recommendations&&recommendations.innerHTML.trim().length&&(this.innerHTML=recommendations.innerHTML,this.initSliders()),html.querySelector(".grid__item")&&this.classList.add("product-recommendations--loaded")}).catch(e=>{console.error(e)}))};new IntersectionObserver(handleIntersection.bind(this),{rootMargin:"0px 0px 200px 0px"}).observe(this)}initSliders(){const sliders=this.querySelectorAll(".card-information__variants")}initVariantImageClicks(){this.querySelectorAll(".card-information__variant-image").forEach(variantImgWrapper=>{variantImgWrapper.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation();const imgEl=this.querySelector("img");if(!imgEl)return;const clickedVariantId=this.getAttribute("data-variant-id"),productC
1ontainer=this.closest(".card-wrapper");if(!productContainer)return;productContainer.querySelectorAll(".card-information__variant-image").forEach(w=>{w.classList.remove("current")}),this.classList.add("current"),productContainer.querySelectorAll(".visually-hidden .variant-btn").forEach(btn=>{btn.getAttribute("data-variant-id")===clickedVariantId&&btn.click()});const featured=imgEl.getAttribute("data-featured"),featuredSrcset=imgEl.getAttribute("data-featuredsrcset"),hover=imgEl.getAttribute("data-hover"),hoversrcset=imgEl.getAttribute("data-hoversrcset"),alt=imgEl.getAttribute("alt"),cardLink=this.closest("a.card-link");if(!cardLink)return;const inner=cardLink.querySelector(".card__inner");if(!inner)return;const mainImg=inner.querySelector("img.card-mainimg"),hoverImg=inner.querySelector("img.card-hoverimg");mainImg&&featured&&(mainImg.src=featured,featuredSrcset&&mainImg.setAttribute("srcset",featuredSrcset),alt&&(mainImg.alt=alt)),hoverImg&&hover&&(hoverImg.src=hover,hoversrcset&&hoverImg.setAttribute("srcset",hoversrcset));const href=cardLink.getAttribute("href");if(href){const[base,query]=href.split("?"),tail=query?"&"+query:"",newHref=base+"?variant="+clickedVariantId+tail;cardLink.setAttribute("href",newHref)}},!0)})}}customElements.define("product-recommendations",ProductRecommendations)}catch(e){console.error(e)}})(),(function(){if(__sections__["secondary-page-proprogram"])try{class Accordion{constructor(el){this.el=el,this.summary=el.querySelector("summary"),this.content=el.querySelector(".accordion__content"),this.animation=null,this.isClosing=!1,this.isExpanding=!1,this.summary.addEventListener("click",e=>this.onClick(e))}onClick(e){e.preventDefault(),this.el.style.overflow="hidden",this.isClosing||!this.el.open?this.open():(this.isExpanding||this.el.open)&&this.shrink()}shrink(){this.isClosing=!0;const startHeight=`${this.el.offsetHeight}px`,endHeight=`${this.summary.offsetHeight}px`;this.animation&&this.animation.cancel(),this.animation=this.el.animate({height:[startHeight,endHeight]},{duration:400,easing:"ease-out"}),this.animation.onfinish=()=>this.onAnimationFinish(!1),this.animation.oncancel=()=>this.isClosing=!1}open(){this.el.style.height=`${this.el.offsetHeight}px`,this.el.open=!0,window.requestAnimationFrame(()=>this.expand())}expand(){this.isExpanding=!0;const startHeight=`${this.el.offsetHeight}px`,endHeight=`${this.summary.offsetHeight+this.content.offsetHeight}px`;this.animation&&this.animation.cancel(),this.animation=this.el.animate({height:[startHeight,endHeight]},{duration:400,easing:"ease-out"}),this.animation.onfinish=()=>this.onAnimationFinish(!0),this.animation.oncancel=()=>this.isExpanding=!1}onAnimationFinish(open){this.el.open=open,this.animation=null,this.isClosing=!1,this.isExpanding=!1,this.el.style.height=this.el.style.overflow="",open?this.el.closest(".page-width").classList.add("accordion-open"):this.el.closest(".page-width").classList.remove("accordion-open")}}document.querySelectorAll("details.accordion__details").forEach(el=>{new Accordion(el)})}catch(e){console.error(e)}})()})();
2//# sourceMappingURL=/cdn/shop/t/214/compiled_assets/scripts.js.map?v=65290859343989064361790608034

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.