PageSourceSearch

https://businessandpleasureco.com/cdn/shop/t/348/assets/rebuy-cart-sync.js?v=35089556665804451731789843626

js businessandpleasureco.com collected 2026-09-25 15:02:13 UTC 1,618 bytes, 2 lines download raw bytes

1import{CartAddEvent}from"@theme/events";function createViewportCenterFlySource(){const el=document.createElement("div");return el.style.cssText="position:fixed;width:72px;height:72px;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none;z-index:2;",document.body.appendChild(el),el}async function runFlyToCartFromRebuy(imageUrl){console.group("_debug - runFlyToCartFromRebuy"),console.log("imageUrl: ",imageUrl),console.groupEnd();const cartIcon=document.querySelector(".header-actions__cart-icon");if(!cartIcon)return;await customElements.whenDefined("fly-to-cart");const sourceEl=createViewportCenterFlySource(),flyToCartElement=document.createElement("fly-to-cart");flyToCartElement.classList.add("fly-to-cart--rebuy"),flyToCartElement.style.setProperty("background-image",`url(${imageUrl})`),flyToCartElement.style.setProperty("--start-opacity","0"),flyToCartElement.source=sourceEl,flyToCartElement.destination=cartIcon,document.body.appendChild(flyToCartElement),requestAnimationFrame(()=>{setTimeout(()=>{sourceEl.remove()},2500)})}function handleRebuyCartAdd(event){const itemCountStr=document.querySelector(".cart-bubble__text-count")?.innerHTML,itemCount=itemCountStr?parseInt(itemCountStr)+1:1;if(document.dispatchEvent(new CartAddEvent({},"rebuy-cart-sync",{itemCount})),!Theme.addToCartAnimation)return;const imageUrl=event.detail.product.image?.src;if(imageUrl)try{runFlyToCartFromRebuy(imageUrl)}catch(error){console.error(error)}}document.addEventListener("rebuy.add",handleRebuyCartAdd);
2//# sourceMappingURL=/cdn/shop/t/348/assets/rebuy-cart-sync.js.map?v=35089556665804451731789843626

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.