PageSourceSearch

https://loisjeanstore.com/cdn/shop/t/80/assets/cart-redesign.js?v=169462880703280479961789377905

js loisjeanstore.com collected 2026-09-28 05:37:44 UTC 3,180 bytes, 2 lines download raw bytes

1(function(){"use strict";var bezig=!1;function verversen(){document.documentElement.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0})),document.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0}))}function post(pad,gegevens){return fetch(pad,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(gegevens)}).then(function(antwoord){return antwoord.json().then(function(data){if(!antwoord.ok)throw new Error(data.description||data.message||"mislukt");return data})})}var wortel=window.theme&&window.theme.routes||{},TOEVOEGEN=wortel.cart_add_url||"/cart/add",WIJZIGEN=wortel.cart_change_url||"/cart/change";function wisselMaat(keuze){if(!bezig){var nieuw=keuze.value,sleutel=keuze.getAttribute("data-key"),aantal=parseInt(keuze.getAttribute("data-qty"),10)||1;!nieuw||!sleutel||(bezig=!0,keuze.disabled=!0,post(TOEVOEGEN+".js",{id:nieuw,quantity:aantal}).then(function(){return post(WIJZIGEN+".js",{id:sleutel,quantity:0})}).then(function(){verversen()}).catch(function(fout){console.error("maat wijzigen mislukt:",fout),verversen()}).finally(function(){bezig=!1,keuze.disabled=!1}))}}function voegToe(knop){if(!bezig){var houder=knop.closest(".cart-up__keuze"),keuze=houder?houder.querySelector("[data-cart-up-variant]"):null,variant=keuze?keuze.value:knop.getAttribute("data-cart-up-add");variant&&(bezig=!0,knop.setAttribute("aria-busy","true"),post(TOEVOEGEN+".js",{id:variant,quantity:1}).then(function(){verversen()}).catch(function(fout){console.error("toevoegen mislukt:",fout),verversen()}).finally(function(){bezig=!1,knop.removeAttribute("aria-busy")}))}}document.addEventListener("change",function(g){var keuze=g.target.closest?g.target.closest("[data-cart-swap]"):null;keuze&&wisselMaat(keuze)}),document.addEventListener("click",function(g){var knop=g.target.closest?g.target.closest("[data-cart-up-add]"):null;knop&&(g.preventDefault(),voegToe(knop))});function zetLadehoogte(){var zicht=window.visualViewport,hoogte=zicht?zicht.height:window.innerHeight;hoogte&&document.documentElement.style.setProperty("--cart-hoogte",Math.round(hoogte)+"px")}zetLadehoogte(),window.addEventListener("resize",zetLadehoogte),window.addEventListener("orientationchange",zetLadehoogte),window.visualViewport&&window.visualViewport.addEventListener("resize",zetLadehoogte),document.addEventListener("cart:refresh",zetLadehoogte);var SCROLLBAAR="side-panel-content",ladeCache=null;function openLade(){return(!ladeCache||!document.body.contains(ladeCache))&&(ladeCache=document.querySelector(".side-panel.cart-drawer")),!ladeCache||!ladeCache.classList.contains("active")?null:ladeCache}function magScrollen(element,lade){for(var knoop=element;knoop&&knoop.nodeType===1;){if(knoop.classList&&knoop.classList.contains(SCROLLBAAR))return!0;if(knoop===lade)return!1;knoop=knoop.parentNode}return!1}document.addEventListener("touchmove",function(gebeurtenis){var lade=openLade();lade&&(gebeurtenis.touches&&gebeurtenis.touches.length>1||magScrollen(gebeurtenis.target,lade)||gebeurtenis.preventDefault())},{passive:!1})})();
2//# sourceMappingURL=/cdn/shop/t/80/assets/cart-redesign.js.map?v=169462880703280479961789377905

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.