1import { i as isDev } from './env-M5RuEq8k.js'; 2 3if (!isDev) { 4 import('./main.js').then(function (n) { return n.aG; }); 5} 6// Delegated click handling: a single listener covers all tiles, including any 7// that are added dynamically after this script runs 8const handleTileClick = (event) => { 9 const target = event.target; 10 const tile = target instanceof Element ? target.closest(".AugmentedTileItem") : null; 11 if (!tile) { 12 return; 13 } 14 const links = tile.querySelectorAll("a"); 15 const visibleLink = Array.from(links).find((link) => window.getComputedStyle(link).display !== "none"); 16 if (visibleLink && !visibleLink.contains(target)) { 17 visibleLink.click(); 18 } 19}; 20const init = () => { 21 document.addEventListener("click", handleTileClick); 22}; 23// Run once the DOM is ready so the listener is attached reliably. 24if (document.readyState === "loading") { 25 document.addEventListener("DOMContentLoaded", init, { once: true }); 26} 27else { 28 init(); 29} 30//# sourceMappingURL=AugmentedTileItem-B1N8cymO.js.map
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.