PageSourceSearch

https://berghaus.com/cdn/shop/t/17/assets/product-swatch-label.js?v=181331924974610657011788950672

js berghaus.com collected 2026-09-24 19:11:00 UTC 1,387 bytes, 1 lines download raw bytes

1var i=Object.defineProperty;var r=(a,t,e)=>t in a?i(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var n=(a,t,e)=>r(a,typeof t!="symbol"?t+"":t,e);class c extends HTMLElement{constructor(){super();n(this,"swatchLabel");n(this,"swatchesId");n(this,"swatchesEl");n(this,"swatch");n(this,"originalLabel");this.originalLabel=this.innerText}connectedCallback(){this.swatchLabel=this,this.swatchesId=this.dataset.swatchesId,this.swatchesId&&(this.swatchesEl=this.parentElement.parentElement.querySelector(`#${this.swatchesId}`),this.swatchesEl&&(this.swatchEventHandlers=[],this.swatchesEl.querySelectorAll([".swatch-button",".swatch-link"]).forEach(e=>{const s=this.onSwatchHover.bind(this,e),h=this.onSwatchLeave.bind(this);e.addEventListener("mouseenter",s),e.addEventListener("mouseleave",h),e.addEventListener("focusin",s),e.addEventListener("focusout",h),this.swatchEventHandlers.push({swatch:e,hoverHandler:s,leaveHandler:h})})))}onSwatchHover(e){const s=e.getAttribute("data-swatch-name");s&&(this.swatchLabel.innerText=s)}onSwatchLeave(){this.swatchLabel.innerText=this.originalLabel}disconnectedCallback(){this.swatchesEl&&(this.swatchEventHandlers.forEach(({swatch:e,hoverHandler:s,leaveHandler:h})=>{e.removeEventListener("mouseenter",s),e.removeEventListener("mouseleave",h)}),this.swatchEventHandlers=[])}}window.customElements.define("product-swatch-label",c);

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.