PageSourceSearch

https://berghaus.com/cdn/shop/t/17/assets/global.js?v=116810155149566948261788950573

js berghaus.com collected 2026-09-24 19:10:30 UTC 2,673 bytes, 1 lines download raw bytes

1import"./modulepreload-polyfill.js";import{t as c}from"./_analytics.js";import"./analytics-events.js";function d(){Shopify.designMode&&(document.addEventListener("shopify:section:select",t=>{const{sectionId:o}=t.detail,e=t.target.querySelector(`[data-section-id='${o}']`);e==null||e.dispatchEvent(new CustomEvent("section:select")),e||console.error('Make sure you added [data-section-id="{{ section.id }}"] to the section')}),document.addEventListener("shopify:section:deselect",t=>{const{sectionId:o}=t.detail,e=t.target.querySelector(`[data-section-id='${o}']`);e==null||e.dispatchEvent(new CustomEvent("section:deselect")),e||console.error('Make sure you added [data-section-id="{{ section.id }}"] to the section')}),document.addEventListener("shopify:block:select",t=>{const{sectionId:o}=t.detail,e=t.target.closest(`[data-section-id='${o}']`);e==null||e.dispatchEvent(new CustomEvent("block:select",{detail:{block:t.target}})),e||console.error('Make sure you added [data-section-id="{{ section.id }}"] to the section')}),document.addEventListener("shopify:block:deselect",t=>{const{sectionId:o}=t.detail,e=t.target.closest(`[data-section-id='${o}']`);e==null||e.dispatchEvent(new CustomEvent("block:deselect",{detail:{block:t.target,sectionId:o}})),e||console.error('Make sure you added [data-section-id="{{ section.id }}"] to the section')}))}function r(){customElements.get("show-more-button")||customElements.define("show-more-button",class extends HTMLElement{constructor(){super(),this.querySelector("button").addEventListener("click",e=>{this.expandShowMore(e);const s=e.target.closest(".parent-display").querySelector(".show-more-item");s&&!s.classList.contains("hidden")&&s.querySelector("input")&&s.querySelector("input").focus()})}expandShowMore(o){console.log("expand show more");const e=o.target.closest('[id^="Show-More-"]').closest(".parent-display");e.querySelector(".parent-wrap"),this.querySelectorAll(".label-text").forEach(s=>s.classList.toggle("hidden")),e.querySelectorAll(".show-more-item").forEach(s=>s.classList.toggle("hidden")),this.querySelector(".label-show-less")||this.classList.add("hidden")}})}function a(){if(customElements.get("modal-opener"))return;class t extends HTMLElement{constructor(){super();const e=this.querySelector("button");e&&e.addEventListener("click",()=>{var n;const s=document.querySelector(this.getAttribute("data-modal"));if(s&&(s.show(e),e.setAttribute("aria-expanded",!0),((n=e.dataset)==null?void 0:n.open)==="size-guide")){const i={item_id:(window.location.pathname||"").split("/").pop()||"unknown",location:"pdp",user_action:"open"};c("size_guides",i)}})}}customElements.define("modal-opener",t)}d();r();a();

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.