PageSourceSearch

https://www.harbourchandler.ca/cdn/shop/t/75/assets/bss-custom.js?v=180427376027235044021787868871

js harbourchandler.ca collected 2026-10-03 21:33:10 UTC 3,322 bytes, 2 lines download raw bytes

1document.addEventListener("on:facet-filters:updated",e=>{window.dispatchEvent(new Event("scroll"))}),document.addEventListener("BSS:openQuickBuy",e=>{setTimeout(()=>{updateVariant();const variantId=+document.querySelector('quick-add-drawer [action="/cart/add"] [name="id"]')?.value;if(!variantId){if(variant=BSS_B2B.storage.variantStorage.get(variantId),variant?.appliedCP){const cpPrices={price:variant.bssB2BPriceAfterCP,comparePrice:variant.compare_at_price??variant.price,originalPrice:variant.price};document.querySelectorAll("quick-add-drawer .product-info__price>span").forEach(priceElement=>{BSS_B2B.cp?.utils?.product?.showPriceBase(priceElement,cpPrices)})}changeVariantQV()}},1e3)});function changeVariantQV(){document.querySelector("variant-picker").addEventListener("on:variant:change",e=>{updateVariant();let{variant:variant2}=e.detail;if(variant2=BSS_B2B.storage.variantStorage.get(variant2.id),variant2?.appliedCP){const cpPrices={price:variant2.bssB2BPriceAfterCP,comparePrice:variant2.compare_at_price??variant2.price,originalPrice:variant2.price};document.querySelectorAll("quick-add-drawer .product-info__price>span").forEach(priceElement=>{BSS_B2B.cp?.utils?.product?.showPriceBase(priceElement,cpPrices)})}})}function updateVariant(){for(const[a,product]of BSS_B2B.storage.productStorage.store)product.variants.forEac
1h((variant2,ind)=>{const appliedRule=BSS_B2B.cp.utils.common.getCustomerAppliedRules().find(rule=>BSS_B2B.cp.utils.common.checkProduct(rule,{...product,currentVariant:variant2}));if(appliedRule){product.variants[ind].appliedCP=appliedRule;const{discount_type,discount_value}=appliedRule,modifiedPrice=BSS_B2B.cp.utils.common.calculateDiscount(variant2.price,discount_type,Number(discount_value));modifiedPrice!==variant2.price?(product.variants[ind].bssB2BPriceAfterCP=modifiedPrice,product.variants[ind].bssB2bShowPriceKey=BSS_B2B.utils.getModuleKeyByPriority(variant2.bssB2bShowPriceKey,"cp"),product.bssB2bShowPriceKey=BSS_B2B.utils.getModuleKeyByPriority(product.bssB2bShowPriceKey,"cp")):(delete variant2.appliedCP,delete variant2.bssB2BPriceAfterCP,variant2.bssB2bShowPriceKey==="cp"&&delete variant2.bssB2bShowPriceKey,product.bssB2bShowPriceKey==="cp"&&delete product.bssB2bShowPriceKey),BSS_B2B.storage.variantStorage.set(variant2.id,variant2),BSS_B2B.storage.productStorage.set(product.id,product)}})}(function(){var FILTER="custom:cart/checkout_ele";function domDepth(el){for(var depth=0;el.parentElement;)el=el.parentElement,depth+=1;return depth}function pickRealCheckoutButton(nodes){var all=Array.prototype.slice.call(nodes||[]);if(all.length<2)return all;var candidates=all.filter(function(el){return!el.hasAttribute("bss-b2b-checkout-loader")});if(!candidates.length)return all;for(var best=candidates[0],bestDepth=domDepth(best),i=1;i<candidates.length;i+=1){var depth=domDepth(candidates[i]);depth<bestDepth&&(best=candidates[i],bestDepth=depth)}return[best]}function register(){window.bssB2BHooks=window.bssB2BHooks||{actions:{},filters:{}},window.bssB2BHooks.filters=window.bssB2BHooks.filters||{},window.bssB2BHooks.filters[FILTER]=pickRealCheckoutButton}register(),document.addEventListener("DOMContentLoaded",register),window.addEventListener("load",register)})();
2//# sourceMappingURL=/cdn/shop/t/75/assets/bss-custom.js.map?v=180427376027235044021787868871

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.