PageSourceSearch

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

js loisjeanstore.com collected 2026-09-28 05:37:55 UTC 11,945 bytes, 2 lines download raw bytes

1(function(){"use strict";var DUUR=1800,BEVESTIGING="ADDED TO CART \u2713",lopend=null;function knopTeksten(){return document.querySelectorAll(".pdp-v2 .single-add-to-cart-button .single-add-to-cart-button--text")}document.addEventListener("cart:item-added",function(){if(window.matchMedia("(max-width: 1067px)").matches){var velden=knopTeksten();if(velden.length){lopend&&(clearTimeout(lopend.timer),lopend.velden.forEach(function(v,i){v.setAttribute("data-content",lopend.origineel[i])}));var origineel=[];velden.forEach(function(v){origineel.push(v.getAttribute("data-content")||""),v.setAttribute("data-content",BEVESTIGING)}),lopend={velden:velden,origineel:origineel,timer:setTimeout(function(){velden.forEach(function(v,i){v.setAttribute("data-content",origineel[i])}),lopend=null},DUUR)}}}})})(),(function(){var picker=document.querySelector(".pdp-v2 variant-selects");if(!picker)return;var bron=picker.querySelector('script[type="application/json"]');if(!bron)return;var varianten;try{varianten=JSON.parse(bron.textContent)}catch(e){return}if(!Array.isArray(varianten)||!varianten.length)return;var actief=!0;function stop(){actief=!1}picker.addEventListener("pointerdown",stop,!0),picker.addEventListener("keydown",stop,!0),window.setTimeout(stop,8e3);function velden(){var lijst=Array.prototype.slice.call(picker.querySelectorAll("fieldset.product-form__input[data-index]"));return lijst.map(function(el){var ruw=String(el.getAttribute("data-index")).replace("option","");return{positie:parseInt(ruw,10)-1,el:el}}).filter(function(v){return v.positie>=0}).sort(function(a,b){return a.positie-b.positie})}function keuzeVan(vs){var uit=[];return vs.forEach(function(v){var aan=v.el.querySelector('input[type="radio"]:checked')||v.el.querySelector("select");uit[v.positie]=aan?aan.value:null}),uit}function past(variant,keuze,tot){for(var i=0;i<tot;i++)if(keuze[i]!=null&&variant.options[i]!==keuze[i])return!1;return!0}function eersteBeschikbare(keuze,tot){for(var i=0;i<varianten.length;i++)if(varianten[i].available&&past(varianten[i],keuze,tot))return varianten[i];return null}function corrigeer(){if(actief){var vs=velden();if(vs.length){var keuze=keuzeVan(vs);if(!eersteBeschikbare(keuze,keuze.length)){for(var doel=null,k=keuze.length-1;k>=0&&!doel;k--)doel=eersteBeschikbare(keuze,k);if(doel){var laatste=null;vs.forEach(function(v){var wens=doel.options[v.positie];if(wens!==void 0){for(var knoppen=v.el.querySelectorAll('input[type="radio"]'),i=0;i<knoppen.length;i++)knoppen[i].value===wens&&!knoppen[i].checked&&(knoppen[i].checked=!0,laatste=knoppen[i]);var lijst=v.el.querySelector("select");lijst&&lijst.value!==wens&&(lijst.value=wens,laatste=lijst)}}),laatste&&laatste.dispatchEvent(new Event("change",{bubbles:!0}))}}}}}var gepland=!1;function plan(){gepland||!actief||(gepland=!0,window.setTimeout(function(){gepland=!1,corrigeer()},60))}picker.addEventListener("change",plan),new MutationObserver(plan).observe(picker,{subtree:!0,attributes:!0,attributeFilter:["checked","class"]}),plan()})(),(function(){var balk=document.querySelector(".pdp-sticky-bar");if(!balk)return;var koopknop=balk.querySelector(".product-add-to-cart-sticky"),fitknop=balk.querySelector(".pdp-sticky-fit");if(koopknop){var spiegel=function(){balk.classList.toggle("pdp-sticky-bar--zichtbaar",koopknop.classList.contains("sticky--visible"))};new MutationObserver(spiegel).observe(koopknop,{attributes:!0,attributeFilter:["class"]}),spiegel()}function echteKoopknop(){return document.getElementById("AddToCart")}function prijsTekst(){var blok=document.querySelector('.pdp-v2 [id^="price-"]:not([id$="--sticky"])');if(!blok)return"";var bedrag=blok.querySelector(".amount");return bedrag?(bedrag.textContent||"").trim():""}function werkLabelBij(){if(koopknop){var span=koopknop.querySelector("[data-content]");if(span){var echt=echteKoopknop();if(echt&&echt.disabled){var tekst=echt.querySelector("[data-content]");span.dataset.content=tekst?tekst.dataset.content:"Sold out";return}var prijs=prijsTekst();span.dataset.content=prijs?"ADD TO CART \xB7 "+prijs:"ADD TO CART"}}}var prijsblok=document.querySelector('.pdp-v2 [id^="price-"]:not([id$="--sticky"])');prijsblok&&new MutationObserver(werkLabelBij).observe(prijsblok,{subtree:!0,childList:!0,characterData:!0}
1),document.addEventListener("product:variant-change",werkLabelBij),werkLabelBij()})(),(function(){var knoppen=Array.prototype.slice.call(document.querySelectorAll(".pdp-fit-card__quiz, .pdp-sticky-fit"));if(!knoppen.length)return;var TRIGGER=/find your size|we recommend|your size|fit quiz|size advice/i;function heeftInhoud(el){if(!el||!el.getClientRects().length)return!1;var tekst=(el.innerText||"").trim();return tekst.length>0||!!el.querySelector("svg, img")}function vindWidget(){var kandidaten=[];Array.prototype.push.apply(kandidaten,document.querySelectorAll('[class*="easysize"], [id*="easysize"], [class*="EasySize"]'));var picker=document.querySelector(".pdp-v2 variant-selects");picker&&Array.prototype.forEach.call(picker.children,function(kind){kind.tagName.toLowerCase()!=="script"&&(kind.classList.contains("variations")||kandidaten.push(kind))});var blok=document.querySelector(".fit-quiz-wrapper");blok&&kandidaten.push(blok);for(var i=0;i<kandidaten.length;i++)if(!kandidaten[i].closest(".pdp-fit-card, .pdp-sticky-bar")&&heeftInhoud(kandidaten[i]))return kandidaten[i];return null}function klikbaarIn(houder){for(var alle=Array.prototype.slice.call(houder.querySelectorAll("*")),isKnop=function(el){var tag=el.tagName.toLowerCase();return tag==="a"||tag==="button"||el.getAttribute("role")==="button"},past=function(el){var tekst=(el.innerText||"").trim();return tekst&&tekst.length<80&&TRIGGER.test(tekst)},i=0;i<alle.length;i++)if(isKnop(alle[i])&&past(alle[i]))return alle[i];for(var j=alle.length-1;j>=0;j--)if(past(alle[j]))return alle[j];for(var k=0;k<alle.length;k++)if(isKnop(alle[k]))return alle[k];for(var m=0;m<alle.length;m++)if(!alle[m].children.length&&(alle[m].innerText||"").trim())return alle[m];return houder}function simuleerKlik(el){["pointerdown","mousedown","mouseup","click"].forEach(function(soort){var Constructor=soort.indexOf("pointer")===0&&window.PointerEvent?window.PointerEvent:window.MouseEvent;el.dispatchEvent(new Constructor(soort,{bubbles:!0,cancelable:!0,view:window}))})}function vindEigenOproep(){var houder=document.querySelector(".pdp-v2 .product-information--inner");if(!houder)return null;for(var alle=houder.querySelectorAll("*"),i=0;i<alle.length;i++){var el=alle[i];if(!(el.closest(".pdp-fit-card-wrap")||el.closest(".pdp-sticky-bar"))&&el.getClientRects().length){var tekst=(el.innerText||"").trim();if(!(!tekst||tekst.length>60)&&TRIGGER.test(tekst))return el}}return null}function toonAlsAanwezig(){var oproep=vindEigenOproep(),widget=oproep||vindWidget();return widget?(widget.classList.add("pdp-quiz-bron"),knoppen.forEach(function(knop){knop.hidden=!1}),!!oproep):!1}if(knoppen.forEach(function(knop){knop.addEventListener("click",function(){var widget=vindEigenOproep()||vindWidget();widget&&simuleerKlik(klikbaarIn(widget))})}),!toonAlsAanwezig()){var kijker=new MutationObserver(function(){toonAlsAanwezig()&&kijker.disconnect()});kijker.observe(document.body,{childList:!0,subtree:!0}),window.setTimeout(function(){kijker.disconnect()},2e4)}})(),(function(){var knop=document.querySelector(".pdp-fit-card__guide");if(knop){var opener=document.querySelector(".pdp-v2 .variations .product-popup-modal__opener"),origineel=opener&&opener.querySelector("button");if(origineel){var label=(origineel.textContent||"").trim();knop.textContent=label||"Size guide",knop.hidden=!1,knop.addEventListener("click",function(){origineel.click()})}}})(),(function(){if(window.matchMedia){var mq=window.matchMedia("(min-width: 1068px)");if(mq.matches){var rijen=document.querySelectorAll(".pdp-v2 .product__accordion details");Array.prototype.forEach.call(rijen,function(d){d.open=!1})}}})(),(function(){if(!window.matchMedia)return;var blok=document.querySelector(".pdp-v2 .pdp-benefits");if(!blok)return;var rijen=Array.prototype.slice.call(blok.querySelectorAll(".pdp-benefits__row"));if(rijen.length<2)return;var WISSEL=2200,rustig=window.matchMedia("(prefers-reduced-motion: reduce)"),timer=null,huidig=0;function toon(n){rijen.forEach(function(rij,i){rij.classList.toggle("is-actief",i===n)})}function aan(){timer||(blok.classList.add("pdp-benefits--rouleert"),huidig=0,toon(huidig),timer=window.setInterval(function(){huidig=(huidig+1)%rijen.length,toon(huidig)},WISSEL))}function uit(){timer&&(window.clearInterval(timer),timer=null),blok.classList.remove("pdp-benefits--rouleert"),rijen.forEac
1h(function(rij){rij.classList.remove("is-actief")})}function volg(){rustig.matches?uit():aan()}document.addEventListener("visibilitychange",function(){document.hidden?uit():volg()}),volg(),rustig.addEventListener?rustig.addEventListener("change",volg):rustig.addListener&&rustig.addListener(volg)})(),(function(){var DOEL="https://loisjeanstore.com/pages/club62";function zet(){var blok=document.querySelector('.pdp-v2 .product-app-block > [id*="leat_loyalty"]');if(!blok)return!1;var links=blok.querySelectorAll("a[href]");return links.length?(Array.prototype.forEach.call(links,function(a){a.getAttribute("href")!==DOEL&&a.setAttribute("href",DOEL)}),!0):!1}if(zet(),!!window.MutationObserver){var kijker=new MutationObserver(zet);kijker.observe(document.body,{childList:!0,subtree:!0}),window.setTimeout(function(){kijker.disconnect()},2e4)}})(),(function(){var NEUTRAAL="#ededed";function herstel(){var labels=document.querySelectorAll(".pdp-v2 .variations .product-form__input--color label");Array.prototype.forEach.call(labels,function(label){var waarde=(label.style.getPropertyValue("--option-color")||"").trim();if(waarde){var geldig=window.CSS&&window.CSS.supports?window.CSS.supports("color",waarde):/^(#|rgb|hsl|var\()/i.test(waarde);geldig||label.style.setProperty("--option-color",NEUTRAAL)}})}if(herstel(),!!window.MutationObserver){var picker=document.querySelector(".pdp-v2 variant-selects");picker&&new MutationObserver(herstel).observe(picker,{childList:!0,subtree:!0})}})(),(function(){"use strict";var GALERIJ=".product-grid--vertical",ZOOM=".product-single__media-zoom";function zichtbareFotos(){var houder=document.querySelector(GALERIJ);return houder?Array.prototype.filter.call(houder.querySelectorAll(".product-single__media-image"),function(media){return media.offsetParent!==null&&media.querySelector(ZOOM)}):[]}function bouwLijst(fotos){return fotos.map(function(media){var link=media.querySelector(ZOOM);return{src:link.getAttribute("href"),msrc:link.getAttribute("data-msrc")||void 0,w:parseInt(link.getAttribute("data-w"),10)||1200,h:parseInt(link.getAttribute("data-h"),10)||1600}})}function open(index){var venster=document.querySelector(".pswp");if(!venster||typeof PhotoSwipe=="undefined"||typeof PhotoSwipeUI_Default=="undefined")return!1;var fotos=zichtbareFotos(),lijst=bouwLijst(fotos);if(!lijst.length)return!1;var kijker=new PhotoSwipe(venster,PhotoSwipeUI_Default,lijst,{index:Math.max(0,Math.min(index,lijst.length-1)),maxSpreadZoom:2,loop:!1,allowPanToNext:!1,closeOnScroll:!1,showHideOpacity:!1,arrowKeys:!0,history:!1,captionEl:!1,fullscreenEl:!1,zoomEl:!1,shareEl:!1,counterEl:!0,arrowEl:!0,preloaderEl:!0,getThumbBoundsFn:function(i){var media=zichtbareFotos()[i];if(!media)return null;var vak=media.getBoundingClientRect(),omhoog=window.pageYOffset||document.documentElement.scrollTop;return{x:vak.left,y:vak.top+omhoog,w:vak.width}}});return kijker.init(),!0}document.addEventListener("click",function(gebeurtenis){var link=gebeurtenis.target.closest?gebeurtenis.target.closest(ZOOM):null;if(link&&link.closest(GALERIJ)){gebeurtenis.preventDefault();var media=link.closest(".product-single__media-image"),index=zichtbareFotos().indexOf(media);open(index<0?0:index)}},!1)})();
2//# sourceMappingURL=/cdn/shop/t/80/assets/pdp-redesign.js.map?v=86785369347746905781788180505

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.