PageSourceSearch

https://leonisa.ec/cdn/shop/t/8/assets/free-shipping-bar.js?v=106317480169417026071762439507

js leonisa.ec collected 2026-10-07 22:23:15 UTC 1,724 bytes, 2 lines download raw bytes

1(function(){async function updateShippingBar(){try{const sectionHtml=await(await fetch("/cart?section_id=header-offers-bar")).text(),newWrapper=new DOMParser().parseFromString(sectionHtml,"text/html").querySelector(".free-shipping-bar-wrapper");newWrapper&&(document.querySelector(".free-shipping-bar-wrapper").outerHTML=newWrapper.outerHTML,initializeShippingBar())}catch(error){console.error("Error updating shipping bar:",error)}}function initializeShippingBar(){const container=document.querySelector(".shipping-bar-container");if(!container)return;const openBar=container.querySelector(".float-shipping-bar"),closeButton=openBar.querySelector(".float-close-bt");function showOpen(){openBar.classList.remove("hidden"),sessionStorage.setItem("barState","open")}function showMinimized(){openBar.classList.add("hidden"),sessionStorage.setItem("barState","minimized")}closeButton.addEventListener("click",showMinimized);let barState=sessionStorage.getItem("barState");barState||(sessionStorage.getItem("sessionStarted")?barState="minimized":(sessionStorage.setItem("sessionStarted","true"),barState="open"),sessionStorage.setItem("barState",barState)),barState==="open"?showOpen():showMinimized()}function observeCartChanges(){new PerformanceObserver(list=>{list.getEntries().forEach(entry=>{const isValidRequestType=["xmlhttprequest","fetch"].includes(entry.initiatorType),isCartChangeRequest=/\/cart\//.test(entry.name);isValidRequestType&&isCartChangeRequest&&updateShippingBar()})}).observe({entryTypes:["resource"]})}document.addEventListener("DOMContentLoaded",()=>{initializeShippingBar(),observeCartChanges()})})();
2//# sourceMappingURL=/cdn/shop/t/8/assets/free-shipping-bar.js.map?v=106317480169417026071762439507

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.