PageSourceSearch

https://www.eleganza-shop.com/cdn/shop/t/120/assets/eleganza-2026.js?v=73813923948995829081789373559

js eleganza-shop.com collected 2026-10-06 16:15:11 UTC 4,518 bytes, 2 lines download raw bytes

1(function(){"use strict";try{var build=function(){if(!done){var picker=document.querySelector("#variant-image-picker, .variant-swatch-list");if(picker){var swatches=picker.querySelectorAll(".variant-swatch:not(.e-variant-more)");if(!(swatches.length<=5)){if(picker.querySelector(".e-variant-more")){done=!0;return}var tile=document.querySelector("#variant-image-tile"),meta=tile&&tile.getAttribute("data-meta");if(meta){var others=swatches.length-1,a=document.createElement("a");a.className="variant-swatch e-variant-more",a.href="/search?q="+encodeURIComponent(meta)+"&type=product",a.setAttribute("aria-label","Bekijk alle "+swatches.length+" kleuren"),a.innerHTML='<span class="e-variant-more__n">+'+others+'</span><span class="e-variant-more__l">variaties</span>',picker.appendChild(a),done=!0}}}}};if(!/\/products\//.test(location.pathname))return;var done=!1;build();var host=document.querySelector(".product-form")||document.querySelector("main")||document.body;if(host&&"MutationObserver"in window){var mo=new MutationObserver(function(){build(),done&&mo.disconnect()});mo.observe(host,{childList:!0,subtree:!0}),setTimeout(function(){mo.disconnect()},8e3)}}catch(e){}})(),(function(){"use strict";if(!(document.querySelector(".product-form")||document.querySelector("[id^=MainPaymentContainer]")||/\/products\//.test(location.pathname)))return;var MAIL='<svg viewBox="0 0 24 24" fill="none"><path d="M4 6.5A1.5 1.5 0 0 1 5.5 5h13A1.5 1.5 0 0 1 20 6.5v11A1.5 1.5 0 0 1 18.5 19h-13A1.5 1.5 0 0 1 4 17.5v-11Z" stroke="currentColor" stroke-width="1.6"/><path d="m4.5 7 7.5 5.5L19.5 7" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg>',product=null;function norm(s){return(s||"").toString().trim().toLowerCase()}function badge(label,on){var has=label.querySelector(".e-soldout-mail");if(on&&!has){label.classList.add("e-soldout");var b=document.createElement("span");b.className="e-soldout-mail",b.innerHTML=MAIL,b.setAttribute("title","Uitverkocht \u2014 mail mij zodra deze maat terug is"),label.appendChild(b)}else!on&&has&&(label.classList.remove("e-soldout"),has.remove())}function refresh(){if(!(!product||!product.options)){var names=product.options.map(function(o){return norm(o.name||o)}),sizeIdx=names.findIndex(function(n){return/maat|size|schoenmaat/.test(n)});if(!(sizeIdx<0)){var otherIdx=names.findIndex(function(n,i){return i!==sizeIdx}),curOther=null;if(otherIdx>=0){var otherVals=product.variants.map(function(v){return v["option"+(otherIdx+1)]}),checked=[].slice.call(document.querySelectorAll(".product-form input:checked, .product-form option:checked")).map(function(i){return i.value});if(curOther=otherVals.find(function(c){return checked.indexOf(c)!==-1}),!curOther){var fa=product.variants.find(function(v){return v.available})||product.variants[0];curOther=fa&&fa["option"+(otherIdx+1)]}}var sizeValues=product.options[sizeIdx].values||product.options[sizeIdx]||[];document.querySelectorAll(".block-swatch__item").forEach(function(label){var txt=label.textContent.trim();if(sizeValues.map(norm).indexOf(norm(txt))!==-1){var variant=product.variants.find(function(v){return norm(v["option"+(sizeIdx+1)])===norm(txt)&&(otherIdx<0||norm(v["option"+(otherIdx+1)])===norm(curOther))});badge(label,!!(variant&&!variant.available))}})}}}try{var url=location.pathname.replace(/\/$/,"")+".js";fetch(url,{credentials:"same-origin"}).then(function(r){return r.ok?r.json():null}).then(function(p){if(!(!p||!p.variants)){product=p,refresh();var n=0,iv=setInterval(function(){refresh(),++n>12&&clearInterval(iv)},500);document.addEventListener("variant:changed",refresh),document.addEventListener("change",function(e){e.target&&e.target.closest&&e.target.closest(".product-form")&&setTimeout(refresh,60)})}}).catch(function(){})}catch(e){}})(),(function(){"use strict";function herstelSpaties(el){var regels=el.children;if(!(regels.length<2))for(var i=0;i<regels.length-1;i++)regels[i].textContent.slice(-1)!==" "&&regels[i].appendChild(document.createTextNode(" "))}function volg(el){el.dataset.spatieherstel||(el.dataset.spatieherstel="1",herstelSpaties(el),new MutationObserver(function(){herstelSpaties(el)}).observe(el,{childList:!0}))}function scan(){for(var lijst=document.querySelectorAll("split-lines"),i=0;i<lijst.length;i++)volg(lijst[i])}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",scan):scan(),window.addEventListener("load",scan)})();
2//# sourceMappingURL=/cdn/shop/t/120/assets/eleganza-2026.js.map?v=73813923948995829081789373559

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.