PageSourceSearch

https://www.qwetch.com/cdn/shop/t/650/assets/component-product-bundle-item.js?v=35510206780602828911790070583

js qwetch.com collected 2026-09-26 05:57:59 UTC 1,986 bytes, 1 lines download raw bytes

1!function(){class t extends HTMLElement{constructor(){super(),this.bindEvents=this.bindEvents.bind(this),this.toggleBundleState=this.toggleBundleState.bind(this)}connectedCallback(){this.isAddedToForm=!1,this.ProductBundleItem=this,this.variantId=this.ProductBundleItem.dataset.variantId,this.variantPrice=parseInt(this.ProductBundleItem.dataset.variantPrice),this.targetForm=document.querySelector(`#${this.ProductBundleItem.dataset.targetFormId}`),this.bundleAdd=this.ProductBundleItem.querySelector(".js-bundle-item-button"),this.targetForm&&this.bundleAdd&&this.bindEvents()}disconnectedCallback(){this.unbindEvents()}bindEvents(){this.bundleAdd.addEventListener("click",this.toggleBundleState)}unbindEvents(){this.bundleAdd.removeEventListener("click",this.toggleBundleState)}toggleBundleState(){const t=this.targetForm.querySelector(`input[value="${this.variantId}"]`);this.isAddedToForm?(this.bundleAdd.classList.toggle("selected"),t.disabled=!0,this.isAddedToForm=!1):(this.bundleAdd.classList.toggle("selected"),t.disabled=!1,this.isAddedToForm=!0),this.updateProductPrice()}updateProductPrice(){if(this.productPriceEl=this.targetForm.querySelector(".js-total-product-price"),this.stickyPriceEl=document.querySelector(".js-sticky-add-to-cart-button-total-product-price"),this.productTotalPrice=parseInt(this.productPriceEl.dataset.totalPrice),this.isAddedToForm){const t=parseInt(this.productTotalPrice)+parseInt(this.variantPrice);this.productPriceEl.dataset.totalPrice=t,this.productPriceEl.innerHTML=Shopify.formatMoney(t,Shopify.moneyFormat),this.stickyPriceEl&&(this.stickyPriceEl.innerHTML=Shopify.formatMoney(t,Shopify.moneyFormat))}else{const t=parseInt(this.productTotalPrice)-parseInt(this.variantPrice);this.productPriceEl.dataset.totalPrice=t,this.productPriceEl.innerHTML=Shopify.formatMoney(t,Shopify.moneyFormat),this.stickyPriceEl&&(this.stickyPriceEl.innerHTML=Shopify.formatMoney(t,Shopify.moneyFormat))}}}customElements.define("w3-product-bundle-item",t)}();

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.