try { 'use strict';(function(){"function"!==typeof window.CustomEvent&&(window.CustomEvent=function(c,a){a=a||{bubbles:!1,cancelable:!1,detail:null};var b=document.createEvent("CustomEvent");b.initCustomEvent(c,a.bubbles,a.cancelable,a.detail);return b});window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach)})(); } catch(e) { console.error('Uncaught excption in module-file "polyfills.min.js": ', e); }try { 'use strict';(function(){function g(b){return decodeURIComponent(atob(b).split("").map(function(a){return"%"+("00"+a.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function e(){window.mindShiftNav.cookieUtil.delete("NavHeaderMessage","/");f()}function f(){document.querySelector("[data-n-blocked-customer]").classList.toggle("n-header__blocked-customer--hidden")}const d={INFO:{cssClass:"m-alert--info",icon:"[data-n-blocked-customer-info-icon]"},DANGER:{cssClass:"m-alert--danger",icon:"[data-n-blocked-customer-danger-icon]"},
SUCCESS:{cssClass:"m-alert--success",icon:"[data-n-blocked-customer-success-icon]"},WARN:{cssClass:"m-alert--warning",icon:"[data-n-blocked-customer-warning-icon]"},NEUTRAL:{cssClass:"m-alert--gray",icon:"[data-n-blocked-customer-gray-icon]"}};var c=window.mindShiftNav.cookieUtil.get("NavHeaderMessage");c&&(c=function(b){try{const a=JSON.parse(g(b));if(a.title&&a.text)return d[a.level]||(a.level="WARN"),a.icon=d[a.level].icon,a.cssClass=d[a.level].cssClass,a}catch(a){}}(c))&&(function(b){document.querySelector("[data-n-blocked-customer-headline]").innerHTML=
b.title;document.querySelector("[data-n-blocked-customer-message]").innerHTML=b.text;document.querySelector("[data-n-blocked-customer-main]").classList.add(b.cssClass);document.querySelector(b.icon).classList.remove("m-alert__icon-hidden");f()}(c),c=document.querySelector("[data-n-blocked-customer__close]"),c.addEventListener("click",e),c.addEventListener("touchstart",e,{passive:!0}))})(); } catch(e) { console.error('Uncaught excption in module-file "blocked-customer.min.js": ', e); }try { 'use strict';(function(){function a(){window.mindShiftNav.cookieUtil.setSession("didDismissIEAlert","true");b()}function b(){c.classList.toggle("n-header__ie-info--hidden")}var d=document.querySelector("[data-n-ieInfoAlert__close]"),c=document.querySelector("[data-n-ieInfoAlert]");c&&(null!=navigator.userAgent.match(/(MSIE\s[\d\.]+|Trident\/[\d\.]+|IEMobile\/[\d\.]+)/)&&!window.mindShiftNav.cookieUtil.get("didDismissIEAlert")&&b(),d.onclick=a,d.ontouchstart=a)})(); } catch(e) { console.error('Uncaught excption in module-file "detectIE.min.js": ', e); }try { 'use strict';(function(){function l(a){e&&e.setAttribute("hidden","");window.mindShiftNav.cookieUtil.set("lidl_locale",a||window.mindShiftNav.locale,356)}function p(){document.body.classList.add("n-body--no-scroll");e.removeAttribute("hidden")}function r(a,b){const c={},q=window.location.hash;for(let m in a){const n=a[m],d=new URL(n,"https://test.lidl.de"),f=new URLSearchParams(d.search);for(const [t,u]of b)f.set(t,u);f.has("showLangPopup")&&f.delete("showLangPopup");d.search=f.toString();!d.hash&&
q&&(d.hash=q);n.startsWith("https:")||n.startsWith("http:")?c[m]=d.toString():c[m]=d.pathname+d.search+(d.hash||"")}return c}const g=document.querySelectorAll(".n-header__lang-navigation-link,.n-header__lang-popup-modal-button");if(g.length){var h=window.navLangUrls||{};window.navLangUrls={replace:a=>{Object.assign(h,a);Object.keys(h).length&&g.forEach(b=>{let c=b.getAttribute("hreflang").toLowerCase();h.hasOwnProperty(c)&&b.setAttribute("href",h[c])})},get:()=>{let a={};g.forEach(b=>{let c=b.getAttribute("hreflang").toLowerCase();
b=b.getAttribute("href");a.hasOwnProperty(c)||(a[c]=b)});return a}};window.navLangUrls.replace();g.forEach(a=>{a.addEventListener("click",b=>{b=b.currentTarget.getAttribute("hreflang").toLowerCase();l(`${b}-${window.mindShiftNav.country||"BE"}`)})});var e=document.querySelector(".n-header__lang-popup-wrapper");if(e){window.mindShiftNav.cookieUtil.get("lidl_locale")||("/"===location.pathname?p():l());document.querySelector(".n-header__lang-popup-modal-close-button").addEventListener("click",()=>{document.body.classList.remove("n-body--no-scroll");
l()});var k=new URLSearchParams(window.location.search);if("true"===k.get("showLangPopup")){const a=window.navLangUrls.get();k=r(a,k);window.navLangUrls.replace(k);p()}}}})(); } catch(e) { console.error('Uncaught excption in module-file "language-switch.min.js": ', e); }try { 'use strict';(function(){class g{constructor(a,b){this.container=a;b&&this.install(b)}checkVisibility(a){return a.checkVisibility?a.checkVisibility():null!==a.offsetParent||!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)}getFocusableElements(){return this.container.querySelectorAll('button:not([tabindex\x3d"-1"]), [href]:not([tabindex\x3d"-1"]), input:not([tabindex\x3d"-1"]),                select:not([tabindex\x3d"-1"]), textarea:not([tabindex\x3d"-1"]), [tabindex]:not([tabindex\x3d"-1"])')}getFirstFocusableElement(){const a=
this.getFocusableElements();for(const b of a)if(this.checkVisibility(b))return b}getLastFocusableElement(){const a=this.getFocusableElements();for(let b=a.length-1;0<=b;b--){const c=a[b];if(this.checkVisibility(c))return c}}hasFocusableElements(){return!!this.getFirstFocusableElement()}isLastFocusableElement(a){return a===this.getLastFocusableElement()}install(a){(null==this?0:this.container.focusTrap)&&this.container.focusTrap.destroy();this.opener=a;this.opener.addEventListener("focusout",this,
{passive:!0});this.container.addEventListener("focusout",this,{passive:!0});this.opener.addEventListener("keydown",this);this.container.addEventListener("keydown",this);this.updateFocus();this.container.focusTrap=this}destroy(){this.opener.removeEventListener("focusout",this);this.container.removeEventListener("focusout",this);this.container.removeEventListener("keydown",this);this.container.focusTrap=void 0}updateFocus(){const a=this.getFirstFocusableElement();a&&a.focus({focusVisible:!0})}handleEvent(a){if("focusout"===
a.type){if(this._disableFocusOut)return;if(a.target===this.opener){(a=this.getFirstFocusableElement())&&a.focus({focusVisible:!0});return}!this.isLastFocusableElement(a.target)||a.relatedTarget&&this.container.contains(a.relatedTarget)||this.opener.focus({focusVisible:!0})}if("keydown"===a.type){const f="ArrowUp"===a.key||"ArrowLeft"===a.key,e="ArrowDown"===a.key||"ArrowRight"===a.key;if(f||e)if(a.target===this.opener){if(a.preventDefault(),a.stopPropagation(),a=e?this.getFirstFocusableElement():
this.getLastFocusableElement())try{this._disableFocusOut=!0,a.focus({focusVisible:!0})}finally{this._disableFocusOut=!1}}else if(this.container.contains(a.target)){var b=this.getFocusableElements(),c;if(document.activeElement){for(const d of b){b=this.checkVisibility(d);if(h&&b){a.preventDefault();a.stopPropagation();d.focus({focusVisible:!0});return}if(d===document.activeElement||d.contains(document.activeElement)||document.activeElement.contains(d)){if(f&&c){a.preventDefault();a.stopPropagation();
c.focus({focusVisible:!0});return}var h=e}b&&(c=d)}f&&(a.preventDefault(),a.stopPropagation(),this.opener.focus({focusVisible:!0}));e&&(a.preventDefault(),a.stopPropagation(),this.opener.focus({focusVisible:!0}))}}}}}window.navFocusTrap=g})(); } catch(e) { console.error('Uncaught excption in module-file "focus-trap.min.js": ', e); }try { 'use strict';(function(){function v(){b.addEventListener("touchstart",()=>{(b.preventNavigation=d.accountFlyoutFragment&&d.accountFlyoutFragment.classList.contains(d.accountFlyoutHiddenClass))&&e()},{passive:!0});k.addEventListener("touchstart",f,{passive:!0});b.ontouchend=w;d.accountFlyoutFragment.addEventListener("touchstart",a=>a.stopPropagation(),{passive:!0});d.accountFlyoutFragment.addEventListener("click",a=>a.stopPropagation())}function x(a){const c=window.mindShiftNav.cookieUtil.get("CookieConsent"),
l=window.mindShiftNav.cookieUtil.get("OptanonConsent"),y=window.mindShiftNav.cookieUtil.get("inSession");(c||l)&&y||(window.mindShiftNav.cookieUtil.setSession("inSession","true"),!c&&!l||a||(b.removeEventListener("mouseenter",e),b.removeEventListener("mouseleave",q),e(),document.addEventListener("mouseup",t)))}function t(a){if(!b.contains(a.target)||k.contains(a.target))f(),b.onmouseenter=e,b.onmouseleave=q,document.removeEventListener("mouseup",t)}function z(a){g&&(g.onclick=function(c){c.preventDefault()})}
function w(a){g&&(g.onclick=c=>{b.preventNavigation&&c.preventDefault()},b.ontouchend=null,a.preventDefault())}function A(){b.addEventListener("keydown",a=>{a.target!==b||"Enter"!==a.code&&13!==a.keyCode||(a.preventDefault(),a.stopPropagation(),B()?f():e(a,b))},!0);d.accountFlyoutFragment.addEventListener("keydown",a=>{"Escape"!==a.key&&"Esc"!==a.key&&27!==a.keyCode||!d.accountFlyoutFragment.contains(a.target)||f()})}var m=document.querySelector(".n-header__root");m=m&&m.classList.contains("one-cx");
var r=function(){},n=function(){return!this.accountFlyoutFragment.classList.contains(this.accountFlyoutHiddenClass)},p=function(a,c){this.accountFlyoutFragment&&(this.accountFlyoutFragment.classList.remove(this.accountFlyoutHiddenClass),this.accountFlyoutHiddenDelayedClass&&this.accountFlyoutFragment.classList.remove(this.accountFlyoutHiddenDelayedClass),c&&new window.navFocusTrap(this.accountFlyoutFragment,c))};const u=function(a,c){this.accountFlyoutFragment&&(this.accountFlyoutFragment.classList.add(this.accountFlyoutHiddenClass),
a=this.accountFlyoutFragment,a.focusTrap&&(a.focusTrap.opener&&a.focusTrap.opener.focus({focusVisible:!0}),a.focusTrap.destroy()),this.accountFlyoutHiddenDelayedClass&&(c?this.accountFlyoutFragment.classList.add(this.accountFlyoutHiddenDelayedClass):this.accountFlyoutFragment.classList.remove(this.accountFlyoutHiddenDelayedClass)))},d=m?{accountFlyoutFragment:document.querySelector("[data-n-header__account-flyout-wrapper]"),accountFlyoutHiddenClass:"n-navigation__menu-navitem-flyout-group-wrapper--hidden",
accountFlyoutHiddenDelayedClass:"n-navigation__menu-navitem-flyout-group-wrapper--hidden_delayed",displayAccountFlyout:p,hideAccountFlyout:function(){u.call(this);this.accountFlyoutFragment.dispatchEvent(new Event("menu-item--deactivate",{bubbles:!0}))},isAccountFlyoutShown:n,toggleUserIndicator:r}:{accountFlyoutFragment:document.querySelector("[data-n-header__account-flyout-wrapper]"),accountFlyoutHiddenClass:"n-header__account-flyout__wrapper--hidden",accountFlyoutHiddenDelayedClass:"",displayAccountFlyout:p,
hideAccountFlyout:u,isAccountFlyoutShown:n,toggleUserIndicator:function(a){a=a?"login":"logout";const c=document.querySelector(`.${`n-header__user-navigation-${a}-icon--hidden`}`);c.classList.remove(`${`n-header__user-navigation-${a}-icon--hidden`}`);c.parentElement.classList.add(`n-header__user-navigation-indicator--${a}`)}},e=d.displayAccountFlyout.bind(d),f=d.hideAccountFlyout.bind(d),B=d.isAccountFlyoutShown.bind(d),q=a=>f(a,!0);r=d.toggleUserIndicator;var h=decodeURIComponent(document.cookie);
const b=document.querySelector("[data-n-header__user-navigation-entry]");if(b){n=document.querySelector("[data-n-account-flyout--state-not-logged-in]");p=document.querySelector("[data-n-account-flyout--state-logged-in]");var k=document.querySelector("[data-n-account-flyout__btn-cancel]"),g=document.querySelector("[data-n-header__icon-link]");g||(g=b.querySelector(".n-header__icon-link"));h=!!h.match(/authToken=\w/);r(h);p&&(p.hidden=!h);n&&(n.hidden=h);d.accountFlyoutFragment&&(b.addEventListener("mouseenter",
e),b.addEventListener("mouseleave",q),k&&(k.onclick=f),m?v():(b.addEventListener("touchstart",e,{passive:!0}),k.addEventListener("touchstart",f,{passive:!0}),b&&(b.ontouchend=z)),A(),x(h));(function(){const a=document.querySelector("[data-n-login-link]"),c=document.querySelector("[data-n-logout-link]"),l=document.querySelector("[data-n-register-link]");a&&(a.href="/user-api/login?step\x3dlogin\x26redirect\x3d"+encodeURIComponent(location.href));l&&(l.href="/user-api/login?step\x3dregister\x26redirect\x3d"+
encodeURIComponent(location.href));c&&(c.href="/user-api/logout?redirect\x3d"+encodeURIComponent(location.origin))})()}})(); } catch(e) { console.error('Uncaught excption in module-file "account-flyout.min.js": ', e); }try { 'use strict';(function(){(function(){const e=document.getElementById("m-burger-menu-checkbox");e&&e.addEventListener("change",function(f){f.target.checked?(document.querySelector("[data-n-burger-menu]").classList.add("is-active"),document.body.classList.add("n-body--no-scroll")):(document.body.classList.remove("n-body--no-scroll"),document.querySelector("[data-n-burger-menu]").classList.remove("is-active"))})})()})();
(function(){function e(a=function(){},c=66){var b;window.addEventListener("resize",function(){b||(b=setTimeout(function(){b=null;a()},c))})}function f(a,c=!1){document.dispatchEvent(new CustomEvent("open",{detail:{opened:a,"breakpoint-has-changed":c}}))}const g=document.getElementById("m-burger-menu-checkbox");g&&(g.addEventListener("change",function(a){f(a.target.checked)}),e(()=>{960<=window.innerWidth&&(f(!1,!0),g.checked=!1)},200));(function(){function a(d){return/^\d$/.test(d)?"0"+d:d}const c=
document.querySelector(".n-header__pdp-layer-countdown-container");if(c)var {distance:b,days:h,hours:k,minutes:l,seconds:m}=c.dataset,q=setInterval(function(){b-=1E3;var d=Math.floor(b%864E5/36E5),n=Math.floor(b%36E5/6E4),p=Math.floor(b%6E4/1E3);c.innerHTML=`<div class="n-header__pdp-layer-countdown">${a(Math.floor(b/864E5))} <span class="n-header__pdp-layer-countdown--small">${h}</span></div>
                                <div class="n-header__pdp-layer-countdown">${a(d)} <span class="n-header__pdp-layer-countdown--small">${k}</span></div>
                                <div class="n-header__pdp-layer-countdown">${a(n)}  <span class="n-header__pdp-layer-countdown--small">${l}</span></div>
                                <div class="n-header__pdp-layer-countdown">${a(p)}  <span class="n-header__pdp-layer-countdown--small">${m}</span></div>`;0>b&&(clearInterval(q),c.innerHTML="")},1E3)})()})(); } catch(e) { console.error('Uncaught excption in module-file "header.min.js": ', e); }try { 'use strict';(function(){(function(){async function N(){if(!n&&!p){p=!0;try{const a=await fetch(`/n${A?"/"+A:""}/mobile-navigation`);if(200===a.status){const e=await a.text();h.insertAdjacentHTML("beforeend",e)}}catch(a){console.warn("Cannot Load Mobile Navigation",a)}finally{p=!1}}}function O(a){const e=new AbortController,b=new window.navFocusTrap(a);try{b.hasFocusableElements()&&(b.getFirstFocusableElement().addEventListener("focus",d=>{(d=d.relatedTarget)&&b.install(d)},{signal:e.signal,passive:!0,
once:!0}),b.updateFocus())}finally{e.abort()}}function B(a,e){a?C.classList.add("n-header__flyout-wrapper--visible"):C.classList.remove("n-header__flyout-wrapper--visible");var b=l.querySelector(".n-header__flyout-wrapper");a?O(b):b.focusTrap&&b.focusTrap.destroy();if(e.detail.isOneCx){e=(a=e.detail.opened)?"add":"remove";b=document.querySelector("[data-n-onecx-menu-cross]");var d=b.previousElementSibling;document.querySelector("[data-header-root]").classList.toggle("n-header-root--open-subnavigation",
a);b&&(document.body.classList[e]("n-body--no-scroll"),b.style.display=a?"block":"none",d.style.display=a?"none":"block")}}var l=document.querySelector("header");if(l){var h=l.querySelector('[data-controller\x3d"header/navigation"]'),m=l.querySelector('[data-controller\x3d"header/navigation/back"]'),C=l.querySelector(".n-header__flyout-wrapper"),D=document.querySelector("#last-breadcrumb-id"),E=document.querySelector(".n-header__brand-navigation--flyout"),F=D&&D.dataset.lastActiveId,q=null,G=null,
H=[],r=[],t=null,n=!1,p=!1,I,A=null==(I=window.mindShiftNav)?void 0:I.locale,P=function(){function a(){var c=d.split(".");c.splice(-1,1);c.reduce((f,g,u)=>{f=0===u?g:f+"."+g;e.push(f);return f},"")}q=l.querySelectorAll('[data-controller\x3d"header/navigation/menu"]');G=l.querySelectorAll('[data-controller\x3d"header/navigation/link"]');if(h&&!(1>q.length)){var e=[],b={},d="",J=m?m.dataset.target:"";q.forEach(function(c,f){H.push({el:c,display:c.classList.contains("d-none")});b[c.dataset.identifier]=
c;if(!d&&F){f=c.getElementsByTagName("a");for(let g=0;g<f.length;g++)if(f[g].dataset.nodeId===F){d=f[g].dataset.target||c.dataset.identifier;break}}});var v=b[Object.keys(b)[0]].dataset.identifier;""===d||d===v?d=v:(e.push(v),a());for(var w in b)w===d?b[w].classList.remove("d-none"):b[w].classList.add("d-none");var K=function(){0>=e.length?(h.classList.remove("n-header__navigation-submenu--visible"),E.classList.remove("d-none"),m.tabIndex=-1):(h.classList.add("n-header__navigation-submenu--visible"),
E.classList.add("d-none"),m.tabIndex=0)},z=function(c){if(c!==d){(1<arguments.length&&void 0!==arguments[1]?arguments[1]:1)&&e.push(d);K();b[c].classList.remove("d-none");var f=0;b[c].offsetLeft>h.offsetLeft?(h.scrollLeft=0,f=h.clientWidth):h.scrollLeft=h.clientWidth;(function(g,u){var x=h.scrollLeft,L=g-x,y=0,M=()=>{y+=20;var k=y;k/=200;1>k?k=L/2*k*k+x:(k--,k=-L/2*(k*(k-2)-1)+x);h.scrollLeft=k;400>y?setTimeout(M,20):u()};M()})(f,function(){b[d].classList.add("d-none");d=c;var g=l.querySelector(".n-header__flyout-wrapper");
g.focusTrap&&g.focusTrap.updateFocus()})}};m&&(t=function(){J?z(J):1<=e.length&&z(e.pop(),!1)},m.addEventListener("click",t));G.forEach(function(c){var f=function(g){c.dataset.target&&(g.preventDefault(),z(c.dataset.target))};r.push({listener:f,element:c});c.addEventListener("click",f)});K();n=!0}},Q=function(){n&&(H.forEach(function(a){a.display?a.el.classList.add("d-none"):a.el.classList.remove("d-none")}),h.classList.remove("n-header__navigation-submenu--visible"),r.forEach(function(a){a.element.removeEventListener("click",
a.listener,!1)}),r=[],m.removeEventListener("click",t,!1),n=!1)};document.addEventListener("open",async function(a){a.detail.opened?(await N(),P(),B(!0,a)):a.detail["breakpoint-has-changed"]?Q():B(!1,a)})}})()})(); } catch(e) { console.error('Uncaught excption in module-file "subnavigation.min.js": ', e); }try { 'use strict';(function(){function n(c){function k(){var a;(a=!(window.matchMedia("(min-width: 960px)").matches&&!(960<b.scrollWidth)))||(window.clearTimeout(e),b.removeEventListener("scroll",d),window.removeEventListener("resize",d),a=!1);a&&(f.style.display=0===b.scrollLeft?"none":"",g.style.display=b.scrollLeft+b.clientWidth===b.scrollWidth?"none":"")}function d(){window.clearTimeout(e);e=window.setTimeout(k,100)}function p(){l()}function q(){l(!0)}function l(a){const r=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);
a={left:b.scrollLeft+b.clientWidth/2*(a||-1)};r||(a.behavior="smooth");b.scroll(a)}const m=document.createRange();let b,f,g,e;window.setTimeout(function(){b=c.querySelector("[data-n-header__slider-track]");if(!window.matchMedia("(min-width: 960px)").matches||960<b.scrollWidth){b.addEventListener("scroll",d);window.addEventListener("resize",d);var a=c.querySelector("[data-n-header__slider-button-template]");(f=m.createContextualFragment(a.innerHTML).firstElementChild).addEventListener("click",p);c.appendChild(f);
a=c.querySelector("[data-n-header__slider-button-template--right]");(g=m.createContextualFragment(a.innerHTML).firstElementChild).addEventListener("click",q);c.appendChild(g);k()}},2E3)}var h=document.querySelectorAll("[data-n-header__slider]");Array.prototype.forEach.call(h,function(c){new n(c)});(h=document.querySelector(".n-header__main-navigation-link--subactive"))&&h.scrollIntoView({inline:"center",block:"nearest"})})(); } catch(e) { console.error('Uncaught excption in module-file "slider.min.js": ', e); }try { 'use strict';(function(){function b(d){d?a.classList.add("n-header__sticky-searchbar"):a.classList.remove("n-header__sticky-searchbar");window.mindShiftNav&&window.mindShiftNav.isOneCxEnabled||(document.body.setAttribute("data-top-nav-state",d?"sticky":""),document.documentElement.style.setProperty("--top-nav-height",d?a.offsetHeight+"px":0))}function f(){!c&&960>window.innerWidth&&(window.addEventListener("scroll",g),c=!0);c&&960<=window.innerWidth&&(b(!1),window.removeEventListener("scroll",g),
c=!1)}function g(){100>window.scrollY?b(!1):(window.scrollY>e&&a.classList.contains("n-header__sticky-searchbar")&&b(!1),window.scrollY<=e&&!a.classList.contains("n-header__sticky-searchbar")&&(document.documentElement.getAttribute("data-scrolling-to-anchor")||b(!0)));e=window.scrollY}if(!window.mindShiftNav||!window.mindShiftNav.isOneCxEnabled){var e=0,a=document.querySelector("#search-input-hook"),c=!1;a&&(f(),window.addEventListener("resize",f))}})(); } catch(e) { console.error('Uncaught excption in module-file "sticky-mobile-searchbar.min.js": ', e); }try { 'use strict';(function(){function g(a){a.matches?q():r()}function q(){document.querySelectorAll("[data-mdd-level2-id]").forEach(a=>{a.addEventListener("mouseenter",h);a.addEventListener("mouseleave",d);a.addEventListener("click",k)});b.addEventListener("mouseleave",d);document.querySelector(".n-header__mdd-close").addEventListener("click",e)}function r(){document.querySelectorAll("[data-mdd-level2-id]").forEach(a=>{a.removeEventListener("mouseenter",h);a.removeEventListener("mouseleave",d);a.removeEventListener("click",
k)});b.removeEventListener("mouseleave",d);document.querySelector(".n-header__mdd-close").removeEventListener("click",e)}function h(a){l(a.target.dataset.mddLevel2Id,!b.dataset.mddCurrentId)}function d(a){a.relatedTarget&&(a.relatedTarget.closest("[data-mdd-level2-id]")||a.relatedTarget.closest(".n-header__mdd-wrapper"))||e()}function k(a){const c=b.dataset.mddCurrentId,m=a.target.closest("[data-mdd-level2-id]").dataset.mddLevel2Id;c!==m&&(a.preventDefault(),l(m))}function l(a,c){clearTimeout(f);
f=setTimeout(()=>{b.dataset.mddCurrentId=a;n(a)},c?500:0)}function e(){clearTimeout(f);delete b.dataset.mddCurrentId;n()}function n(a){var c=b.querySelector(".n-header__mdd__level-2--active");c&&c.classList.remove("n-header__mdd__level-2--active");(c=document.querySelector(".n-header__main-navigation-link--subhover"))&&c.classList.remove("n-header__main-navigation-link--subhover");a&&(b.querySelector(`[data-mdd-id='${a}']`).classList.add("n-header__mdd__level-2--active"),document.querySelector(`[data-mdd-level2-id='${a}'] > a`).classList.add("n-header__main-navigation-link--subhover"))}
const b=document.querySelector(".n-header__mdd-wrapper");if(b){var f,p=window.matchMedia("(min-width: 960px)");p.addEventListener("change",g);g(p)}})(); } catch(e) { console.error('Uncaught excption in module-file "mega-drop-down.min.js": ', e); }
