PageSourceSearch

https://arneclo.com/cdn/shop/t/683/assets/mini-cookie-banner.js?v=24454373115915044571790249787

js arneclo.com collected 2026-09-25 05:08:55 UTC 3,990 bytes, 2 lines download raw bytes

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()}var CONSENT_POLL_INTERVAL=100,CONSENT_POLL_TIMEOUT=3e3;function submitConsent(miniBanner,realButtonId){var realButton=document.getElementById(realButtonId);if(!realButton){console.warn("mini-cookie-banner: #"+realButtonId+" not found, consent not recorded");return}realButton.click();var elapsed=0;(function check(){if(hasConsentCookie()){miniBanner.hidden=!0;return}if(elapsed+=CONSENT_POLL_INTERVAL,elapsed>=CONSENT_POLL_TIMEOUT){console.warn("mini-cookie-banner: consent cookie was not set");return}setTimeout(check,CONSENT_POLL_INTERVAL)})()}function init(){var miniBanner=document.getElementById("mini-cookie-banner");if(miniBanner){var backdrop=document.getElementById("mini-cookie-banner-backdrop");miniBanner.hidden=hasConsentCookie(),watchScrollLock(miniBanner),watchInertBackground(miniBanner,backdrop),trapFocus(miniBanner),watchFocus(miniBanner),document.getElementById("mini-cookie-banner__accept").addEventListener("click",function(){submitConsent(miniBanner,"acceptButton")}),document.getElementById("mini-cookie-banner__reject").addEventListener("click",function(){submitConsent(miniBanner,"declineButton")});var miniPreferences=document.getElementById("preferences-btn");miniPreferences&&miniPreferences.addEventListener("click",function(){openPreferences(miniBanner)}),watchOverlayClose(miniBanner)}}init()})();
2//# sourceMappingURL=/cdn/shop/t/683/assets/mini-cookie-banner.js.map?v=24454373115915044571790249787

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.