PageSourceSearch

https://strivectin.com/cdn/shop/t/42/assets/component_product_card.js?v=170790127600043006091752518652

js strivectin.com collected 2026-10-02 08:39:55 UTC 2,618 bytes, 2 lines download raw bytes

1if(!customElements.get("product-card")){class ComponentProductCard extends HTMLElement{constructor(){super(),this.quickViewBtn=this.querySelector(".quick-view-trigger"),this.swatches=this.querySelector(".inline-swatch-group"),this.quickViewBtn&&this.quickViewBtn.addEventListener("click",this.openQuickView.bind(this)),this.swatches&&this.swatches.querySelectorAll("input").forEach(input=>{input.addEventListener("change",this.onSwatchChange.bind(this))});let imageContainer=this.querySelector(".image-container");if(imageContainer&&imageContainer.querySelector(".hover-img")){let hover=!1;this.addEventListener("mouseleave",e=>{hover&&(hover=!1,imageContainer.classList.remove("hover"));let hoverVideo=imageContainer.querySelector(".hover-img video");hoverVideo&&(hoverVideo.pause(),hoverVideo.currentTime=0)}),this.addEventListener("mousemove",e=>{let bounds=imageContainer.getBoundingClientRect();e.y>bounds.top&&e.y<bounds.bottom&&e.x>bounds.left&&e.x<bounds.right?hover||(hover=!0,imageContainer.classList.add("hover")):hover&&(hover=!1,imageContainer.classList.remove("hover"));let hoverVideo=imageContainer.querySelector(".hover-img video");hoverVideo&&(hover?hoverVideo.play():(hoverVideo.pause(),hoverVideo.currentTime=0))})}}openQuickView(e){e.preventDefault(),$s.showLoadingOverlay();var qvUrl=this.quickViewBtn.dataset.url;$s.get({url:qvUrl,success:html=>{var parser=new DOMParser,doc=parser.parseFromString(html,"text/html"),section=doc.querySelector(".product-main-element").closest(".shopify-section");$s.openModal(section,"product-quick-view"),$s.globalEval(section)},always:html=>{$s.hideLoadingOverlay()}})}onSwatchChange(){var checkedOption=this.querySelector(".inline-swatch-group input:checked"),variantImg=checkedOption.dataset.variantImg,variantUrl=checkedOption.dataset.variantUrl,priceFinal=checkedOption.dataset.priceFinal,priceCompare=checkedOption.dataset.priceCompare;this.querySelectorAll(".product-card-url").forEach(function(e){e.setAttribute("href",variantUrl)}),this.quickViewBtn&&this.quickViewBtn.setAttribute("data-url",variantUrl),this.querySelector(".final").innerHTML=priceFinal,this.querySelector(".from")&&(this.querySelector(".from").style.display="none"),priceCompare?(this.querySelector(".compare").innerHTML=priceCompare,this.querySelector(".compare").style.display="block"):this.querySelector(".compare").style.display="none",variantImg&&this.querySelector(".img.main").setAttribute("srcset",variantImg)}}customElements.define("product-card",ComponentProductCard)}
2//# sourceMappingURL=/cdn/shop/t/42/assets/component_product_card.js.map?v=170790127600043006091752518652

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.