1import{l as i,e as u,d as m}from"../bodyScrollLock.esm-D_VS9l3p.js";import{C as g}from"../console-Ba7-XqhG.js";import"../_commonjsHelpers-Cpj98o6Y.js";import"../js.cookie-Cz0CWeBA.js";const d=g("Modals");let n;const s={onShow:(e,a)=>{let l=e.dataset.modalName||e.id,t=e.querySelector(".modal__overlay");n?t.style.zIndex=n++:(n=window.getComputedStyle(t).zIndex,n++),d.log(`${l} opened`),t.scrollTop=0,m(t,{reserveScrollBarGap:!0,allowTouchMove:o=>{for(;o&&o!==document.body;){try{if(o.classList.contains("iti-container"))return!0}catch{}o=o.parentNode}return!1}}),t.tabIndex=0;for(let o of e.querySelectorAll("input, textarea, select, radio, option, button, a"))o.tabIndex=0;e.dispatchEvent(new CustomEvent("onShow",{detail:{trigger:a}}))},onClose:(e,a)=>{let l=e.dataset.modalName||e.id,t=e.querySelector(".modal__overlay");d.log(`${l} closed`),u(t),t.tabIndex=-1;for(let o of e.querySelectorAll("input, textarea, select, radio, option, button, [tabindex], a"))o.tabIndex=-1;e.dispatchEvent(new CustomEvent("onClose",{detail:{trigger:a}}))},openTrigger:"data-open-do-not-use",closeTrigger:"data-close-do-not-use",disableFocus:!0,awaitOpenAnimation:!0,awaitCloseAnimation:!0};function c(e){try{i.close(e.id,s)}catch{d.error("Could not close modal")}}function p(e){try{i.show(e.id,s)}catch{d.error("Could not open modal")}}function f(e){const a="data-micromodal-close",l=e.querySelectorAll(`[${a}]`);for(let t of l)t.addEventListener("click",o=>{if(!o.target.hasAttribute(a))return;let r=t.closest(".modal");c(r),o.stopPropagation()})}function y(){i.init(s);let e=document.querySelectorAll('.modal[role="dialog"]');for(let l of e)for(let t of l.querySelectorAll("input, textarea, select, radio, option, button, [tabindex]"))t.tabIndex=-1;const a=document.querySelectorAll("[data-modal-trigger]");for(let l of a)l.addEventListener("click",t=>{let o=l.closest(".modal");o&&c(o);let r=document.getElementById(l.dataset.modalTrigger);p(r)});f(document)}y();
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.