PageSourceSearch

https://www.omoda.nl/on/demandware.static/Sites-omoda-nl-Site/-/nl…/js/pagedesigner/pagedesigner.js

js omoda.nl collected 2026-09-24 10:25:27 UTC 14,717 bytes, 1 lines download raw bytes

1!function(t){var e={};function s(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,s),o.l=!0,o.exports}s.m=t,s.c=e,s.d=function(t,e,i){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)s.d(i,o,function(e){return t[e]}.bind(null,o));return i},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s(s.s=408)}({11:function(t,e){let s;function i(t,e,s){const i=new Date;i.setTime(i.getTime()+24*s*60*60*1e3);const o=`${t}=${e}; ${"expires="+i.toGMTString()}; domain=${document.location.host}; path=/`;document.cookie=o}t.exports={init(){s=this,$(()=>{$("[data-cookielength]").each(s.checkCookie)}),$(document).on("click","[data-cookiehide]",s.activateCookie)},getCookie:function(t){const e=t+"=",s=document.cookie.split(";");for(let t=0;t<s.length;t++){let i=s[t];for(;" "===i.charAt(0);)i=i.substring(1);if(-1!==i.indexOf(e))return i.substring(e.length,i.length)}return""},setCookie:i,deleteCookie:function(t){const e=document.location.host;document.cookie=`${t}=; expires=Thu, 01 Jan 1970 00:00:01 GMT; domain=${e}; path=/`},checkCookie(){const t=$(this).data("cookiehide"),e=$("#"+t);0===s.getCookie(t).length&&e[0]?e.removeClass("visually-hidden"):e.remove()},activateCookie(){const t=$(this);return i(t.data("cookiehide"),"hide",t.data("cookielength"))}}},13:function(t,e){function s(){$("img.lazyload").one("load",(function(){$(this).closest(".container-lazyloading").css("background-image","none"),"loading"in HTMLImageElement.prototype&&($(this).removeClass("lazyload"),$(this).addClass("lazyloaded"))}))}function i(){$(".plp-product-images img.lazyload").on("load",(function(){const t=$(this).closest(".img-container"),e=t.find(".product-tile__image.js-active");e&&e.length>0&&(e[0].complete&&e[0].naturalHeight>0&&!e.hasClass("d-none")?(e.css("z-index",""),t.find(".product-tile__image:not(.js-active)").addClass("d-none"),e.removeClass("js-active")):e.addClass("d-none"))}))}function o(t){s(),i();const e=window.matchMedia("(hover: hover) and (pointer: fine)"),o=$(".js-mobile-placeholder").length&&$(".js-mobile-placeholder")[0].getAttribute("data-placeholder"),n=$("body").attr("data-pagetype");if("loading"in HTMLImageElement.prototype){const s=t.find("img.lazyload");s.length>0&&s.each((function(){this.dataset.src&&this.src!==this.dataset.src&&(this.src=this.dataset.src,this.loading="lazy"),this.dataset.srcset&&this.srcset!==this.dataset.srcset&&(this.srcset=this.dataset.srcset,this.dataset.sizes&&(this.sizes=this.dataset.sizes)),$(this).closest("picture").children("source").each((function(){"product listing"===n&&!e.matches&&this.hasAttribute("imageIndex")&&this.getAttribute("imageIndex")>0&&o?this.srcset=o:this.dataset.srcset&&this.srcset!==this.dataset.srcset&&(this.srcset=this.dataset.srcset)}))}))}}t.exports={enableLazyLoading:function(){"loading"in HTMLImageElement.prototype?($(()=>{o($(document))}),$(window).on("load",()=>{setTimeout(()=>{o($(document))},3e3)})):(s(),$(window).on("load",()=>{setTimeout(()=>{$(".container-lazyloading").css("background-image","none")},3e3)}))},imagesLazyLoaded:o,plpProductTilesHover:i}},25:function(t,e){t.exports={limitAmountToShow:function(t,e,s){const i=t.closest(".quantity-bubble");let o=e;i.toggleClass("has-items",o>0),s&&i.addClass("quantity-updated"),o||(o=parseInt(t.text(),10)),Number(o)>9?(t.text(9),t.siblings(".js-quantity-bubble-plus").removeClass("d-none")):(t.text(o),t.siblings(".js-quantity-bubble-plus").addClass("d-none")),i.on("webkitAnimationEnd otransitionend oTransitionEnd msTransitionEnd transitionend",()=>{i.removeClass("quantity-updated")})}}},30:function(t,e,s){const i=s(11),o=s(25);window.dataLayer=window.dataLayer||[];let n=$(".js-wishlist-total-header"),a=[],c=!0;function r(){n=$(".js-wishlist-total-header");const t=n.data("amount")||n.text();o.limitAmountToShow(n,t,!1)}function d(){const t=$(".js-wishlist")[0];t&&$.get(t.dataset.getlisturl).done(t=>{t.success&&(a=t.currentWishlist,t.removeWishlistCookie&&(c=!1,i.deleteCookie("wishlist")),a&&($(".js-wishlist").each((t,e)=>{const s=$(e).attr("data-pid").toString();s&&-1!==a.indexOf(s)?$(e).addClass("is-in-wishlist"):$(e).removeClass("is-in-wishlist"),$(e).removeClass("d-none")}),$(".js-wishlist-total").text(a.length)))})}function l(t){const e=$(".js-wishlist-page").data("getwishlisturl");return e?`${e.split("?")[0]}?type=${t}`:void 0}function u(t){if(window.isWishlistPageContentLoaded)return;const e=$(".js-wishlist-page");e.spinner().start();const i=t||e.data("getwishlisturl");i&&$.get(i).done(t=>{e.html(t),setTimeout(()=>{e.spinner().stop()},500),r(),d();s(13).imagesLazyLoaded($(document)),$(document).trigger("aiLabel:refresh"),function(){if(0===$(".wishlist-page").length)return;const t=[],e=[];$(".js-quickview").each((s,i)=>{const o=$(i).attr("data-pid");o&&(t.push(o.split("_")[0]),e.push(o))}),setTimeout(()=>{const s=$("[data-mcmid]").data("mcmid"),i=$("[data-mcenableanalytics]").data("mcen
1ableanalytics");window._etmc&&s&&i&&(window._etmc.push(["setOrgId",s]),window._etmc.push(["trackWishlist",{items:t,skus:e}]))},2e3)}(),$(document).trigger("wishlist:contentLoaded")}).fail(t=>{setTimeout(()=>{e.spinner().stop()},500),console.error("Error loading wishlist page content:",t)})}function h(t){$(".js-wishlist-total").text(t),$(".js-wishlist-text").addClass("d-none").removeClass("d-inline-block"),1===t?$('.js-wishlist-text[data-wishlistamout="1"]').removeClass("d-none").addClass("d-inline-block"):t>=2&&$('.js-wishlist-text[data-wishlistamout="2"]').removeClass("d-none").addClass("d-inline-block")}$("body").on("click",".wishlist-page .full-pdp-link",(function(){window.location=$(this).data("href")})),h($(".js-wishlist-total-header").data("amount")),window.wishlistInitialized=!1,function t(){var e;if(!window.wishlistInitialized)if("function"==typeof $.fn.spinner)if(window.wishlistInitialized=!0,$(".js-wishlist-page").length){const t="looks"===window.location.hash.replace("#","")?"looks":"items";e=t,$('input[name="wishlisttoggle"]').each((t,s)=>{const i=s.id===e;$(s).prop("checked",i),i?s.setAttribute("checked","checked"):s.removeAttribute("checked"),$(s).closest(".btn").toggleClass("active",i)}),u(l(t))}else u();else setTimeout(t,50)}(),t.exports.initWishlist=function(){function t(){const t=$(".js-wishlist")[0],e=t&&t.dataset&&t.dataset.clearcacheurl||window.URLs&&window.URLs.clearCustomerCache||"GTM-ClearCustomerDataCache";e?setTimeout(()=>{$.post(e,{cacheType:"customer"}).done(t=>{if(t.success&&t.customerData){let e={};try{e="string"==typeof t.customerData?JSON.parse(t.customerData):t.customerData||{}}catch(t){console.warn("Error parsing customer data from cache clear:",t),e={}}window.dataLayer.push({event:"wishlistAfterAction",wishlist:e.wishlist||[]})}else window.dataLayer.push({event:"wishlistAfterAction",wishlist:[]})}).fail(()=>{window.dataLayer.push({event:"wishlistAfterAction",wishlist:[]})})},0):window.dataLayer.push({event:"wishlistAfterAction",wishlist:[]})}function e(t,e,s){if("remove"===s){if($(`.js-wishlist[data-pid="${e}"]`).removeClass("is-in-wishlist"),$(".wishlist-page").length>0){const t=$(`.wishlist-page [data-pid="${e}"]`).closest(".js-wishlist-col");t.find(".quickview").addClass("quickview--removed"),setTimeout(()=>{t.find(".js-back-in-stock-append:not(:empty)").length&&t.next(".js-wishlist-col").find(".js-back-in-stock-append").html(t.find(".js-back-in-stock-append").html()),t.remove()},300)}}else $(`.js-wishlist[data-pid="${e}"]`).addClass("is-in-wishlist");n.text(t.length),o.limitAmountToShow(n,t.length,!0),h(a.length)}$(document).off("wishlist:product:add").on("wishlist:product:add",(e,s)=>{t(),window.dataLayer.push({event:"addToWishlist",ecommerce:{currencyCode:s.currencyCode,add:{products:JSON.parse(s.gtmProduct)}}})}),$(document).off("wishlist:product:remove").on("wishlist:product:remove",(e,s)=>{t(),window.dataLayer.push({event:"removeFromWishlist",ecommerce:{currencyCode:s.currencyCode,remove:{products:s.gtmProduct?JSON.parse(s.gtmProduct):[]}}})}),$(()=>{$(".wishlist-page")&&$(".wishlist-page [data-slick]").length&&$(".wishlist-page [data-slick]").each((function(){!function(t){const e={infinite:!1,slidesToShow:4,slidesToScroll:1},s=t.data("slick");if(s){const t=Object.keys(s);for(let i=0;i<t.length;i++){const o=t[i];e[o]=s[o]}}t.not(".slick-initialized").slick(e)}($(this))})),r()}),d(),$(document).on("click",".js-wishlist, .js-remove-product-wishlist",(function(s){s.preventDefault(),s.stopImmediatePropagation();const o=$(s.target).is(".js-wishlist")?$(s.target):$(s.target).closest(".js-wishlist"),n=o.hasClass("remove-to-wishlist");let r;const d=this,l=d.dataset.wishlistMaxLength;let u;if(d.dataset.hasOwnProperty("pid")&&(r=d.dataset.pid),d.dataset.hasOwnProperty("variantpid")&&(u=d.dataset.variantpid),d.dataset.hasOwnProperty("removetowishlistpid")&&(r=d.dataset.optieid),r){if(c){let s;a=i.getCookie("wishlist"),a=a?JSON.parse(decodeURIComponent(a)).reverse():[],-1===a.indexOf(r)||n?(a=[r,...a],a.length>l&&a.splice(l,a.length-l),a.reverse(),s="add",o.length&&!o.data("removetowishlistpid")?$(document).trigger("wishlist:product:add",{gtmProduct:d.dataset.gtmProduct,currencyCode:d.dataset.gtmCurrency}):o.data("removetowishlistpid")&&t()):(a.splice(a.indexOf(r),1),s="remove",$(document).trigger("wishlist:product:remove",{gtmProduct:d.dataset.gtmProduct,currencyCode:d.dataset.gtmCurrency}),a.reverse()),i.setCookie("wishlist",encodeURIComponent(JSON.stringify(a)),365),e(a,r,s),a.reverse()}else a&&-1!==a.indexOf(r)?$.post(d.dataset.removeurl,{pid:r}).done(t=>{t.success&&t.currentWishlist&&(a=t.currentWishlist,e(a,r,"remove"),$(document).trigger("wishlist:product:remove",{gtmProduct:d.dataset.gtmProduct,currencyCode:d.dataset.gtmCurrency}))}):a&&-1!==a.indexOf(u)?$.post(d.dataset.removeurl,{pid:u}).done(t=>{t.success&&t.currentWishlist&&(a=t.currentWishlist,e(a,u,"remove"),$(document).trigger("wishlist:product:remove",{gtmProduct:d.dataset.gtmProduct,currencyCode:d.dataset.gtmCurrency}))}):$.post(d.dataset.addurl,{pid:r}).done(t=>{t.success&&(a=t.currentWishlist,e(a,r,"add"),$(document).trigger("wishlist:product:add",{gtmProduct:d.dataset.gtmProduct,currencyCode:d.dataset.gtmCurrency}))});const h=$(s.target).closest("[data-gtm-look-carousel]");
1if($(h).length){const t={eventAction:"wishlist icon"};$.extend(t,$(h).data("gtm-look-carousel")),window.dataLayer.push(t)}}const h=new CustomEvent("wishlist:clicked",{bubbles:!0,detail:{pid:r,sourceElement:this}});return o[0].dispatchEvent(h),!1})),$("body").on("change",'input[name="wishlisttoggle"]',t=>{t.preventDefault();const e=t.target.id;window.history&&window.history.replaceState&&window.history.replaceState(null,"",`${window.location.pathname}${window.location.search}#${e}`),u(l(e))})},t.exports.getWishlistItems=d,t.exports.checkWishlistProduct=r},408:function(t,e,s){const i=".experience-component [data-slick]",o=".js-cat-entrances-grid",n=".js-hitdots-marker",a=".experience-assets-categoryEntranceBanner",c=s(30);function r(){const t=window.CQuotient;return t.widgets=t.widgets||[],t&&"function"==typeof t.getCQUserId&&"function"==typeof t.getCQCookieId?t:null}function d(t,e,s){const i=t.dataset,{recommender:o}=i,n={userId:e.getCQUserId(),cookieId:e.getCQCookieId(),ccver:"1.01"};function a(e){!function(t,e){const s=t[e.dataset.recommender].recs;if(s&&s.length>0){const{template:t}=e.dataset;let i=[];i=s.map(e=>{const s={};return s.template=t,s.model={type:"product",id:e.id},s});const o=new URL(e.dataset.productLoadUrl);o.searchParams.append("components",JSON.stringify(i)),o.searchParams.append("limit",e.dataset.limit),$.ajax({url:o.href,type:"get",success(t){const s=e.parentNode,i=$(s).parents("[data-slick]");i.length>0?i.find(".region").slick("unslick").html(t).slick(i.data("slick")):s.innerHTML=t}})}}(e,t)}s&&(n.anchors=s),e.getRecs?e.getRecs(e.clientId,o,n,a):e.widgets.push({recommenderName:i.recommender,parameters:n,callback:a})}function l(){$(i).each((t,e)=>{let s=0,i=0;const{responsive:o}=$(e).data("slick"),n=$(e).find(".region");o&&o.length>1&&n&&(!function(t){try{let e=0;const s=t.parentsUntil('[class*="experience-component experience-layouts"][class*="column"]');if(s.length>0){let i;i=s.filter(".js-full-width-slider").length>0?s.filter(".col-layout, .container"):s.filter(".col-layout"),i.each((function(){const t=parseInt($(this).css("padding-left").replace("px",""),0);e-=t})),t.parent().css("margin-left",e+"px")}}catch(t){}}(n),"unslick"!==o[1].settings&&($(e).find(".experience-component").each((function(){"none"===$(this).children().css("display")&&$(this).css("display","none"),s+=$(this).width()+parseInt($(this).css("padding-right").replace("px",""),0)+parseInt($(this).css("padding-left").replace("px",""),0),s<=$(e).width()&&i++})),i=i>0?i:1,o[1].settings.slidesToShow=i)),n.not(".slick-initialized").slick($(e).data("slick"))})}$(document).ready(()=>{l(),function(){const t=r();if(t){Array.from(document.querySelectorAll(".einstein-product-recommendations")).forEach(e=>{d(e,t,function(t){const e=t.dataset;return[{id:e.primaryProductId,sku:e.secondaryProductId,type:e.alternativeGroupType,alt_id:e.alternativeGroupId}]}(e))})}}(),function(){const t=r();if(t){Array.from(document.querySelectorAll(".einstein-category-recommendations")).forEach(e=>{d(e,t,function(t){return[{id:t.dataset.categoryId}]}(e))})}}(),function(){const t=r();if(t){Array.from(document.querySelectorAll(".einstein-noanchor-recommendations")).forEach(e=>{d(e,t)})}}(),$(o).each((t,e)=>{const s=e.querySelectorAll(".experience-assets-categoryEntranceTile");if(s.length%2){const t=s[0];t.classList.add("w-100"),t.querySelector(".cat-tile").classList.add("cat-tile--full")}}),$(o).each((t,e)=>{const s=e.querySelectorAll(a),i=$(s).outerHeight();$(e).css("padding-top",i+8+"px"),$(s).css("visibility","visible")}),$(n).length&&$(document).on("click",$(n),t=>{const e=$(t.target).closest('[data-toggle="popover-html"]');$(n).not(e).each((function(){$(this).popover("hide")})),e.off("shown.bs.popover").on("shown.bs.popover",()=>{const t=new CustomEvent("hitdot:popoverShown",{detail:{triggerElement:e[0]}});document.dispatchEvent(t)})}),setTimeout(()=>{document.dispatchEvent(new CustomEvent("manualSlider:init"))},100),c.initWishlist()})}});

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.