!function(){var e={2672:function(){$.fn.mwModal=function(e){const t=$.extend({fadeSpeed:300,scaleUp:!1,autoShow:!1,isModal:!1},e),n=t.fadeSpeed,o=$(this);let a=o.attr("data-modalid"),i=!0;function r(e){$(`#${e}`).unbind().on("click",".modal_close",(t=>{r(e),t.stopImmediatePropagation(),t.preventDefault()})),$(`#${e}`).fadeToggle(n),$("body").toggleClass("is-active-menu")}!1===t.isModal?o.click((e=>{e.preventDefault()})):a=$(this).attr("id"),t.autoShow||t.isModal||o.mouseup((e=>{!0===i&&(r(a),i=!1,setTimeout((()=>{i=!0}),n)),e.stopImmediatePropagation(),e.preventDefault()})),t.autoShow&&r(a)},$(".js-show-modal").each((function(){$(this).mwModal()})),$(".js-autoshow-modal").each((function(){$(this).mwModal({autoShow:!0})}))}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}!function(){"use strict";const e=1199,t=1023,o=767;new Map([["GB",{cultureCode:"en-GB",currencySymbol:"£"}],["US",{cultureCode:"en-US",currencySymbol:"$"}],["AU",{cultureCode:"en-AU",currencySymbol:"$"}],["CA",{cultureCode:"en-CA",currencySymbol:"$"}],["FR",{cultureCode:"fr-FR",currencySymbol:"€"}],["DE",{cultureCode:"de-DE",currencySymbol:"€"}],["IE",{cultureCode:"en-IE",currencySymbol:"€"}],["PL",{cultureCode:"pl-PL",currencySymbol:"zł"}],["NZ",{cultureCode:"en-NZ",currencySymbol:"$"}],["ES",{cultureCode:"es-ES",currencySymbol:"€"}]]);let a=null;function i(t){const n=$(t).next(".c-header__nav__l3.c-nav__level");if($(window).outerWidth()>=e&&($(".c-header__nav__l3.c-nav__level").hide(),n.length>0)){const e=$(t).text(),o=$(t).attr("href");n.find(".js-navL3Header").text(e).attr("href",o),n.show();const a=`${n.outerHeight()}px`;$(".c-header__nav__dropdown").css("minHeight",a)}}function r(){clearTimeout(a),$(".c-nav").removeClass("is-active"),$(".j-l1-cat.is-active").removeClass("is-active").find(".c-header__nav__dropdown").hide(),$(".c-header__nav").prev(".o-darkness").addClass("hidden").hide()}function c(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;if($(window).outerWidth()>=e){const e=t;r(),$(".c-nav").addClass("is-active");const o=$(e).addClass("is-active").find(".c-header__nav__dropdown");a=setTimeout((()=>{if(o.length>0){const t=o.find(".c-header__nav__l2 > li").first();$(".c-header__nav__l2.c-nav__level > li").removeClass("is-active-hover"),t.addClass("is-active-hover"),i(t);const n=o.find(".j-featured-image");$(n).attr("src",$(n).attr("data-img-src")),o.show(),i($(e).find(".c-header__nav__l2 li > a").first()),$(".c-header__nav").prev(".o-darkness").removeClass("hidden").show()}}),n),$(e).bind("mouseleave",(()=>{r()}))}}$(".c-header__menu-button").click((function(e){e.preventDefault(),$("body").toggleClass("is-active-menu"),$(this).toggleClass("is-active"),$(".c-header__nav").toggle().toggleClass("is-active"),$(".c-header__menu-button").hasClass("is-active")||($(".c-nav-scroller li a").css("fontWeight","normal"),$(".c-header__nav .is-active").removeClass("is-active")),$(".c-header__nav").prev(".o-darkness").toggle().click((()=>{$(".c-header__menu-button").trigger("click")}))})),$(".j-l1-cat > a").click((function(){if($(window).outerWidth()0)return $(this).toggleClass("is-active"),$(this).next(".c-header__nav__dropdown").find(".c-header__nav__l2").toggle(),!1})),$(".c-header__nav__l2 > li > a").click((function(){if($(window).outerWidth()0)return $(this).toggleClass("is-active"),$(this).next(".c-header__nav__l3").toggle(),!1})),$(".c-home-cat-links a, .c-nav-scroller a").click((function(){if($(window).outerWidth() a").filter((function(){return $(this).text()==t}));return!n.next().is(".c-header__nav__dropdown")&&!$(e).parent().hasClass("is-last")||(n.click(),setTimeout((()=>{$(".c-header__nav").animate({scrollTop:$(".j-l1-cat a.is-active")[0].offsetTop-100},400)}),50),(!$(".c-header__nav").hasClass("is-active")&&n.length>0&&n.next().is(".c-header__nav__dropdown")||$(e).parent().hasClass("is-last"))&&$(".c-header__menu-button").trigger("click"),!1)}})),$(window).outerWidth(){const e=$(".c-nav-scroller").scrollLeft();$(".c-nav-scroller").animate({scrollLeft:e+70}),$(".c-nav-scroller").animate({scrollLeft:e-70})}),1500),window.sessionStorage.setItem("mwSession",!0)),$(".c-header__nav .is-taphover > a").on("click",(function(e){$(".is-click-menu-test").length>0&&$(this).siblings().length>0&&(e.preventDefault(),$(this).parent().hasClass("is-active")?r():c($(this).parent(),0))})),$(".c-header__nav .is-taphover").on("mouseenter",(function(){0===$(".is-click-menu-test").length&&c(this)})),$(".c-header__nav__l2.c-nav__level > li > a").on("click",(function(t){$(window).outerWidth()>=e&&$(".is-click-menu-test").length>0&&(t.preventDefault(),$(".c-header__nav__l2.c-nav__level > li").removeClass("is-active-hover"),$(this).parent().addClass("is-active-hover"),i($(this)))})),$(".c-header__nav__l2.c-nav__level > li > a").on("mouseenter",(function(){$(window).outerWidth()>=e&&0===$(".is-click-menu-test").length&&($(".c-header__nav__l2.c-nav__level > li").removeClass("is-active-hover"),$(this).parent().addClass("is-active-hover"),i($(this)))})),$(".is-taphover").on("touchstart",(function(t){if($(window).outerWidth()>=e){const e=$(this);return!(!e.hasClass("hover")&&0!==e.find("ul").length)||($(".is-taphover a").parent().removeClass("hover"),e.addClass("hover"),t.preventDefault(),!1)}})),$(document).on("click",(e=>{0===$(e.target).closest(".c-profile-switcher").length&&$(".c-profile-switcher > ul").hide()}));let s=0,l=!1,d=0,u=0,h=$(window).width();const m=function(e,t){let n;return function(){n||(n=setTimeout((()=>{e.apply(this,arguments),n=null}),t))}}((function(){const t=$(window).width();if(t===h){if($(window).outerWidth()s?(l||0!==u||(u=e),e-u>400&&!l&&(document.querySelector(".sticky-header").style.transform="translateY(-100%)",document.querySelector(".sticky-header").classList.remove("is-sticky"),l=!0,d=e)):e0?e:null},g.getCultureCode=function(){const e=document.getElementById("hdnCultureCode").value;return e&&e.length>0?e:null},g.getLanguageCode=function(){const e=document.getElementById("hdnLanguageCode").value;return e&&e.length>0?e:null},g.setCookie=function(e,t,n){this.delCookie(e);const o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3);const a=`expires=${o.toGMTString()}`;document.cookie=`${e}=${t}; path=/;${a}`},g.getCookie=function(e){const t=`${e}=`,n=document.cookie.split(";");for(let e=0;e0){var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(window.atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(n)}return""},g.isInArray=function(e,t){let n=e.length;for(;0!==n;){if(e[n]===t)return!0;n-=1}return!1},g.pointerEvent=function(e){const t={x:0,y:0};if("touchstart"===e.type||"touchmove"===e.type||"touchend"===e.type||"touchcancel"===e.type){const n=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];t.x=n.pageX,t.y=n.pageY}else"mousedown"!==e.type&&"mouseup"!==e.type&&"mousemove"!==e.type&&"mouseover"!==e.type&&"mouseout"!==e.type&&"mouseenter"!==e.type&&"mouseleave"!==e.type||(t.x=e.pageX,t.y=e.pageY);return t},g.decodeHtml=function(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value},g.isDesktop=function(){return window.innerWidth>=1023&&!("ontouchstart"in window)},g.timeOut=e=>new Promise((t=>{setTimeout((()=>{t()}),e)}));let f=0;g.checkCertonaResponse=e=>{window.certonaResponse?e(window.certonaResponse):!window.certonaResponse&&f<10&&(f+=1,g.timeOut(400).then((()=>{g.checkCertonaResponse(e)})))},g.convertCountryCodeToProfileId=function(e){switch(e){case"US":return 2;case"AU":return 3;case"CA":return 4;case"FR":return 5;case"DE":return 6;case"IE":return 8;case"PL":return 9;case"NZ":return 10;case"ES":return 11;default:return 1}},g.confirm=function(e,t,n,o){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"confirmDialog";const i=``;document.body.insertAdjacentHTML("beforeend",i),document.body.addEventListener("click",(function(e){const o=e.target;o.classList.contains("modal_close")&&o.closest(`#${a}`)&&(e.preventDefault(),document.querySelector(`#${a}`).remove(),t(!1,n))})),document.body.addEventListener("click",(function(e){e.target.id===`${a}_ok`&&(e.preventDefault(),t(!0,n))}))},String.format||(String.format=function(e){const t=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,((e,n)=>void 0!==t[n]?t[n]:e))}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value(e,t){if(null==this)throw new TypeError('"this" is null or not defined');const n=Object(this),o=n.length>>>0;if(0===o)return!1;const a=0|t;let i=Math.max(a>=0?a:o-Math.abs(a),0);for(;i0&&"geolocation"in navigator&&navigator.geolocation.getCurrentPosition((function(){$(".j-geoLocate").show()})),$("#ClickCollectForm .j-storeSearch").click((function(e){e.preventDefault(),$("#ClickCollectForm").submit()})),$("#FooterStoreSearchForm .j-storeSearch").click((function(e){e.preventDefault(),$("#FooterStoreSearchForm").submit()})),$(".j-geoLocate").click((function(e){e.preventDefault(),"geolocation"in navigator&&navigator.geolocation.getCurrentPosition(w,_,p)})),$("#ClickCollectForm, #FooterStoreSearchForm, #StoreSearchForm").submit((function(e){const t=this;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return!0;const n=v.getCulture()?v.getCulture():"GB";let o,a=$(this).parent().parent().find(".j-storeInput").val();return a&&""!==a&&null!==a&&(a=`${a} ${n}`,o=new Promise((function(e){!function(e,t){const n=e;(new window.google.maps.Geocoder).geocode({address:n},(function(e,n){if(n===window.google.maps.GeocoderStatus.OK){const n=e[0].geometry.location,o=n.lat(),a=n.lng();"function"==typeof t&&t(!0,o,a)}else"function"==typeof t&&t(!1)}))}(a,(function(n,o,a){a?($(t).find(".j-latitude").val(o),$(t).find(".j-longitude").val(a),e(!0)):e(!1)}))})),o.then((function(){$(t).trigger("submit",!0)}))),!1}));const y="November 15, 2023 00:00:00",S="December 1, 2023 00:00:00";var k={localStorageName:"mup-profiles",sessionSledgehammer:"mup-sh",sledgehammerLimit:10,sledgehammerDailyLimit:3,sledgehammerGapMinutes:480,sledgehammerDaysLimit:1,sledgehammerExpiryDays:30,trackingExpiryHours:24,embargoIntervals:[{code:"GB",startDate:C(y,0),endDate:C(S,0)},{code:"US",startDate:C(y,-5),endDate:C(S,-5)},{code:"AU",startDate:C(y,10),endDate:C(S,10)},{code:"CA",startDate:C(y,-5),endDate:C(S,-5)},{code:"FR",startDate:C(y,1),endDate:C(S,1)},{code:"DE",startDate:C(y,1),endDate:C(S,1)},{code:"EU",startDate:C(y,0),endDate:C(S,0)},{code:"PL",startDate:C(y,1),endDate:C(S,1)},{code:"NZ",startDate:C(y,12),endDate:C(S,12)},{code:"ES",startDate:C(y,1),endDate:C(S,1)}],dotdigitalEnabledCountries:["GB","US","AU","CA","FR","DE","EU","PL","NZ","ES"],clearpayEnabledProfiles:[]};Date.now(),Date.now();function b(e){const t=function(){const e=localStorage.getItem(k.localStorageName);if(e){const t=JSON.parse(e);return Array.isArray(t)?t[0]:t}return null}();if(t){const n=function(e){const t=e;return t.has_email=!1,t.promo_code=null,t.promo_claimed=!1,t.subscribed=!1,t.first_visit_timestamp=Date.now(),t.last_sledgehammer_timestamp=null,t.daily_sledgehammer_timestamp=Date.now(),t.sledgehammer_count=0,t.sledgehammer_daily_count=0,t.sledgehammer_no_thanks=!1,t.sledgehammer_no_thanks_timestamp=null,t.basket_count=0,t.page_views=0,t}(t);n.country_code=""===e?"GB":e.toUpperCase(),function(e){localStorage.getItem(k.localStorageName)?localStorage.setItem(k.localStorageName,JSON.stringify(e)):localStorage.setItem(k.localStorageName,JSON.stringify(e))}(n)}}const L=v.getCookie("MW_PROFILESWITCH"),E=v.getCookie("MW_INTPROFILESWITCH");if(L&&!E){let e=$(`link[hreflang=${L}]`).attr("href");e=e.replace(/^https?:\/\/[^/]+/,"")||"/",$("#profileSwitchPopup").show(),$("#profileSwitchPopup .j-regional-modal__button").attr("href",e),v.delCookie("MW_PROFILESWITCH")}else L&&E&&(v.delCookie("MW_PROFILESWITCH"),v.delCookie("MW_INTPROFILESWITCH"));const D=v.getCookie("MW_LANGUAGESWITCH"),T=v.getCookie("MW_INTLANGUAGESWITCH");if(D&&!T){let e=$(`link[hreflang=${D}]`).attr("href");e=e.replace(/^https?:\/\/[^/]+/,"")||"/",$("#languageSwitchPopup").show(),$("#languageSwitchPopup .j-regional-modal__button").attr("href",e),v.delCookie("MW_LANGUAGESWITCH")}else D&&T&&(v.delCookie("MW_LANGUAGESWITCH"),v.delCookie("MW_INTLANGUAGESWITCH"));function I(e,t){b(t.href.replace(/[/]/g,"")),e?(t.isProfileChange?v.setCookie("MW_INTPROFILESWITCH",!0,1):v.setCookie("MW_INTLANGUAGESWITCH",!0,1),window.location.href=t.href):$(".c-profile-switcher ul").hide()}$(".c-profile-switcher > a").click((function(e){e.preventDefault(),$(this).next().toggle()})),$(".c-profile-switcher ul a").click((function(e){e.preventDefault();const t=parseFloat($(".c-bag-wrap__price").attr("data-baskettotal")),n={};if(n.href=$(this).attr("href"),n.isProfileChange=function(e,t){const n=t.match(/^\/([a-z]{2})(\/|$)/i),o=n?n[1]:null,a=e.match(/^\/([a-z]{2})(\/|$)/i);return o!==(a?a[1]:null)}(window.location.pathname,n.href),t>0&&n.isProfileChange){const e=$(this).attr("data-cancel"),t=$(this).attr("data-ok"),o=$(this).attr("data-title"),a=$(this).attr("data-copy");v.confirm(a,I,n,o,null,e,t)}else I(!0,n)}));n(2672);function A(e){const t=e=>{const t=e.getAttribute("data-src");t&&(e.src=t,e.removeAttribute("data-src"))};if("IntersectionObserver"in window){const n=(e,n)=>{e.forEach((e=>{e.isIntersecting&&e.target instanceof HTMLImageElement&&(t(e.target),n.unobserve(e.target))}))},o=new IntersectionObserver(n,{rootMargin:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px"});document.querySelectorAll(e).forEach((e=>o.observe(e)))}else{document.querySelectorAll(e).forEach(t)}}A(".lazy-load-image","200px");const W=()=>{var e;return null!==(e=v.getCulture())&&void 0!==e?e:"GB"},x=()=>{var e;return null!==(e=v.getLanguageCode())&&void 0!==e?e:"EN"};function N(e,t){e.find("label").removeClass("is-active");for(let n=0;n{document.querySelectorAll(".search-form").forEach((e=>{const t=e.querySelector('input[name="search"]'),n=e.querySelector(".search-dropdown"),o=n?.querySelector(".searchComponentContainer"),a=e.querySelector(".search-close"),i=e.querySelector("form"),r=e.dataset.searchtext||"",c=e=>{n&&(n.style.display=e?"block":"none",i?.classList.toggle("header-open",e))},s=async e=>{const t=await(async e=>{if(!e||e.length<2)return[];const t=`/api/search/suggestions?cultureCode=${v.getCultureCode()}&searchTerm=${e}`;try{const e=await fetch(t);return await e.json()}catch(e){return[]}})(e),n="GB"===W()?"":`${W()}/`;t&&t.length>0&&o?(o.innerHTML=t.map((e=>`\n
  • \n ${e.searchTerm}\n
  • \n `)).join(""),c(!0)):c(!1)};t&&t.addEventListener("input",((e,t)=>{let n;return o=>{clearTimeout(n),n=setTimeout((()=>e(o)),t)}})((e=>{const t=e.target.value;t&&s(t)}),300)),a&&a.addEventListener("click",(()=>{t&&(t.value="",c(!1))})),i?.addEventListener("submit",(e=>{e.preventDefault();const n=t?.value||"";n&&r&&function(e,t){if(e.length>=2&&e.length<=40&&!/[|&;$%@"?<>()+,/\\:*]/g.test(e)){const n="GB"===W()?"":`${W()}/`,o="EN"===x()?"":`${x()}/`,a=`${window.location.origin}/${n}${o}${t}/${encodeURIComponent(e)}/`;window.location.href=a.toLowerCase()}}(n,r)})),document.addEventListener("click",(e=>{!n||n.contains(e.target)||i?.contains(e.target)||c(!1)}))}))})),window.dataLayer=window.dataLayer||[],$("body").on("touchend",".j-toggle-next__touch",(function(e){e.stopPropagation(),$(window).outerWidth(){$(".j-regional-modal").fadeOut(300)})),$(".j-clearance-select").on("change",(function(){$(this).val().length>0&&(window.location=$(this).val())})),$(".o-account-menu").each((function(){const e=$(this),t=e.find(".t-header-block"),n=e.find(".js-toggle-hide");t.click((()=>!(e.hasClass("is-mobile-only")&&$(window).outerWidth()>=o)&&(n.toggle(),!e.hasClass("is-mobile-only")&&(!e.hasClass("is-no-text-toggle")&&void 0))))})),document.querySelector(".c-bag-wrap__price")){const e=+document.querySelector(".c-bag-wrap__price").getAttribute("data-baskettotal"),t=document.querySelector("#hdn_Standard"),n=document.querySelector("#hdn_NextDay");let o=null;if(t){const n=+t.getAttribute("data-threshold")||0,a=+t.getAttribute("data-price");e&&n&&a&&e>=n&&(o=a)}if(n){const t=+n.getAttribute("data-threshold")||9999,a=+n.getAttribute("data-price");e&&t&&a&&e>=t&&(o=a)}if(o){const e=document.querySelector(".c-basket-summary__costs > div");if(e){const t=document.createElement("div"),n=document.createElement("div");t.setAttribute("class","basket-delivery col-6"),t.innerHTML="Delivery",n.setAttribute("class","basket-delivery col-6 is-right is-strikethrough"),n.innerHTML=`£${parseFloat(o).toFixed(2)}`,e.appendChild(t),e.appendChild(n)}}}document.addEventListener("DOMContentLoaded",(function(){const e=document.querySelector(".j-mob-search"),t=document.querySelector(".c-header-mobile-search");let n=!1;if(e&&t){const o=t.querySelector("input");o&&e.addEventListener("click",(function(){t.style.display=n?"none":"block",n||o.focus(),n=!n}))}}));const M=document.querySelectorAll(".mwui_LinksBlock_LinksBlock-module__titleButton"),j="https://img.cdn.mountainwarehouse.com/site-icons/2025/16px/",P=`${j}plus.svg`,F=`${j}minus.svg`;M.forEach((e=>{const t=e.closest("h2.mwui_LinksBlock_LinksBlock-module__header"),n=t?t.nextElementSibling:null,o=e.querySelector("img.mwui-icon");n&&n.matches("ul.mwui_LinksBlock_LinksBlock-module__content")&&o&&e.addEventListener("click",(()=>{n.classList.toggle("is-visible");const e=n.classList.contains("is-visible");o.src=e?F:P}))}))}()}(); //# sourceMappingURL=core.js.map