PageSourceSearch

https://keap.com/build/assets/modals-7IEHRV8N.js

js keap.com collected 2026-09-24 06:42:16 UTC 1,907 bytes, 1 lines download raw bytes

1import{l as d,e as m,d as g}from"./bodyScrollLock.esm-D_VS9l3p.js";import{C as i}from"./console-Ba7-XqhG.js";const c=i("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++),c.log(`${l} opened`),t.scrollTop=0,g(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");c.log(`${l} closed`),m(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 u(e){try{d.close(e.id,s)}catch{i.error("Could not close modal")}}function p(e){try{d.show(e.id,s)}catch{i.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");u(r),o.stopPropagation()})}function y(){d.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&&u(o);let r=document.getElementById(l.dataset.modalTrigger);p(r)});f(document)}y();export{u as C,f as I,p as S};

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.