PageSourceSearch

https://www.lazylama.nl/cdn/shop/t/4/assets/shipping-progress.js?v=109265322786303261541790150677

js lazylama.nl collected 2026-10-07 18:56:12 UTC 1,618 bytes, 2 lines download raw bytes

1import{StandardEvents}from"@shopify/events";function money(cents,currency){const locale=document.documentElement.lang||"nl";try{return new Intl.NumberFormat(locale,{style:"currency",currency}).format(cents/100).replace(/ /g,"")}catch{return(cents/100).toFixed(2)}}function render(total,currency){for(const bar of document.querySelectorAll("[data-shipping-progress]")){const threshold=Number(bar.getAttribute("data-threshold"));if(!threshold)continue;const missing=threshold-total,text=bar.querySelector("[data-shipping-progress-text]"),fill=bar.querySelector("[data-shipping-progress-bar]");text&&(text.textContent=missing>0?`Nog ${money(missing,currency)} tot gratis verzending`:"Je hebt gratis verzending");const amount=bar.querySelector("[data-shipping-progress-amount]");amount&&amount.toggleAttribute("hidden",missing<=0),fill?.style.setProperty("--progress",`${Math.min(Math.round(total/threshold*100),100)}%`)}}document.addEventListener(StandardEvents.cartLinesUpdate,event=>{event.promise?.then(async({detail})=>{const cart=detail?.cart?.cost?.totalAmount!=null?{total:Math.round(Number(detail.cart.cost.totalAmount.amount)*100),currency:detail.cart.cost.totalAmount.currencyCode}:await fetch(window.Shopify.routes.root+"cart.js",{headers:{Accept:"application/json"}}).then(response=>response.json()).then(json=>({total:json.total_price,currency:json.currency}));render(cart.total,cart.currency)}).catch(error=>{error?.name!=="AbortError"&&console.warn("[shipping-progress] Cart update rejected:",error)})});
2//# sourceMappingURL=/cdn/shop/t/4/assets/shipping-progress.js.map?v=109265322786303261541790150677

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.