1import { A as onMount, o as onCleanup } from "./suid-material-beZszf02.js"; 2function BindDropdowns() { 3 onMount(() => { 4 if (typeof document !== "undefined") { 5 document.addEventListener("click", onClick); 6 } 7 }); 8 onCleanup(() => { 9 if (typeof document !== "undefined") { 10 document.removeEventListener("click", onClick); 11 } 12 }); 13 function onClick(event) { 14 const item = event.target; 15 const clickedFlip = Boolean(item.closest(".flip")); 16 if (!clickedFlip) { 17 const dropdown = item.closest(".dropdown"); 18 if (dropdown) { 19 if (dropdown.classList.contains("visible")) dropdown.classList.remove("visible"); 20 else dropdown.classList.add("visible"); 21 } else { 22 document.querySelectorAll(".dropdown").forEach((dd) => { 23 dd.classList.remove("visible"); 24 }); 25 } 26 } 27 } 28 return []; 29} 30export { 31 BindDropdowns as B 32};
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.