1$(".js-toggle-slide-nav").on("click",function(){$("body").toggleClass("menu_open")});function refreshCartSection(){$.ajax({url:"/",type:"GET",dataType:"html",success:function(data){$(".goal-bar").html($(data).find(".goal-bar").html()),$(".free-shipping-bar").html($(data).find(".free-shipping-bar").html()),$(".bundle_wrap_products").html($(data).find(".bundle_wrap_products").html()),$(".discount-bar").html($(data).find(".discount-bar").html()),$(".cart_footer_updated").html($(data).find(".cart_footer_updated").html())}})}function handleFreeGift(){!window.FREE_GIFT||!FREE_GIFT.enabled||$.getJSON("/cart.js",function(cart){let hasTriggerProduct=!1,giftItemKey=null;cart.items.forEach(function(item){item.product_id==FREE_GIFT.triggerProductId&&(hasTriggerProduct=!0),item.variant_id==FREE_GIFT.giftVariantId&&(giftItemKey=item.key)}),hasTriggerProduct&&!giftItemKey&&$.ajax({type:"POST",url:"/cart/add.js",data:{id:FREE_GIFT.giftVariantId,quantity:1,properties:{_free_gift:"true"}},dataType:"json",success:function(){document.dispatchEvent(new CustomEvent("cart:build")),refreshCartSection()}})})}const originalFetch=window.fetch;window.fetch=function(){return originalFetch.apply(this,arguments).then(response=>((arguments[0].includes("/cart/add")||arguments[0].includes("/cart/change")||arguments[0].includes("/cart/update"))&&(refreshCartSection(),setTimeout(handleFreeGift,300)),response))};function startLoading($btn,$text,$loader){$btn.addClass("loading").prop("disabled",!0),$text.hide(),$loader.show(),$btn[0].offsetHeight}function stopLoading($btn,$text,$loader){$btn.removeClass("loading").prop("disabled",!1),$text.show(),$loader.hide()}$(document).on("click",".apply-discount-btn",function(){var $btn=$(this),$text=$btn.find(".btn-text"),$loader=$btn.find(".btn-loader"),$input=$("#discount-code"),$error=$(".discount-error"),code=$input.val().trim();code&&($error.hide(),$input.removeClass("error"),startLoading($btn,$text,$loader),$.ajax({type:"POST",url:"/cart/update.js",data:JSON.stringify({discount:code}),contentType:"application/json"}).done(function(){$.getJSON("/cart.js",function(cart){console.log(cart);var discountValid=cart.discount_codes&&cart.discount_codes.length>0&&cart.discount_codes.some(function(d){return d.applicable===!0});if(!discountValid){stopLoading($btn,$text,$loader),$input.addClass("error"),$error.show();return}stopLoading($btn,$text,$loader),document.dispatchEvent(new CustomEvent("cart:build"))})}).fail(function(err){console.log("Apply error:",err),stopLoading($btn,$text,$loader)}))}),$(document).on("click",".remove-discount",function(){var $btn=$(this),$text=$btn.find(".btn-text"),$loader=$btn.find(".btn-loader");startLoading($btn,$text,$loader),$.ajax({type:"POST",url:"/cart/update.js",data:JSON.stringify({discount:""}),contentType:"application/json",success:function(){refreshCartSection()}})}),$(document).ready(function(){handleFreeGift();const circles=$(".video-circle");let currentIndex=0;function playVideo(index){if(!circles.length)return;circles.removeClass("active"),circles.find("video").each(function(){this.pause(),this.currentTime=0});const circle=circles.eq(index);if(!circle.length)return;const video=circle.find("video").get(0);video&&(circle.addClass("active"),video.play().catch(function(error){console.log("Autoplay prevented:",error)}),currentIndex=index)}circles.length>0&&playVideo(0),circles.find("video").on("ended",function(){let next=currentIndex+1;next>=circles.length&&(next=0),playVideo(next)}),circles.on("click",function(){const index=$(this).data("index"),src=$(this).find("source").attr("src"),modalVideo=$(".pdp-video-modal video").get(0);modalVideo.src=src,modalVideo.play(),$(".pdp-video-modal").fadeIn(200),playVideo(index)}),$(".modal-close, .modal-overlay").on("click",function(){const modalVideo=$(".pdp-video-modal video").get(0);modalVideo.pause(),modalVideo.currentTime=0,$(".pdp-video-modal").fadeOut(200)}),$(document).on("click",".read-more-toggle",function(){var $wrapper=$(this).closest(".read-more-wrapper"),$short=$wrapper.find(".read-more-short"),$full=$wrapper.find(".read-more-full"),check_button_more=$(".read-more-toggle").attr("data-more"),check_button_less=$(".read-more-toggle").attr("data-less");
1$full.is(":visible")?($full.hide(),$short.show(),$(this).text(check_button_more)):($short.hide(),$full.show(),$(this).text(check_button_less))});var $button=$("#atc-test-id");$button.on("click",function(){var $before=$(this).find(".before_clicked_text"),$after=$(this).find(".clicked_text");$before.hide(),$after.show(),setTimeout(function(){$after.hide(),$before.show()},1e3)})}),$(document).on("change","#bundleProduct",function(){loadBundleProduct($(this).val())});function parsePrice(priceString){return priceString?parseFloat(priceString.replace(/[^\d,]/g,"").replace(",",".")):0}function loadBundleProduct(handle){const productBlock=$('.products_wrap_inner[data-handle="'+handle+'"]');if(!productBlock.length)return;let image=productBlock.data("image"),priceStr=productBlock.data("price"),compareStr=productBlock.data("compare"),variantId=productBlock.data("id");$("#variantContainer").html("");const variantSelect=productBlock.find(".bundlevariants");if(variantSelect.length){const clone=variantSelect.clone().show();$("#variantContainer").html(clone);const firstOption=clone.find("option:selected");image=firstOption.data("image")||image,priceStr=firstOption.data("price"),compareStr=firstOption.data("compare"),variantId=firstOption.data("id")}const price=parsePrice(priceStr),discountPerc=parseFloat($(".discount_perc").val())||0,discountedPrice=price-price*discountPerc/100;$("#bundleSecondImage").attr("src",image),$("#bundlePrice").html(`
2 <span class="bundle-compare-price">\u20AC ${price.toFixed(2).replace(".",",")}</span> 3 <span class="bundle-sale-price">\u20AC ${discountedPrice.toFixed(2).replace(".",",")}</span> 4 `),$("#bundleAddToCart").attr("data-id",variantId)}$(document).on("change","#variantContainer .bundlevariants",function(){const opt=$(this).find("option:selected");opt.data("image")&&$("#bundleSecondImage").attr("src",opt.data("image"));const priceStr=opt.data("price"),price=parsePrice(priceStr),discountPerc=parseFloat($(".discount_perc").val())||0,discountedPrice=price-price*discountPerc/100;$("#bundlePrice").html(` 5 <span class="bundle-compare-price">\u20AC ${price.toFixed(2).replace(".",",")}</span> 6 <span class="bundle-sale-price">\u20AC ${discountedPrice.toFixed(2).replace(".",",")}</span> 7 `),$("#bundleAddToCart").attr("data-id",opt.data("id"))}),$(document).ready(function(){loadBundleProduct($("#bundleProduct").val())}),$(document).on("click","#bundleAddToCart",function(){const variantId=$(this).data("id");$(this).addClass("btn--loading"),$(this).css("opacity","0.5"),$(this).css("pointer-events","none"),$(this).text("Adding.."),variantId&&$.ajax({type:"POST",url:"/cart/add.js",data:{id:variantId,quantity:1},dataType:"json",success:function(){document.dispatchEvent(new CustomEvent("cart:build")),window.scrollTo({top:0,behavior:"smooth"}),refreshCartSection(),$("#bundleAddToCart").removeClass("btn--loading")}})}); 8//# sourceMappingURL=/cdn/shop/t/198/assets/custom.js.map?v=170841400872865006981784697905
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.