1(function(){function hasConsentCookie(){return/(?:^|; )CookieInformationConsent=/.test(document.cookie)}function openPreferences(miniBanner){var overlay=document.getElementById("coiOverlay");overlay&&(miniBanner.hidden=!0,typeof showCookieBanner=="function"&&showCookieBanner(),overlay.style.setProperty("display","flex","important"),typeof toggleDetails=="function"&&toggleDetails("show_details"))}function watchOverlayClose(miniBanner){var overlay=document.getElementById("coiOverlay");if(!overlay){var observer=new MutationObserver(function(){var found=document.getElementById("coiOverlay");found&&(observer.disconnect(),watchOverlayClose(miniBanner))});observer.observe(document.body,{childList:!0,subtree:!0});return}new MutationObserver(function(){overlay.getAttribute("aria-hidden")==="true"&&(miniBanner.hidden=!0,overlay.style.removeProperty("display"))}).observe(overlay,{attributes:!0,attributeFilter:["aria-hidden"]})}function watchScrollLock(miniBanner){function syncScrollLock(){document.documentElement.classList.toggle("mini-cookie-banner-no-scroll",!miniBanner.hidden)}new MutationObserver(syncScrollLock).observe(miniBanner,{attributes:!0,attributeFilter:["hidden"]}),syncScrollLock()}var FOCUSABLE_SELECTOR='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';function trapFocus(miniBanner){miniBanner.addEventListener("keydown",function(event){if(event.key==="Tab"){var focusables=miniBanner.querySelectorAll(FOCUSABLE_SELECTOR);if(focusables.length){var first=focusables[0],last=focusables[focusables.length-1];event.shiftKey&&document.activeElement===first?(event.preventDefault(),last.focus()):!event.shiftKey&&document.activeElement===last&&(event.preventDefault(),first.focus())}}})}function watchInertBackground(miniBanner,backdrop){function syncInert(){var isOpen=!miniBanner.hidden;Array.prototype.forEach.call(document.body.children,function(el){el===miniBanner||el===backdrop||(isOpen?el.setAttribute("inert",""):el.removeAttribute("inert"))})}new MutationObserver(syncInert).observe(miniBanner,{attributes:!0,attributeFilter:["hidden"]}),syncInert()}function watchFocus(miniBanner){var lastFocused=null;function syncFocus(){if(miniBanner.hidden)lastFocused&&typeof lastFocused.focus=="function"&&(lastFocused.focus(),lastFocused=null);else{lastFocused=document.activeElement;var firstFocusable=miniBanner.querySelector(FOCUSABLE_SELECTOR);firstFocusable&&firstFocusable.focus()}}new MutationObserver(syncFocus).observe(miniBanner,{attributes:!0,attributeFilter:["hidden"]}),miniBanner.hidden||syncFocus()}function init(){var miniBanner=document.getElementById("mini-cookie-banner");if(miniBanner){var backdrop=document.getElementById("mini-cookie-banner-backdrop");miniBanner.hidden=!0,watchScrollLock(miniBanner),watchInertBackground(miniBanner,backdrop),trapFocus(miniBanner),watchFocus(miniBanner),document.getElementById("mini-cookie-banner__accept").addEventListener("click",function(){miniBanner.hidden=!0;var acceptButton=document.getElementById("acceptButton");acceptButton&&acceptButton.click()}),document.getElementById("mini-cookie-banner__reject").addEventListener("click",function(){miniBanner.hidden=!0;var declineButton=document.getElementById("declineButton");declineButton&&declineButton.click()});var miniPreferences=document.getElementById("preferences-btn");miniPreferences&&miniPreferences.addEventListener("click",function(){openPreferences(miniBanner)}),watchOverlayClose(miniBanner),showWhenCookieInformationReady(miniBanner)}}function showWhenCookieInformationReady(miniBanner){if(window.CookieInformation&&typeof window.CookieInformation.wasBannerShown=="function"&&window.CookieInformation.wasBannerShown()){miniBanner.hidden=!1;return}window.addEventListener("CookieInformationFormShown",function(){miniBanner.hidden=!1},{once:!0})}init()})(); 2//# sourceMappingURL=/cdn/shop/t/956/assets/mini-cookie-banner.js.map?v=94001957380439860871790928958
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.