PageSourceSearch

https://ciokarrua.it/cdn/shop/t/1/assets/cio-free-shipping.js?v=19607502388924841751782903202

js ciokarrua.it collected 2026-10-10 01:51:28 UTC 2,617 bytes, 2 lines download raw bytes

1(function(){"use strict";if(window.__cioFsBound)return;window.__cioFsBound=!0;const moneyFormat=(cents,currency)=>`\u20AC${(cents/100).toFixed(2).replace(".",",")}`;async function refresh(){const bars=document.querySelectorAll("[data-cio-fs]");if(!bars.length)return;let cart;try{cart=await(await fetch("/cart.js",{headers:{Accept:"application/json"}})).json()}catch{return}bars.forEach(bar=>{const threshold=parseInt(bar.dataset.threshold,10),currency=bar.dataset.currency||"EUR",region=bar.dataset.region||"",regionSuffix=region?` ${region}`:"",reachedMsg=bar.dataset.reachedMsg||"Spedizione gratuita inclusa",tAlmost=bar.dataset.tAlmost||"Ci sei quasi!",tAdd=bar.dataset.tAdd||"Aggiungi",tForfree=bar.dataset.tForfree||"per la spedizione gratuita",tFree=bar.dataset.tFree||"Spedizione gratuita",tFrom=bar.dataset.tFrom||"da",total=cart.total_price||0,remaining=threshold-total,reached=remaining<=0,pct=Math.min(100,Math.round(total/threshold*100)),textEl=bar.querySelector("[data-cio-fs-text]"),amountEl=bar.querySelector("[data-cio-fs-amount]"),fillEl=bar.querySelector("[data-cio-fs-fill]");bar.classList.contains("cio-fs--cart")||bar.classList.contains("cio-fs--pdp")?reached?(bar.classList.add("cio-fs--reached"),textEl&&(textEl.innerHTML=`<span class="cio-fs__lead">${reachedMsg.replace(/🎉\s*|✓\s*/,"")}</span>`),fillEl&&(fillEl.style.width="100%")):(bar.classList.remove("cio-fs--reached"),textEl&&(textEl.innerHTML=`<span class="cio-fs__lead">${tAlmost}</span> ${tAdd} <strong data-cio-fs-amount>${moneyFormat(remaining,currency)}</strong> ${tForfree}${regionSuffix}`),fillEl&&(fillEl.style.width=pct+"%")):total===0?textEl&&(textEl.textContent=`\u{1F69A} ${tFree}${regionSuffix} ${tFrom} ${moneyFormat(threshold,currency)}`):reached?textEl&&(textEl.textContent=`\u2713 ${reachedMsg}`):amountEl&&(amountEl.textContent=moneyFormat(remaining,currency))})}document.addEventListener("cart:updated",refresh),document.addEventListener("cart:refresh",refresh),document.addEventListener("cart-update",refresh),document.addEventListener("submit",e=>{e.target&&(e.target.action||"").includes("/cart/")&&setTimeout(refresh,400)});const origFetch=window.fetch;window.fetch=async function(input,init){const url=typeof input=="string"?input:input&&input.url,isCartMut=url&&/\/cart\/(add|change|update|clear)/.test(url),res=await origFetch.apply(this,arguments);return isCartMut&&res.ok&&setTimeout(refresh,100),res},document.readyState==="loading"?document.addEventListener("DOMContentLoaded",refresh):refresh()})();
2//# sourceMappingURL=/cdn/shop/t/1/assets/cio-free-shipping.js.map?v=19607502388924841751782903202

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.