PageSourceSearch

https://fm.dk/dist/assets/modal-trigger-DACe-nQt.js

js fm.dk collected 2026-10-02 03:41:43 UTC 1,181 bytes, 1 lines download raw bytes

1import{D as d}from"./dialog-nv9zwAMe.js";import"./events-B5nXyvHe.js";import"./set-aria-prop-BL99Jnpu.js";const a=t=>{const e=t.querySelector(".js-modal-trigger-dismiss-btn");e&&e.addEventListener("click",()=>{e.setAttribute("aria-hidden","true"),e.setAttribute("inert",""),t.classList.add("dismissed"),t.setAttribute("aria-hidden","true"),t.setAttribute("inert","");const r=t.closest(".js-modal-trigger-wrapper");r&&(r.classList.add("dismissed"),r.setAttribute("aria-hidden","true"),r.setAttribute("inert",""))})},g=t=>{const e=t.querySelectorAll(".js-modal-trigger-btn");if(!e||e.length===0){console.warn("No modal trigger buttons found in the element.",t);return}const r=t.getAttribute("data-module-hash");if(!r){console.warn("No module hash found in the element.",t);return}const o={modal:`MODAL_${r}`,backdrop:`MODAL_BACKDROP_${r}`},s=document.getElementById(o.modal);if(!s){console.warn("Modal content element not found for the trigger.",e[0]);return}const i=document.getElementById(o.backdrop),n=s.querySelector(".js-modal-close-btn");new d({contentEl:s,triggerEl:e,backdropEl:i,closeTriggerEl:n,closeOnClickOutside:!0,closeOnEscapeKey:!0}),a(t)};export{g as ModalTrigger};

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.