PageSourceSearch

https://www.londontownusa.com/cdn/shop/t/919/assets/rebuy-cart-bridge.js?v=79952788609261957841790025488

js londontownusa.com collected 2026-10-03 20:24:13 UTC 2,939 bytes, 2 lines download raw bytes

1(function(){"use strict";var DEBOUNCE_MS=250,MAX_DEBOUNCE_WAIT=600,SYNC_COOLDOWN_MS=1e3,READY_TIMEOUT_MS=1500,READY_POLL_MS=150,SDK_BACKOFF_MS=3e4,debounceTimer=null,burstStartedAt=0,waiting=!1,selfDispatch=!1,lastSyncAt=0,trailingTimer=null,backoffUntil=0;window.__rebuyCartBridgeVersion="2.2";function now(){return Date.now()}function rebuyPresent(){return!!window.Rebuy}function smartCartPresent(){try{return!!(window.Rebuy&&window.Rebuy.SmartCart)}catch(e){return!1}}function smartCartReady(){try{return!!(window.Rebuy&&window.Rebuy.SmartCart&&window.Rebuy.SmartCart.status==="ready")}catch(e){return!1}}function syncCart(){var since=now()-lastSyncAt;if(since<SYNC_COOLDOWN_MS)return trailingTimer||(trailingTimer=setTimeout(function(){trailingTimer=null,syncCart()},SYNC_COOLDOWN_MS-since)),!1;lastSyncAt=now();try{window.Rebuy&&window.Rebuy.Cart&&typeof window.Rebuy.Cart.fetchCart=="function"&&window.Rebuy.Cart.fetchCart()}catch(e){}return!0}function showSmartCart(){try{return window.Rebuy.SmartCart.show(),!0}catch(e){return nativeOpen(),!1}}function nativeRefresh(){var since=now()-lastSyncAt;if(since<SYNC_COOLDOWN_MS)return trailingTimer||(trailingTimer=setTimeout(function(){trailingTimer=null,nativeRefresh()},SYNC_COOLDOWN_MS-since)),!1;lastSyncAt=now(),selfDispatch=!0;try{document.dispatchEvent(new CustomEvent("cart:build"))}finally{setTimeout(function(){selfDispatch=!1},0)}return!0}function nativeShow(){selfDispatch=!0;try{document.dispatchEvent(new CustomEvent("cart:open"))}finally{setTimeout(function(){selfDispatch=!1},0)}}function nativeOpen(){nativeRefresh(),nativeShow()}function reveal(){if(smartCartReady()){syncCart(),showSmartCart();return}if(!rebuyPresent()){nativeOpen();return}if(!smartCartPresent()){nativeOpen();return}if(now()<backoffUntil){nativeOpen();return}if(!waiting){waiting=!0;var start=now();(function check(){if(smartCartReady()){waiting=!1,syncCart(),showSmartCart();return}if(now()-start>=READY_TIMEOUT_MS){waiting=!1,backoffUntil=now()+SDK_BACKOFF_MS,nativeOpen();return}setTimeout(check,READY_POLL_MS)})()}}function onCartEvent(){if(!selfDispatch){var t=now();debounceTimer||(burstStartedAt=t),clearTimeout(debounceTimer);var delay=Math.min(DEBOUNCE_MS,Math.max(0,MAX_DEBOUNCE_WAIT-(t-burstStartedAt)));debounceTimer=setTimeout(function(){debounceTimer=null,reveal()},delay)}}["ajaxProduct:added","cart:refresh","rebuy:cart.add","rebuy.add"].forEach(function(ev){document.addEventListener(ev,onCartEvent)}),document.addEventListener("click",function(e){var trigger=e.target.closest&&e.target.closest(".js-drawer-open-cart, .cart-link, [data-rebuy-cart-toggle]");if(trigger&&rebuyPresent()&&smartCartPresent()){if(e.preventDefault(),e.stopImmediatePropagation(),smartCartReady()){syncCart(),showSmartCart();return}if(now()<backoffUntil){nativeOpen();return}waiting||reveal()}},!0)})();
2//# sourceMappingURL=/cdn/shop/t/919/assets/rebuy-cart-bridge.js.map?v=79952788609261957841790025488

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.