1import { 2 CF2Component, 3 init_runtime, 4 registerComponent 5} from "./chunk-NQUHJ6NR.js"; 6import { 7 __esm, 8 init_define_process 9} from "./chunk-RFSPGZ3L.js"; 10 11// projects/lib/packages/yggdrasil-blueprints/__generated__/blueprints/modal-v1.ts 12var ModalV1; 13var init_modal_v1 = __esm({ 14 "projects/lib/packages/yggdrasil-blueprints/__generated__/blueprints/modal-v1.ts"() { 15 init_define_process(); 16 init_runtime(); 17 ModalV1 = class extends CF2Component { 18 constructor(el, runtimeSel) { 19 super(el, runtimeSel); 20 } 21 mount(el) { 22 const node = this; 23 this.onClose = this.onClose ?? function() { 24 }; 25 this.close = this.close ?? function() { 26 if (node.element) { 27 document.documentElement.classList.remove("hide-page-scroll"); 28 node.element.style.display = "none"; 29 node.onClose(); 30 } 31 ; 32 }; 33 this.setupModalClose = function() { 34 $(node.element).on("click", function(e) { 35 if (e.target !== e.currentTarget) return; 36 if (window.getSelection().type === "Range") return; 37 node.close(); 38 }); 39 $(node.element).on("click", ".elModalClose", function() { 40 node.close(); 41 }); 42 document.addEventListener("keydown", function(e) { 43 if (e.key === "Escape") { 44 node.close(); 45 } 46 }); 47 }; 48 this.setupModalClose(); 49 } 50 }; 51 registerComponent("Modal/V1", ModalV1); 52 window["ModalV1"] = ModalV1; 53 } 54}); 55 56export { 57 init_modal_v1 58}; 59//# sourceMappingURL=chunk-5NUE6T5P.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.