PageSourceSearch

https://masmi.at/cdn/shop/t/9/assets/free-shipping.js?v=113073439716314863111772556462

js masmi.at collected 2026-10-05 18:14:20 UTC 1,831 bytes, 2 lines download raw bytes

1if(!customElements.get("free-shipping-progress-bar")){let currentPercent=0;class FreeShippingProgressBar extends HTMLElement{constructor(){super()}connectedCallback(){this.updateStatus()}updateStatus(){const remainingAmountText=this.querySelector(".free-shipping__info-remaining strong"),cartTotal=parseInt(this.dataset.cartTotal,10)||0,freeShippingThreshold=Math.round(parseInt(this.dataset.shippingAmount,10)*(Shopify.currency.rate||1)),remainingInfo=this.querySelector(".free-shipping__info-remaining"),eligibilityInfo=this.querySelector(".free-shipping__info-eligibility"),isEligible=cartTotal>=freeShippingThreshold;if(remainingAmountText&&!isEligible){const remainingAmount=freeShippingThreshold-cartTotal,currencyFormat=window.theme.settings.money_with_currency_format||"${{amount}}";remainingAmountText.innerHTML=formatMoney(remainingAmount,currencyFormat)}remainingInfo.style.display=isEligible?"none":"block",eligibilityInfo.style.display=isEligible?"block":"none";const progressPercentage=isEligible?1:cartTotal/freeShippingThreshold;this.animateProgressBar(progressPercentage)}animateProgressBar(progressPercentage){const targetPercent=progressPercentage*100,startPercent=currentPercent,duration=200,startTime=performance.now(),ease=t=>t*(2-t),animate=time=>{const elapsed=time-startTime,progress=Math.min(elapsed/duration,1),easedProgress=ease(progress);currentPercent=startPercent+(targetPercent-startPercent)*easedProgress,this.style.setProperty("--percent",`${currentPercent}%`),progress<1?requestAnimationFrame(animate):(currentPercent=targetPercent,this.style.setProperty("--percent",`${currentPercent}%`))};requestAnimationFrame(animate)}}customElements.define("free-shipping-progress-bar",FreeShippingProgressBar)}
2//# sourceMappingURL=/cdn/shop/t/9/assets/free-shipping.js.map?v=113073439716314863111772556462

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.