PageSourceSearch

https://ugearsmodels.com/cdn/shop/t/12/assets/card-product-colors.js?v=70646752982001002211787233662

js ugearsmodels.com collected 2026-10-03 22:11:38 UTC 2,206 bytes, 2 lines download raw bytes

1customElements.get("card-product-colors")||customElements.define("card-product-colors",class extends HTMLElement{constructor(){super()}connectedCallback(){window.loadedBackgroundColorSwatches||loadColorSwatches(),this.card=this.closest(".card"),this.primaryImage=this.card.querySelector(".media img:first-child"),this.onColorHoverHandler=this.onColorHover.bind(this),this.onColorClickHandler=this.onColorClick.bind(this),this.onMouseLeaveHandler=this.onMouseLeave.bind(this),this.querySelectorAll(".card__product-color-list__button").forEach(color=>{color.addEventListener("mouseenter",this.onColorHoverHandler),color.addEventListener("focus",this.onColorHoverHandler),color.addEventListener("click",this.onColorClickHandler)}),this.addEventListener("mouseleave",this.onMouseLeaveHandler)}disconnectedCallback(){this.querySelectorAll("a").forEach(color=>{color.removeEventListener("mouseenter",this.onColorHoverHandler),color.removeEventListener("focus",this.onColorHoverHandler),color.removeEventListener("click",this.onColorClickHandler)}),this.removeEventListener("mouseleave",this.onMouseLeaveHandler)}onColorHover(e){const currentSelectedColor=this.querySelector(".selected");if(currentSelectedColor&&currentSelectedColor.classList.remove("selected"),e.target.classList.add("selected"),e.target.dataset.srcset){if(this.primaryImage&&(this.primaryImage.srcset=e.target.dataset.srcset,!e.target.classList.contains("loaded"))){e.target.classList.add("loaded");const parentImageElement=this.primaryImage.parentElement;parentImageElement.classList.add("skeleton-box"),setTimeout(()=>{parentImageElement.classList.remove("skeleton-box")},1e3)}this.card.classList.contains("ignore-second-image")||this.card.classList.add("ignore-second-image")}const cardLink=this.card.querySelector(".card__heading a");cardLink&&cardLink.setAttribute("href",e.target.href);const quickViewButton=this.card.querySelector(".quick-button--view button");quickViewButton&&(quickViewButton.dataset.productUrl=e.target.href)}onColorClick(e){e.preventDefault()}onMouseLeave(e){this.card.classList.remove("ignore-second-image")}});
2//# sourceMappingURL=/cdn/shop/t/12/assets/card-product-colors.js.map?v=70646752982001002211787233662

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.